GET api/MetaTagGroups

Returns all the meta tag groups and meta tags in the database.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of MetaTagGroup
NameDescriptionTypeAdditional information
Id

The id of the meta tag group.

integer

None.

CategoryId

The category to which the meta tag group belongs.

integer

None.

Name

The localized name of the meta tag group.

string

None.

CanonicalName

The canonical name of the meta tag group.

string

None.

UseInSearch

Whether meta tags in this meta tag group should be used in search/facets.

boolean

None.

ShowOnWeb

Whether meta tags in this meta tag group should be displayed to end users.

boolean

None.

MetaTags

A list of meta tags in the meta tag group.

Collection of MetaTag

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "CategoryId": 2,
    "Name": "sample string 3",
    "CanonicalName": "sample string 4",
    "UseInSearch": true,
    "ShowOnWeb": true,
    "MetaTags": [
      {
        "Id": 1,
        "Name": "sample string 2",
        "SortOrder": 1
      },
      {
        "Id": 1,
        "Name": "sample string 2",
        "SortOrder": 1
      }
    ]
  },
  {
    "Id": 1,
    "CategoryId": 2,
    "Name": "sample string 3",
    "CanonicalName": "sample string 4",
    "UseInSearch": true,
    "ShowOnWeb": true,
    "MetaTags": [
      {
        "Id": 1,
        "Name": "sample string 2",
        "SortOrder": 1
      },
      {
        "Id": 1,
        "Name": "sample string 2",
        "SortOrder": 1
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfMetaTagGroup xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GuideDenmark.External.Data.Model">
  <MetaTagGroup>
    <CanonicalName>sample string 4</CanonicalName>
    <CategoryId>2</CategoryId>
    <Id>1</Id>
    <MetaTags>
      <MetaTag>
        <Id>1</Id>
        <Name>sample string 2</Name>
        <SortOrder>1</SortOrder>
      </MetaTag>
      <MetaTag>
        <Id>1</Id>
        <Name>sample string 2</Name>
        <SortOrder>1</SortOrder>
      </MetaTag>
    </MetaTags>
    <Name>sample string 3</Name>
    <ShowOnWeb>true</ShowOnWeb>
    <UseInSearch>true</UseInSearch>
  </MetaTagGroup>
  <MetaTagGroup>
    <CanonicalName>sample string 4</CanonicalName>
    <CategoryId>2</CategoryId>
    <Id>1</Id>
    <MetaTags>
      <MetaTag>
        <Id>1</Id>
        <Name>sample string 2</Name>
        <SortOrder>1</SortOrder>
      </MetaTag>
      <MetaTag>
        <Id>1</Id>
        <Name>sample string 2</Name>
        <SortOrder>1</SortOrder>
      </MetaTag>
    </MetaTags>
    <Name>sample string 3</Name>
    <ShowOnWeb>true</ShowOnWeb>
    <UseInSearch>true</UseInSearch>
  </MetaTagGroup>
</ArrayOfMetaTagGroup>