Autocomplete
Autocomplete locations
Changed onAuto complete the location search
post/v2/autocomplete/locations
Request
- Base URLhttps://api.ocean.io
- URLhttps://api.ocean.io/v2/autocomplete/locations
- Authnone declared
Query parameters
apiTokenstring nullable
Headers
x-api-tokenstring nullable
Request body
Example request
{
"query": "londo",
"limit": 5
}Response
Successful Response
Example response
{
"locations": [
{
"countryCode": "us",
"filterCode": "us-CA",
"name": "California",
"parentCode": "us",
"parentName": "United States"
}
]
}Changes
- breaking
the
request property's minLength was increased from0to1 - info
added the non-success response with the status
- breaking