Skip to content

Get Station Details by ID with Real-Time Option #14

@theodanel

Description

@theodanel

Summary

Implement an endpoint to fetch all details for a single station, with an optional parameter to include real-time availability (number of bikes and terminals available).

Details

Retrieve the static information (Name, Location, Custom data) for a specific station ID, and dynamically enrich that data with current availability.

Subtasks

  • Define the Controller method to handle the GET request with {stationId} and the optional realTime parameter.
  • Implement the service logic to query the station details from the local DB by ID.
  • Implement the service logic for the conditional call to the external Real-Time API (if realTime=true).
  • Map all collected data (static + real-time) into the final Response DTO.

Additional Notes / References

No response

Pre-Work Checklist

  • No existing issue covers this work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions