Search for autocomplete
GET/autocomplete/:what
Search for a specific resource in auto complete fields
Request
Path Parameters
Possible values: [country
, airport
, hotel
, car-size
, car-fuel
]
Defines what to search for: country
| airport
| hotel
| car-size
| car-fuel
Query Parameters
Search query
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
- 200
- 400
- 401
- 403
- 405
- 500
Result for search criteria
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
items
object[]
required
Search results
Identifier for this search item (such as country code or other)
Display name to show to the user
Optional description to help the user
True if this response is searchable
If populated this should be appended to the url as a query parameter in the format:
?next=[nextPageKey]
{
"items": [
{
"id": "string",
"name": "string",
"description": "string"
}
],
"searchable": true,
"nextPageKey": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
required
Detailed errors
The application name that generated this error
Possible values: [BAD_REQUEST
, FORBIDDEN
, INTERNAL_SERVER_ERROR
, METHOD_NOT_ALLOWED
, UNSUPPORTED_MEDIA_TYPE
]
A unique constant identifying the error case encountered during request processing
BAD_REQUEST
- Malformed request, please advice the description
and details fields for more information
FORBIDDEN
- Insufficient scope to access the resource
INTERNAL_SERVER_ERROR
- Unexpected server error
METHOD_NOT_ALLOWED
- Method not allowed
UNSUPPORTED_MEDIA_TYPE
- Unsupported media type
Short description of the reasonCode field.
Indicates whether this error will always be returned for this request, or retrying could change the outcome.
Where appropriate, indicates detailed information about data received and calculated during request processing, to help the user with diagnosing errors.
{
"errors": [
{
"source": "string",
"reasonCode": "BAD_REQUEST",
"description": "string",
"recoverable": true,
"details": "string"
}
]
}
Unauthorized client
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
required
Detailed errors
The application name that generated this error
Possible values: [BAD_REQUEST
, FORBIDDEN
, INTERNAL_SERVER_ERROR
, METHOD_NOT_ALLOWED
, UNSUPPORTED_MEDIA_TYPE
]
A unique constant identifying the error case encountered during request processing
BAD_REQUEST
- Malformed request, please advice the description
and details fields for more information
FORBIDDEN
- Insufficient scope to access the resource
INTERNAL_SERVER_ERROR
- Unexpected server error
METHOD_NOT_ALLOWED
- Method not allowed
UNSUPPORTED_MEDIA_TYPE
- Unsupported media type
Short description of the reasonCode field.
Indicates whether this error will always be returned for this request, or retrying could change the outcome.
Where appropriate, indicates detailed information about data received and calculated during request processing, to help the user with diagnosing errors.
{
"errors": [
{
"source": "string",
"reasonCode": "BAD_REQUEST",
"description": "string",
"recoverable": true,
"details": "string"
}
]
}
Insufficient scope for accessing this resource
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
required
Detailed errors
The application name that generated this error
Possible values: [BAD_REQUEST
, FORBIDDEN
, INTERNAL_SERVER_ERROR
, METHOD_NOT_ALLOWED
, UNSUPPORTED_MEDIA_TYPE
]
A unique constant identifying the error case encountered during request processing
BAD_REQUEST
- Malformed request, please advice the description
and details fields for more information
FORBIDDEN
- Insufficient scope to access the resource
INTERNAL_SERVER_ERROR
- Unexpected server error
METHOD_NOT_ALLOWED
- Method not allowed
UNSUPPORTED_MEDIA_TYPE
- Unsupported media type
Short description of the reasonCode field.
Indicates whether this error will always be returned for this request, or retrying could change the outcome.
Where appropriate, indicates detailed information about data received and calculated during request processing, to help the user with diagnosing errors.
{
"errors": [
{
"source": "string",
"reasonCode": "BAD_REQUEST",
"description": "string",
"recoverable": true,
"details": "string"
}
]
}
Method not allowed
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
required
Detailed errors
The application name that generated this error
Possible values: [BAD_REQUEST
, FORBIDDEN
, INTERNAL_SERVER_ERROR
, METHOD_NOT_ALLOWED
, UNSUPPORTED_MEDIA_TYPE
]
A unique constant identifying the error case encountered during request processing
BAD_REQUEST
- Malformed request, please advice the description
and details fields for more information
FORBIDDEN
- Insufficient scope to access the resource
INTERNAL_SERVER_ERROR
- Unexpected server error
METHOD_NOT_ALLOWED
- Method not allowed
UNSUPPORTED_MEDIA_TYPE
- Unsupported media type
Short description of the reasonCode field.
Indicates whether this error will always be returned for this request, or retrying could change the outcome.
Where appropriate, indicates detailed information about data received and calculated during request processing, to help the user with diagnosing errors.
{
"errors": [
{
"source": "string",
"reasonCode": "BAD_REQUEST",
"description": "string",
"recoverable": true,
"details": "string"
}
]
}
Unexpected server error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
required
Detailed errors
The application name that generated this error
Possible values: [BAD_REQUEST
, FORBIDDEN
, INTERNAL_SERVER_ERROR
, METHOD_NOT_ALLOWED
, UNSUPPORTED_MEDIA_TYPE
]
A unique constant identifying the error case encountered during request processing
BAD_REQUEST
- Malformed request, please advice the description
and details fields for more information
FORBIDDEN
- Insufficient scope to access the resource
INTERNAL_SERVER_ERROR
- Unexpected server error
METHOD_NOT_ALLOWED
- Method not allowed
UNSUPPORTED_MEDIA_TYPE
- Unsupported media type
Short description of the reasonCode field.
Indicates whether this error will always be returned for this request, or retrying could change the outcome.
Where appropriate, indicates detailed information about data received and calculated during request processing, to help the user with diagnosing errors.
{
"errors": [
{
"source": "string",
"reasonCode": "BAD_REQUEST",
"description": "string",
"recoverable": true,
"details": "string"
}
]
}