GET api/Regions

Returns all regions available in the system.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of RegionWithPlaces
NameDescriptionTypeAdditional information
Id

The id of the region.

integer

None.

Name

The localized name of the region.

string

None.

Places

A list of places in the region.

Collection of Place

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Name": "sample string 2",
    "Places": [
      {
        "Id": 1,
        "Name": "sample string 2"
      },
      {
        "Id": 1,
        "Name": "sample string 2"
      }
    ]
  },
  {
    "Id": 1,
    "Name": "sample string 2",
    "Places": [
      {
        "Id": 1,
        "Name": "sample string 2"
      },
      {
        "Id": 1,
        "Name": "sample string 2"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfRegionWithPlaces xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GuideDenmark.External.Data.Model">
  <RegionWithPlaces>
    <Id>1</Id>
    <Name>sample string 2</Name>
    <Places>
      <Place>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </Place>
      <Place>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </Place>
    </Places>
  </RegionWithPlaces>
  <RegionWithPlaces>
    <Id>1</Id>
    <Name>sample string 2</Name>
    <Places>
      <Place>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </Place>
      <Place>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </Place>
    </Places>
  </RegionWithPlaces>
</ArrayOfRegionWithPlaces>