GET api/State/GetStatesByStateId?StateId={StateId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
StateId

integer

Required

Body Parameters

None.

Response Information

Resource Description

State
NameDescriptionTypeAdditional 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"
}

application/xml, text/xml

Sample:
<State xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EcommerceWebApi.Models">
  <CountryId>sample string 3</CountryId>
  <CountryName>sample string 4</CountryName>
  <StateId>1</StateId>
  <StateName>sample string 2</StateName>
</State>