GET_STATE_LIST
This Action returns all the cities available for the provided state
Request
payload: {
"state": "Haryana",
"operation": "getCitiesByState"
},
Response
{
"headers": {},
"body": {
"stateAndCityListDTO": [
{
"state": "Haryana",
"city": "AMBALA"
},
{
"state": "Haryana",
"city": "ROHTAK"
},
{
"state": "Haryana",
"city": "GURGAON"
},
{
"state": "Haryana",
"city": "FARIDABAD"
},
{
"state": "Haryana",
"city": "KARNAL"
},
{
"state": "Haryana",
"city": "HISSAR"
},
{
"state": "Haryana",
"city": "BHIWANI"
},
{
"state": "Haryana",
"city": "SONEPAT"
},
{
"state": "Haryana",
"city": "KURUKSHETRA"
}
]
},
"statusCode": "OK",
"statusCodeValue": 200
}
Payload
Field | Type | Supported Values | Description |
---|---|---|---|
operation | String | getCitiesByState, getStateAndPinCodeByCity, getPinCodeByStateAndCity and getStateAndCityByPinCode | operation that is being performed. in this operation getCitiesByState will return all the cities available in the state |
Updated about 1 year ago