Skip to main content

Search for autocomplete

GET 

/autocomplete/:what

Search for a specific resource in auto complete fields

Request

Path Parameters

    what stringrequired

    Possible values: [country, airport, hotel, car-size, car-fuel]

    Defines what to search for: country | airport | hotel | car-size | car-fuel

Query Parameters

    query stringrequired

    Search query

    next string

    If present in SearchResult this should be appended to the url as a query parameter in the format: ?next=[nextPageKey] in order to retrieve the next page with results

Responses

Result for search criteria

Schema

    items

    object[]

    required

    Search results

  • Array [

  • id stringrequired

    Identifier for this search item (such as country code or other)

    name stringrequired

    Display name to show to the user

    description string

    Optional description to help the user

  • ]

  • searchable booleanrequired

    True if this response is searchable

    nextPageKey string

    If populated this should be appended to the url as a query parameter in the format:

    ?next=[nextPageKey]
Loading...