GET api/Users/GetAllStatesByCountry/{countryId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
countryId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of state1
NameDescriptionTypeAdditional information
id

integer

None.

name

string

None.

country_id

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "name": "sample string 2",
    "country_id": 1
  },
  {
    "id": 1,
    "name": "sample string 2",
    "country_id": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfstate1 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/asanRishta.Models">
  <state1>
    <country_id>1</country_id>
    <id>1</id>
    <name>sample string 2</name>
  </state1>
  <state1>
    <country_id>1</country_id>
    <id>1</id>
    <name>sample string 2</name>
  </state1>
</ArrayOfstate1>