Skip to content

CT Local Eatouts Search City

SoumyaSian edited this page Jan 2, 2018 · 4 revisions

2.5 Search City

Intent

search_city

Request Params Description

KEYWORD DESCRIPTION
CITY_NAME City string

Payload

{
	"city": "$CITY_NAME"
}

Response Params Description

KEY DESCRIPTION
ttd Contains True/False based on availability in the corresponding city
fnb Contains True/False based on availability in the corresponding city

Response Body

[
"CITY_NAME": {
        "ttd": $TTD,
        "count": $COUNT,
        "fnb": $FNB
    },
    ...
]

Error messages

Some error messages, you might get an invalid search request. The HTTP response code, in this case, will be 400.

Status Error message Description
400 There are no cities found If search results are empty
Clone this wiki locally