GET api/AdminApi/GetStates?countryId={countryId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
countryId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of State
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

CountryId

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Name": "sample string 2",
    "CountryId": 1
  },
  {
    "Id": 1,
    "Name": "sample string 2",
    "CountryId": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfState xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SMS.DataModels">
  <State>
    <CountryId>1</CountryId>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </State>
  <State>
    <CountryId>1</CountryId>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </State>
</ArrayOfState>