GET api/Bookings/GetCategories/{Category}
Allows the client to request a list of all booking categories that can be assigned against a booking.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Category |
Use this to state a specific booking category by name. |
string |
Default value is |
Body Parameters
None.
Response Information
Resource Description
A list of booking categories with their ID and Category descriptor.
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |
Response Formats
application/json, text/json
Sample:
[{"ID":0,"Category":""}]
application/xml, text/xml
Sample:
<?xml version="1.0" encoding="utf-16"?>
<BookingCategories xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<APIBookingCategory>
<ID>0</ID>
<Category />
</APIBookingCategory>
</BookingCategories>