GET api/v{version}/areas

Get list of all the available areas.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of AreaViewModel
NameDescriptionTypeAdditional information
CountryId

integer

None.

Name

Name of the country

string

None.

Code

Two character country code.

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CountryId": 1,
    "Name": "sample string 2",
    "Code": "sample string 3"
  },
  {
    "CountryId": 1,
    "Name": "sample string 2",
    "Code": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfAreaViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Models">
  <AreaViewModel>
    <Code>sample string 3</Code>
    <CountryId>1</CountryId>
    <Name>sample string 2</Name>
  </AreaViewModel>
  <AreaViewModel>
    <Code>sample string 3</Code>
    <CountryId>1</CountryId>
    <Name>sample string 2</Name>
  </AreaViewModel>
</ArrayOfAreaViewModel>