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

@endpoint GET /analytics/itinerary-price-metrics
@desc GET itinerary price metric
@required {originIataCode: str # airport code, following [IATA standard](http://www.iata.org/publications/Pages/code-search.aspx), from which the traveler will depart, destinationIataCode: str # airport code, following [IATA standard](http://www.iata.org/publications/Pages/code-search.aspx), to which the traveler is going., departureDate: str # 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.}
@optional {currencyCode: str=EUR # the preferred currency for display. Currency is specified in the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format, e.g. EUR for Euro, oneWay: bool=false # true to get price metrics for a one way trip, false to get price metrics for a round trip}
@returns(200) Successful reply
@errors {400: code    | title                                  ------- | -------------------------------------  477     | INVALID FORMAT 572     | INVALID OPTION                             32171   | MANDATORY DATA MISSING, 500: Internal Server Error}

@end
