GET v1/categories
Gets the event categories
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A collection of categories
Collection of EventCategory| Name | Description | Type | Additional information |
|---|---|---|---|
| categoryId |
The unique identifier of the category |
integer |
None. |
| parentCategoryId |
The parent category of the event (if any) |
integer |
None. |
| name |
The name of the event category |
string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"categoryId": 1,
"parentCategoryId": null,
"name": "Performing Arts"
},
{
"categoryId": 2,
"parentCategoryId": 1,
"name": "Music"
}
]
text/xml
Sample:
<ArrayOfEventCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CitySpark.API.Models">
<EventCategory>
<categoryId>1</categoryId>
<name>Performing Arts</name>
<parentCategoryId i:nil="true" />
</EventCategory>
<EventCategory>
<categoryId>2</categoryId>
<name>Music</name>
<parentCategoryId>1</parentCategoryId>
</EventCategory>
</ArrayOfEventCategory>
text/csv
Sample:
categoryId,parentCategoryId,name 1,,Performing Arts 2,1,Music