GET api/states

This method will retrieve data records for all states that include state geometry and center

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of

Collection of State
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

Max length: 50

ShortName

string

Max length: 2

Geom

string

None.

IsTerritory

boolean

None.

LandArea

decimal number

None.

WaterArea

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "name": "sample string 2",
    "shortName": "sample string 3",
    "geom": "sample string 4",
    "isTerritory": true,
    "landArea": 6.1,
    "waterArea": 7.1
  },
  {
    "id": 1,
    "name": "sample string 2",
    "shortName": "sample string 3",
    "geom": "sample string 4",
    "isTerritory": true,
    "landArea": 6.1,
    "waterArea": 7.1
  }
]

text/html

Sample:
[{"id":1,"name":"sample string 2","shortName":"sample string 3","geom":"sample string 4","isTerritory":true,"landArea":6.1,"waterArea":7.1},{"id":1,"name":"sample string 2","shortName":"sample string 3","geom":"sample string 4","isTerritory":true,"landArea":6.1,"waterArea":7.1}]

application/xml, text/xml

Sample:
<ArrayOfState xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities">
  <State>
    <Id xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.Core">1</Id>
    <Geom>sample string 4</Geom>
    <IsTerritory>true</IsTerritory>
    <LandArea>6.1</LandArea>
    <Name>sample string 2</Name>
    <ShortName>sample string 3</ShortName>
    <WaterArea>7.1</WaterArea>
  </State>
  <State>
    <Id xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.Core">1</Id>
    <Geom>sample string 4</Geom>
    <IsTerritory>true</IsTerritory>
    <LandArea>6.1</LandArea>
    <Name>sample string 2</Name>
    <ShortName>sample string 3</ShortName>
    <WaterArea>7.1</WaterArea>
  </State>
</ArrayOfState>