GET api/TravelCategory
Gets all Travel Categories.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A list of Travel categories and Details
Collection of TravelCategory| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
The unique identifier of the Travel category. |
integer |
None. |
| Name |
The name of the Travel category. |
string |
None. |
| ImageURL |
The image associated with the Travel category. |
string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"Name": "sample string 2",
"ImageURL": "sample string 3"
},
{
"Id": 1,
"Name": "sample string 2",
"ImageURL": "sample string 3"
}
]
application/xml, text/xml
Sample:
<ArrayOfTravelCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models">
<TravelCategory>
<Id>1</Id>
<ImageURL>sample string 3</ImageURL>
<Name>sample string 2</Name>
</TravelCategory>
<TravelCategory>
<Id>1</Id>
<ImageURL>sample string 3</ImageURL>
<Name>sample string 2</Name>
</TravelCategory>
</ArrayOfTravelCategory>