Get Buses Endpoint
Retrieves all buses available for either a route(Lagos->Abuja), the schedule(the day the user wants to travel), etc. It can also be customized to filter out exact information using path parameters.
Path parameters
schedule_idintegerOptional
Filter buses by a specific schedule ID (departure time).
Responses
200
List of buses based on a schedule.
application/json
successbooleanOptionalExample:
Indicates whether the request was successful.
truestatusintegerOptionalExample:
HTTP status code representing the response status.
200messagestringOptionalExample:
Human-readable description of the response.
List of buses based on a schedule400
Bad request due to invalid input
application/json
500
Internal server error
application/json
get
/api/v1/merpi/transport/buses/{schedule_id}Last updated