@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Faretrotter Travel API
@base https://api.faretrotter.com/v2.0/{apikey}
@version 2.0
@auth ApiKey ApiKeyAuth in header
@endpoints 2
@toc places(1), routes(1)

@group places
@endpoint GET /places
@returns(200)
@errors {400, 401, 402, 403, 404, 429, 501, 502}

@endgroup

@group routes
@endpoint GET /routes
@required {origin_lat: any, origin_lng: any, destination_lat: any, destination_lng: any}
@returns(200)
@errors {400, 401, 402, 403, 404, 429, 501, 502}

@endgroup

@end
