GET api/Categories

Returns a hierarchical list of all available categories in the system.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Category
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Children

Collection of Category

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 36,
    "Name": "Aktiviteter",
    "Children": [
      {
        "Id": 757,
        "Name": "Sightseeing",
        "Children": null
      },
      {
        "Id": 1054,
        "Name": "Aktivitetsbaner",
        "Children": null
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GuideDenmark.External.Data.Model">
  <Category>
    <Children>
      <Category>
        <Children i:nil="true" />
        <Id>757</Id>
        <Name>Sightseeing</Name>
      </Category>
      <Category>
        <Children i:nil="true" />
        <Id>1054</Id>
        <Name>Aktivitetsbaner</Name>
      </Category>
    </Children>
    <Id>36</Id>
    <Name>Aktiviteter</Name>
  </Category>
</ArrayOfCategory>