GET api/MetaTagGroups
Returns all the meta tag groups and meta tags in the database.
Meta tag groups and meta tags are ordered by their sort order and then by name.
Test
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of MetaTagGroupName | Description | Type | Additional 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 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. |
SortOrder |
The relative sort order of the meta tag group in relation to other meta tag groups for the same category. Used for ordering facets. If SortOrder is null then ordering is unspecified. |
integer |
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, "SortOrder": 1, "MetaTags": [ { "Id": 1, "Name": "sample string 2", "UseInSearch": true, "SortOrder": 1 }, { "Id": 1, "Name": "sample string 2", "UseInSearch": true, "SortOrder": 1 } ] }, { "Id": 1, "CategoryId": 2, "Name": "sample string 3", "CanonicalName": "sample string 4", "UseInSearch": true, "ShowOnWeb": true, "SortOrder": 1, "MetaTags": [ { "Id": 1, "Name": "sample string 2", "UseInSearch": true, "SortOrder": 1 }, { "Id": 1, "Name": "sample string 2", "UseInSearch": true, "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> <UseInSearch>true</UseInSearch> </MetaTag> <MetaTag> <Id>1</Id> <Name>sample string 2</Name> <SortOrder>1</SortOrder> <UseInSearch>true</UseInSearch> </MetaTag> </MetaTags> <Name>sample string 3</Name> <ShowOnWeb>true</ShowOnWeb> <SortOrder>1</SortOrder> <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> <UseInSearch>true</UseInSearch> </MetaTag> <MetaTag> <Id>1</Id> <Name>sample string 2</Name> <SortOrder>1</SortOrder> <UseInSearch>true</UseInSearch> </MetaTag> </MetaTags> <Name>sample string 3</Name> <ShowOnWeb>true</ShowOnWeb> <SortOrder>1</SortOrder> <UseInSearch>true</UseInSearch> </MetaTagGroup> </ArrayOfMetaTagGroup>