GET api/room/{id}/description
Gets the description of a room.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The room id. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
A RoomDescriptionViewModel object.
Cyberlogic.eTourism.Domain.ViewModels.Hotels.RoomDescriptionViewModelName | Description | Type | Additional information |
---|---|---|---|
RoomId | integer |
None. |
|
Name | string |
None. |
|
Details | Cyberlogic.eTourism.Domain.ViewModels.Hotels.Rooms.RoomPropertiesViewModel |
None. |
|
Overview | Collection of Cyberlogic.eTourism.Domain.ViewModels.Hotels.RoomOverviewDescriptionViewModel |
None. |
|
Facilities | Collection of Cyberlogic.eTourism.Domain.ViewModels.Hotels.FacilityDescriptionViewModel |
None. |
|
Media | Cyberlogic.eTourism.Domain.ViewModels.Shared.MediaViewModel |
None. |
Response Formats
application/json, text/json
Sample:
{ "RoomId": 1, "Name": "sample string 2", "Details": { "ViewType": "sample string 1", "LocationType": "sample string 2", "BedType": "sample string 3", "SmokingAllowed": true, "Quantity": 5, "Size": "sample string 6" }, "Overview": [ { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": { "MainDescription": "sample string 1" } }, { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": { "MainDescription": "sample string 1" } } ], "Facilities": [ { "Name": "sample string 1", "Charged": true, "Overview": [ { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" }, { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" } ] }, { "Name": "sample string 1", "Charged": true, "Overview": [ { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" }, { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" } ] } ], "Media": { "DefaultImage": { "MainUrl": "sample string 1", "ThumbUrl": "sample string 2" }, "DefaultVideo": "sample string 1", "Images": [ { "MainUrl": "sample string 1", "ThumbUrl": "sample string 2", "Tags": [ "sample string 1", "sample string 2" ], "Description": [ { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" }, { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" } ] }, { "MainUrl": "sample string 1", "ThumbUrl": "sample string 2", "Tags": [ "sample string 1", "sample string 2" ], "Description": [ { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" }, { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" } ] } ], "Videos": [ { "MainUrl": "sample string 1", "Description": [ { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" }, { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" } ] }, { "MainUrl": "sample string 1", "Description": [ { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" }, { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" } ] } ] } }
text/html
Sample:
{"RoomId":1,"Name":"sample string 2","Details":{"ViewType":"sample string 1","LocationType":"sample string 2","BedType":"sample string 3","SmokingAllowed":true,"Quantity":5,"Size":"sample string 6"},"Overview":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":{"MainDescription":"sample string 1"}},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":{"MainDescription":"sample string 1"}}],"Facilities":[{"Name":"sample string 1","Charged":true,"Overview":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"}]},{"Name":"sample string 1","Charged":true,"Overview":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"}]}],"Media":{"DefaultImage":{"MainUrl":"sample string 1","ThumbUrl":"sample string 2"},"DefaultVideo":"sample string 1","Images":[{"MainUrl":"sample string 1","ThumbUrl":"sample string 2","Tags":["sample string 1","sample string 2"],"Description":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"}]},{"MainUrl":"sample string 1","ThumbUrl":"sample string 2","Tags":["sample string 1","sample string 2"],"Description":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"}]}],"Videos":[{"MainUrl":"sample string 1","Description":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"}]},{"MainUrl":"sample string 1","Description":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"}]}]}}
application/xml, text/xml
Sample:
<RoomDescriptionViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Hotels"> <Details xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Hotels.Rooms"> <d2p1:BedType>sample string 3</d2p1:BedType> <d2p1:LocationType>sample string 2</d2p1:LocationType> <d2p1:Quantity>5</d2p1:Quantity> <d2p1:Size>sample string 6</d2p1:Size> <d2p1:SmokingAllowed>true</d2p1:SmokingAllowed> <d2p1:ViewType>sample string 1</d2p1:ViewType> </Details> <Facilities> <FacilityDescriptionViewModel> <Charged>true</Charged> <Name>sample string 1</Name> <Overview> <FacilityOverviewViewModel> <Description>sample string 1</Description> <Language xmlns:d6p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared"> <d6p1:Id>1</d6p1:Id> <d6p1:InternetCode>sample string 3</d6p1:InternetCode> <d6p1:Name>sample string 2</d6p1:Name> </Language> </FacilityOverviewViewModel> <FacilityOverviewViewModel> <Description>sample string 1</Description> <Language xmlns:d6p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared"> <d6p1:Id>1</d6p1:Id> <d6p1:InternetCode>sample string 3</d6p1:InternetCode> <d6p1:Name>sample string 2</d6p1:Name> </Language> </FacilityOverviewViewModel> </Overview> </FacilityDescriptionViewModel> <FacilityDescriptionViewModel> <Charged>true</Charged> <Name>sample string 1</Name> <Overview> <FacilityOverviewViewModel> <Description>sample string 1</Description> <Language xmlns:d6p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared"> <d6p1:Id>1</d6p1:Id> <d6p1:InternetCode>sample string 3</d6p1:InternetCode> <d6p1:Name>sample string 2</d6p1:Name> </Language> </FacilityOverviewViewModel> <FacilityOverviewViewModel> <Description>sample string 1</Description> <Language xmlns:d6p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared"> <d6p1:Id>1</d6p1:Id> <d6p1:InternetCode>sample string 3</d6p1:InternetCode> <d6p1:Name>sample string 2</d6p1:Name> </Language> </FacilityOverviewViewModel> </Overview> </FacilityDescriptionViewModel> </Facilities> <Media xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared"> <d2p1:DefaultImage> <d2p1:MainUrl>sample string 1</d2p1:MainUrl> <d2p1:ThumbUrl>sample string 2</d2p1:ThumbUrl> </d2p1:DefaultImage> <d2p1:DefaultVideo>sample string 1</d2p1:DefaultVideo> <d2p1:Images> <d2p1:ImageViewModel> <d2p1:Description> <d2p1:ImageDescriptionViewModel> <d2p1:Description>sample string 1</d2p1:Description> <d2p1:Language> <d2p1:Id>1</d2p1:Id> <d2p1:InternetCode>sample string 3</d2p1:InternetCode> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:Language> </d2p1:ImageDescriptionViewModel> <d2p1:ImageDescriptionViewModel> <d2p1:Description>sample string 1</d2p1:Description> <d2p1:Language> <d2p1:Id>1</d2p1:Id> <d2p1:InternetCode>sample string 3</d2p1:InternetCode> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:Language> </d2p1:ImageDescriptionViewModel> </d2p1:Description> <d2p1:MainUrl>sample string 1</d2p1:MainUrl> <d2p1:Tags xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </d2p1:Tags> <d2p1:ThumbUrl>sample string 2</d2p1:ThumbUrl> </d2p1:ImageViewModel> <d2p1:ImageViewModel> <d2p1:Description> <d2p1:ImageDescriptionViewModel> <d2p1:Description>sample string 1</d2p1:Description> <d2p1:Language> <d2p1:Id>1</d2p1:Id> <d2p1:InternetCode>sample string 3</d2p1:InternetCode> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:Language> </d2p1:ImageDescriptionViewModel> <d2p1:ImageDescriptionViewModel> <d2p1:Description>sample string 1</d2p1:Description> <d2p1:Language> <d2p1:Id>1</d2p1:Id> <d2p1:InternetCode>sample string 3</d2p1:InternetCode> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:Language> </d2p1:ImageDescriptionViewModel> </d2p1:Description> <d2p1:MainUrl>sample string 1</d2p1:MainUrl> <d2p1:Tags xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </d2p1:Tags> <d2p1:ThumbUrl>sample string 2</d2p1:ThumbUrl> </d2p1:ImageViewModel> </d2p1:Images> <d2p1:Videos> <d2p1:VideoViewModel> <d2p1:Description> <d2p1:VideoDescriptionViewModel> <d2p1:Description>sample string 1</d2p1:Description> <d2p1:Language> <d2p1:Id>1</d2p1:Id> <d2p1:InternetCode>sample string 3</d2p1:InternetCode> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:Language> </d2p1:VideoDescriptionViewModel> <d2p1:VideoDescriptionViewModel> <d2p1:Description>sample string 1</d2p1:Description> <d2p1:Language> <d2p1:Id>1</d2p1:Id> <d2p1:InternetCode>sample string 3</d2p1:InternetCode> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:Language> </d2p1:VideoDescriptionViewModel> </d2p1:Description> <d2p1:MainUrl>sample string 1</d2p1:MainUrl> </d2p1:VideoViewModel> <d2p1:VideoViewModel> <d2p1:Description> <d2p1:VideoDescriptionViewModel> <d2p1:Description>sample string 1</d2p1:Description> <d2p1:Language> <d2p1:Id>1</d2p1:Id> <d2p1:InternetCode>sample string 3</d2p1:InternetCode> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:Language> </d2p1:VideoDescriptionViewModel> <d2p1:VideoDescriptionViewModel> <d2p1:Description>sample string 1</d2p1:Description> <d2p1:Language> <d2p1:Id>1</d2p1:Id> <d2p1:InternetCode>sample string 3</d2p1:InternetCode> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:Language> </d2p1:VideoDescriptionViewModel> </d2p1:Description> <d2p1:MainUrl>sample string 1</d2p1:MainUrl> </d2p1:VideoViewModel> </d2p1:Videos> </Media> <Name>sample string 2</Name> <Overview> <RoomOverviewDescriptionViewModel> <Description> <MainDescription>sample string 1</MainDescription> </Description> <Language xmlns:d4p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared"> <d4p1:Id>1</d4p1:Id> <d4p1:InternetCode>sample string 3</d4p1:InternetCode> <d4p1:Name>sample string 2</d4p1:Name> </Language> </RoomOverviewDescriptionViewModel> <RoomOverviewDescriptionViewModel> <Description> <MainDescription>sample string 1</MainDescription> </Description> <Language xmlns:d4p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared"> <d4p1:Id>1</d4p1:Id> <d4p1:InternetCode>sample string 3</d4p1:InternetCode> <d4p1:Name>sample string 2</d4p1:Name> </Language> </RoomOverviewDescriptionViewModel> </Overview> <RoomId>1</RoomId> </RoomDescriptionViewModel>