Autocomplete
POST/twirp/ttab.newswire.Entity/Autocomplete
Autocomplete is a method that can be used to provide autocomplete suggestions in a UI.
Request
- application/json
Body
text string
Text to seach for.
type ttab.newswire.EntityType
Possible values: [ENTITY_UNSPECIFIED, ENTITY_PERSON, ENTITY_ORGANISATION, ENTITY_PLACE, ENTITY_TOPIC, ENTITY_STORY]
Responses
- 200
- default
Method response
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
items object[]
Items that matched the text.
code string
Code that uniquely identifies the entity.
coordinates object
lat number
Lat is the latitude.
lng number
Lng is the longitude.
name string
Name of the entity.
{
"items": [
{
"code": "string",
"coordinates": {
"lat": 0,
"lng": 0
},
"name": "string"
}
]
}
Loading...