GET api/room/dictionary

Gets the room dictionary.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

A RoomDescriptionDictionaryViewModel object.

Cyberlogic.eTourism.Domain.ViewModels.Hotels.RoomDescriptionDictionaryViewModel
NameDescriptionTypeAdditional information
RoomProperties

Collection of Cyberlogic.eTourism.Domain.ViewModels.Hotels.DictionaryCategoryViewModel

None.

RoomFacilities

Cyberlogic.eTourism.Domain.ViewModels.Hotels.DictionaryCategoryViewModel

None.

Response Formats

application/json, text/json

Sample:
{
  "RoomProperties": [
    {
      "Name": "sample string 1",
      "Items": [
        "sample string 1",
        "sample string 2"
      ],
      "SubCategory": {
        "Name": "sample string 1",
        "Items": [
          "sample string 1",
          "sample string 2"
        ]
      }
    },
    {
      "Name": "sample string 1",
      "Items": [
        "sample string 1",
        "sample string 2"
      ],
      "SubCategory": {
        "Name": "sample string 1",
        "Items": [
          "sample string 1",
          "sample string 2"
        ]
      }
    }
  ],
  "RoomFacilities": {
    "Name": "sample string 1",
    "Items": [
      "sample string 1",
      "sample string 2"
    ],
    "SubCategory": {
      "Name": "sample string 1",
      "Items": [
        "sample string 1",
        "sample string 2"
      ]
    }
  }
}

text/html

Sample:
{"RoomProperties":[{"Name":"sample string 1","Items":["sample string 1","sample string 2"],"SubCategory":{"Name":"sample string 1","Items":["sample string 1","sample string 2"]}},{"Name":"sample string 1","Items":["sample string 1","sample string 2"],"SubCategory":{"Name":"sample string 1","Items":["sample string 1","sample string 2"]}}],"RoomFacilities":{"Name":"sample string 1","Items":["sample string 1","sample string 2"],"SubCategory":{"Name":"sample string 1","Items":["sample string 1","sample string 2"]}}}

application/xml, text/xml

Sample:
<RoomDescriptionDictionaryViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Hotels">
  <RoomFacilities>
    <Items xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Items>
    <Name>sample string 1</Name>
    <SubCategory>
      <Items xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </Items>
      <Name>sample string 1</Name>
    </SubCategory>
  </RoomFacilities>
  <RoomProperties>
    <DictionaryCategoryViewModel>
      <Items xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </Items>
      <Name>sample string 1</Name>
      <SubCategory>
        <Items xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </Items>
        <Name>sample string 1</Name>
      </SubCategory>
    </DictionaryCategoryViewModel>
    <DictionaryCategoryViewModel>
      <Items xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </Items>
      <Name>sample string 1</Name>
      <SubCategory>
        <Items xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </Items>
        <Name>sample string 1</Name>
      </SubCategory>
    </DictionaryCategoryViewModel>
  </RoomProperties>
</RoomDescriptionDictionaryViewModel>