GET v1/Country/{countryId}/States?sort={sort}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
countryId | integer |
Required |
|
sort |
A comma delimited list of columns to sort by. Field are sorted in ascending order by default. To have a field sort in descending order, preface it with the minus (-) sign. |
string |
Default value is |
Body Parameters
None.
Response Information
Resource Description
Collection of StateName | Description | Type | Additional information |
---|---|---|---|
id | integer |
None. |
|
state | string |
None. |
|
stateName | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "id": 1, "state": "sample string 2", "stateName": "sample string 3" }, { "id": 1, "state": "sample string 2", "stateName": "sample string 3" } ]
text/html
Sample:
[{"id":1,"state":"sample string 2","stateName":"sample string 3"},{"id":1,"state":"sample string 2","stateName":"sample string 3"}]
application/xml, text/xml
Sample:
<ArrayOfv1_Countries_CountryEndpointController.State xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_Countries_CountryEndpoint"> <v1_Countries_CountryEndpointController.State> <id>1</id> <state>sample string 2</state> <stateName>sample string 3</stateName> </v1_Countries_CountryEndpointController.State> <v1_Countries_CountryEndpointController.State> <id>1</id> <state>sample string 2</state> <stateName>sample string 3</stateName> </v1_Countries_CountryEndpointController.State> </ArrayOfv1_Countries_CountryEndpointController.State>