GET api/State/GetAllStatesByCountryId?CountryId={CountryId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
CountryId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of State
NameDescriptionTypeAdditional information
State_Id

integer

None.

Name

string

None.

Country_Id

string

None.

CountryName

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "State_Id": 1,
    "Name": "sample string 2",
    "Country_Id": "sample string 3",
    "CountryName": "sample string 4"
  },
  {
    "$ref": "1"
  }
]

application/octet-stream

Sample:
[{"$id":"1","State_Id":1,"Name":"sample string 2","Country_Id":"sample string 3","CountryName":"sample string 4"},{"$ref":"1"}]