GET api/descriptionDictionary/Category/{type}/{name}

Gets a description dictionary category.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
type

A string.

string

Required

name

A string.

string

Required

Body Parameters

None.

Response Information

Resource Description

A DescriptionDictionaryCategoryViewModel object.

Cyberlogic.eTourism.Domain.ViewModels.DescriptionDictionaries.DescriptionDictionaryCategoryViewModel
NameDescriptionTypeAdditional information
Id

string

None.

Name

string

None.

Type

Cyberlogic.eTourism.Domain.Models.DescriptionDictionaries.DescriptionDictionaryCategoryType

None.

Items

Collection of Cyberlogic.eTourism.Domain.ViewModels.DescriptionDictionaries.DescriptionDictionaryItemViewModel

None.

SubCategory

Cyberlogic.eTourism.Domain.ViewModels.DescriptionDictionaries.DescriptionDictionarySubCategoryViewModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "Name": "sample string 2",
  "Type": 0,
  "Items": [
    {
      "Id": 1,
      "CyberId": "sample string 2",
      "Overview": [
        {
          "Language": {
            "Id": 1,
            "Name": "sample string 2",
            "InternetCode": "sample string 3"
          },
          "Name": "sample string 1"
        },
        {
          "Language": {
            "Id": 1,
            "Name": "sample string 2",
            "InternetCode": "sample string 3"
          },
          "Name": "sample string 1"
        }
      ]
    },
    {
      "Id": 1,
      "CyberId": "sample string 2",
      "Overview": [
        {
          "Language": {
            "Id": 1,
            "Name": "sample string 2",
            "InternetCode": "sample string 3"
          },
          "Name": "sample string 1"
        },
        {
          "Language": {
            "Id": 1,
            "Name": "sample string 2",
            "InternetCode": "sample string 3"
          },
          "Name": "sample string 1"
        }
      ]
    }
  ],
  "SubCategory": {
    "Name": "sample string 1",
    "Items": [
      {
        "Id": 1,
        "CyberId": "sample string 2",
        "Overview": [
          {
            "Language": {
              "Id": 1,
              "Name": "sample string 2",
              "InternetCode": "sample string 3"
            },
            "Name": "sample string 1"
          },
          {
            "Language": {
              "Id": 1,
              "Name": "sample string 2",
              "InternetCode": "sample string 3"
            },
            "Name": "sample string 1"
          }
        ]
      },
      {
        "Id": 1,
        "CyberId": "sample string 2",
        "Overview": [
          {
            "Language": {
              "Id": 1,
              "Name": "sample string 2",
              "InternetCode": "sample string 3"
            },
            "Name": "sample string 1"
          },
          {
            "Language": {
              "Id": 1,
              "Name": "sample string 2",
              "InternetCode": "sample string 3"
            },
            "Name": "sample string 1"
          }
        ]
      }
    ]
  }
}

text/html

Sample:
{"Id":"sample string 1","Name":"sample string 2","Type":0,"Items":[{"Id":1,"CyberId":"sample string 2","Overview":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"}]},{"Id":1,"CyberId":"sample string 2","Overview":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"}]}],"SubCategory":{"Name":"sample string 1","Items":[{"Id":1,"CyberId":"sample string 2","Overview":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"}]},{"Id":1,"CyberId":"sample string 2","Overview":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"}]}]}}

application/xml, text/xml

Sample:
<DescriptionDictionaryCategoryViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.DescriptionDictionaries">
  <Id>sample string 1</Id>
  <Items>
    <DescriptionDictionaryItemViewModel>
      <CyberId>sample string 2</CyberId>
      <Id>1</Id>
      <Overview>
        <DescriptionDictionaryTranslations>
          <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>
          <Name>sample string 1</Name>
        </DescriptionDictionaryTranslations>
        <DescriptionDictionaryTranslations>
          <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>
          <Name>sample string 1</Name>
        </DescriptionDictionaryTranslations>
      </Overview>
    </DescriptionDictionaryItemViewModel>
    <DescriptionDictionaryItemViewModel>
      <CyberId>sample string 2</CyberId>
      <Id>1</Id>
      <Overview>
        <DescriptionDictionaryTranslations>
          <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>
          <Name>sample string 1</Name>
        </DescriptionDictionaryTranslations>
        <DescriptionDictionaryTranslations>
          <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>
          <Name>sample string 1</Name>
        </DescriptionDictionaryTranslations>
      </Overview>
    </DescriptionDictionaryItemViewModel>
  </Items>
  <Name>sample string 2</Name>
  <SubCategory>
    <Items>
      <DescriptionDictionaryItemViewModel>
        <CyberId>sample string 2</CyberId>
        <Id>1</Id>
        <Overview>
          <DescriptionDictionaryTranslations>
            <Language xmlns:d7p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
              <d7p1:Id>1</d7p1:Id>
              <d7p1:InternetCode>sample string 3</d7p1:InternetCode>
              <d7p1:Name>sample string 2</d7p1:Name>
            </Language>
            <Name>sample string 1</Name>
          </DescriptionDictionaryTranslations>
          <DescriptionDictionaryTranslations>
            <Language xmlns:d7p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
              <d7p1:Id>1</d7p1:Id>
              <d7p1:InternetCode>sample string 3</d7p1:InternetCode>
              <d7p1:Name>sample string 2</d7p1:Name>
            </Language>
            <Name>sample string 1</Name>
          </DescriptionDictionaryTranslations>
        </Overview>
      </DescriptionDictionaryItemViewModel>
      <DescriptionDictionaryItemViewModel>
        <CyberId>sample string 2</CyberId>
        <Id>1</Id>
        <Overview>
          <DescriptionDictionaryTranslations>
            <Language xmlns:d7p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
              <d7p1:Id>1</d7p1:Id>
              <d7p1:InternetCode>sample string 3</d7p1:InternetCode>
              <d7p1:Name>sample string 2</d7p1:Name>
            </Language>
            <Name>sample string 1</Name>
          </DescriptionDictionaryTranslations>
          <DescriptionDictionaryTranslations>
            <Language xmlns:d7p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
              <d7p1:Id>1</d7p1:Id>
              <d7p1:InternetCode>sample string 3</d7p1:InternetCode>
              <d7p1:Name>sample string 2</d7p1:Name>
            </Language>
            <Name>sample string 1</Name>
          </DescriptionDictionaryTranslations>
        </Overview>
      </DescriptionDictionaryItemViewModel>
    </Items>
    <Name>sample string 1</Name>
  </SubCategory>
  <Type>HotelProperty</Type>
</DescriptionDictionaryCategoryViewModel>