@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Flight Delay Prediction
@base https://test.api.amadeus.com/v1
@version 1.0.6
@endpoints 1
@toc travel(1)

@endpoint GET /travel/predictions/flight-delay
@desc Return the delay segment where the flight is likely to lay.
@required {originLocationCode: any # city/airport [IATA code](http://www.iata.org/publications/Pages/code-search.aspx) from which the traveler is departing, e.g. PAR for Paris, destinationLocationCode: any # city/airport [IATA code](http://www.iata.org/publications/Pages/code-search.aspx) to which the traveler is going, e.g. PAR for Paris, departureDate: any # the date on which the traveler will depart from the origin to go to the destination. Dates are specified in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) YYYY-MM-DD format, e.g. 2019-12-25, departureTime: any # local time relative to originLocationCode on which the traveler will depart from the origin. Time respects ISO 8601 standard. e.g. 13:22:00, arrivalDate: any # the date on which the traveler will arrive to the destination from the origin. Dates are specified in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) YYYY-MM-DD format, e.g. 2019-12-25, arrivalTime: any # local time relative to destinationLocationCode on which the traveler will arrive to destination. Time respects ISO 8601 standard. e.g. 13:22:00, aircraftCode: any # IATA aircraft code (http://www.flugzeuginfo.net/table_accodes_iata_en.php), carrierCode: any # airline / carrier code, flightNumber: any # flight number as assigned by the carrier, duration: any # flight duration in [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) PnYnMnDTnHnMnS format, e.g. PT2H10M}
@returns(200) Success
@errors {400: code    | title                                  ------- | -------------------------------------  477     | INVALID FORMAT 572     | INVALID OPTION 4926    | INVALID DATA RECEIVED                32171   | MANDATORY DATA MISSING}

@end
