Get All Districts
Get All Districts:
Postman Collection
URL
GET : /v1/common/district/0Headers
Content-Type (String) required
application/json
application/json
Authorization (String) required
Basic Auth
Basic Auth
Accept (String) required
application/json
application/json
Request
Example Request
curl --location --request GET '/v1/common/district/0' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data ''
Response Samples
- SUCCESS
- FAILED
{
"code": "0x0200",
"message": "Record fetched successfully.",
"status": "SUCCESS",
"data": [
{
"districtId": 1,
"districtName": "Nicobar",
"stateId": 1
},
{
"districtId": 2,
"districtName": "North Middle Andaman",
"stateId": 1
},
{
"districtId": 3,
"districtName": "South Andaman",
"stateId": 1
},
{
"districtId": 4,
"districtName": "Anantapur",
"stateId": 2
},
{
"districtId": 694,
"districtName": "Udham Singh Nagar",
"stateId": 35
},
{
"districtId": 695,
"districtName": "Uttarkashi",
"stateId": 35
}
]
}
{
"code": "0x0202",
"status": "FAILURE",
"message": "No record found"
}
Response Code
Status Code | Status | Message |
---|---|---|
0x0200 | SUCCESS | TRANSACTION SUCCESSFULL |
0x0201 | UNAUTHORIZED | UNAUTHORIZED USER |
0x0202 | FAILURE | FAILURE USER |
0x0203 | MISSING_PARAMETER | MISSING PARAMETER |
0x0204 | CONNECTION_TIMEOUT | CONNECTION TIMEOUT |
0x0205 | SOMETHING_WENT_WRONG | SOMETHING WENT WRONG |
0x0206 | PENDING | TRANSACTION PENDING |