GET api/State/GetAllState
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of StateName | Description | Type | Additional information |
---|---|---|---|
StateId | integer |
None. |
|
StateName | string |
None. |
|
CountryId | string |
None. |
|
CountryName | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "StateId": 1, "StateName": "sample string 2", "CountryId": "sample string 3", "CountryName": "sample string 4" }, { "StateId": 1, "StateName": "sample string 2", "CountryId": "sample string 3", "CountryName": "sample string 4" } ]
application/xml, text/xml
Sample:
<ArrayOfState xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EcommerceWebApi.Models"> <State> <CountryId>sample string 3</CountryId> <CountryName>sample string 4</CountryName> <StateId>1</StateId> <StateName>sample string 2</StateName> </State> <State> <CountryId>sample string 3</CountryId> <CountryName>sample string 4</CountryName> <StateId>1</StateId> <StateName>sample string 2</StateName> </State> </ArrayOfState>