GET api/TravelPlace?travelPlaceID={travelPlaceID}

Retrieves Travel place based on the provided Travel Place ID.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
travelPlaceID

The ID of the Location to filter the Travel Places.

integer

Required

Body Parameters

None.

Response Information

Resource Description

A list of Travel Places matching the provided Travel Place ID.

TravelPlace
NameDescriptionTypeAdditional 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

Sample:
{
  "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

Sample:
<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>