GET api/TravelPlace?searchQuery={searchQuery}
Gets the travel place details based on the provided search query.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| searchQuery |
The search query to match against the travel place names. |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
The travel place that matches the search query, or null if no match is found.
TravelPlace| Name | Description | Type | Additional information |
|---|---|---|---|
| TravelPlaceID |
Gets or sets the unique identifier of the travel place. |
integer |
None. |
| TravelPlaceName |
Gets or sets the name of the travel place. |
string |
None. |
| ImageURL |
Gets or sets the URL of the image associated with the travel place. |
string |
None. |
| LocationDetail |
Gets or sets the detailed location description of the travel place. |
string |
None. |
| Address |
Gets or sets the Address location of the travel place. |
string |
None. |
| Rating |
Gets or sets the rating of the travel place. |
decimal number |
None. |
| GalleryImage1 |
Gets or sets the URL of the first gallery image of the travel place. |
string |
None. |
| GalleryImage2 |
Gets or sets the URL of the second gallery image of the travel place. |
string |
None. |
| GalleryImage3 |
Gets or sets the URL of the third gallery image of the travel place. |
string |
None. |
| CategoryID |
Gets or sets the Category ID of the travel place. |
integer |
None. |
Response Formats
application/json, text/json
{
"TravelPlaceID": 1,
"TravelPlaceName": "sample string 2",
"ImageURL": "sample string 3",
"LocationDetail": "sample string 4",
"Address": "sample string 5",
"Rating": 6.1,
"GalleryImage1": "sample string 7",
"GalleryImage2": "sample string 8",
"GalleryImage3": "sample string 9",
"CategoryID": 10
}
application/xml, text/xml
<TravelPlace xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models"> <Address>sample string 5</Address> <CategoryID>10</CategoryID> <GalleryImage1>sample string 7</GalleryImage1> <GalleryImage2>sample string 8</GalleryImage2> <GalleryImage3>sample string 9</GalleryImage3> <ImageURL>sample string 3</ImageURL> <LocationDetail>sample string 4</LocationDetail> <Rating>6.1</Rating> <TravelPlaceID>1</TravelPlaceID> <TravelPlaceName>sample string 2</TravelPlaceName> </TravelPlace>