GET api/Categories
Returns a hierarchical list of all available categories in the system.
Test
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of CategoryName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Name | string |
None. |
|
ImageUrl | string |
None. |
|
Children | Collection of Category |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 36, "Name": "Aktiviteter", "ImageUrl": null, "Children": [ { "Id": 757, "Name": "Sightseeing", "ImageUrl": null, "Children": null }, { "Id": 1054, "Name": "Aktivitetsbaner", "ImageUrl": null, "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" /> <FileID i:nil="true" /> <FilePath i:nil="true" /> <Id>757</Id> <ImageUrl i:nil="true" /> <Name>Sightseeing</Name> </Category> <Category> <Children i:nil="true" /> <FileID i:nil="true" /> <FilePath i:nil="true" /> <Id>1054</Id> <ImageUrl i:nil="true" /> <Name>Aktivitetsbaner</Name> </Category> </Children> <FileID i:nil="true" /> <FilePath i:nil="true" /> <Id>36</Id> <ImageUrl i:nil="true" /> <Name>Aktiviteter</Name> </Category> </ArrayOfCategory>