@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Hotel Name Autocomplete
@base https://test.api.amadeus.com/v1
@version 1.0.3
@endpoints 1
@toc reference-data(1)

@endpoint GET /reference-data/locations/hotel
@desc Returns a list of hotels matching a given keyword.
@required {keyword: any # Location query keyword, subType: any # Category of search - To enter several values, repeat the query parameter   Use HOTEL_LEISURE to target aggregators or HOTEL_GDS to target directly the chains}
@optional {countryCode: any # The country in which you search the subType. Country Code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, lang: any # The language in which you want the results in following [ISO 639-1](https://fr.wikipedia.org/wiki/Liste_des_codes_ISO_639-1).   If the language entered is not available then the results will be shown in the default language, English., max: any # The number of results requested from 1 to 20}
@returns(200) Successful Search Operation
@errors {400: code    | title                                  ------- | -------------------------------------  477     | NOT FOUND  1797    | INVALID FORMAT 572     | INVALID LENGTH 32171   | MANDATORY DATA MISSING, 500: Unexpected Error}

@end
