GET api/State/GetByIdState/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

Required

Body Parameters

None.

Response Information

Resource Description

StateDTO
NameDescriptionTypeAdditional information
id

integer

None.

name

string

None.

abbreviation

string

None.

countryId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "abbreviation": "sample string 3",
  "countryId": 4
}

application/xml, text/xml

Sample:
<StateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Application.DTOs">
  <abbreviation>sample string 3</abbreviation>
  <countryId>4</countryId>
  <id>1</id>
  <name>sample string 2</name>
</StateDTO>