GET /util/states
Description
This endpoint allows a user to get all states
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| page | string | page | No |
| limit | string | limit | No |
| id | string | id | yes |
Response
json
{
"status": 200,
"data": [
{
"value": 1,
"id_country": 3,
"label": "Azerbaijan"
},
{
"value": 2,
"id_country": 3,
"label": "Nargorni Karabakh"
},
{
"value": 3,
"id_country": 3,
"label": "Nakhichevanskaya Region"
},
{
"value": 4,
"id_country": 4,
"label": "Anguilla"
}
],
"hasNextPage": false,
"currentPage": 1,
"totalItems": 3,
"totalPages": 1
}