Preview taxonomies and categories of an item by slug

get

/content/preview/api/v1.1/items/.by.slug/{slug}/taxonomies

Lists all promoted versions of taxonomies and categories of an item targeted to the specific channel by slug.

Request

Path Parameters
Query Parameters
  • Channel token of the targeted channel. A channel token must be provided as either a query parameter or a request header.
Back to Top

Response

Supported Media Types

200 Response

Successful operation.
Body ()
Root Schema : TaxonomiesBean
Type: object
Show Source
Nested Schema : items
Type: array
Item taxonomies.
Show Source
Nested Schema : TaxonomyItem
Type: object
TaxonomyItem
Show Source
Nested Schema : TaxonomyCategories
Type: object
CategoriesBean
Show Source
Nested Schema : items
Type: array
Taxonomy Categories
Show Source
Nested Schema : CategoryItem
Type: object
CategoryItem
Show Source
Nested Schema : nodes
Type: array
The nodes of the category assigned to the item.
Show Source
Nested Schema : CategoryNodeItem
Type: object
CategoryNodeBean
Show Source

400 Response

Bad Request. The server is unable to process the request on the client side due to malformed syntax, invalid data or message framing.

403 Response

Forbidden. Client is not authorized to perform this request.

404 Response

The requested resource was not found.

500 Response

Internal server error. An unexpected error condition encountered in the system.
Back to Top

Examples

Example:

The following example shows how to preview taxonomies of an item by it's slug by submission of a GET request on the REST resource using cURL:

curl -X GET -H 'Accept: application/json' 'https://host:port/content/preview/api/v1.1/items/.by.slug/1481786136832-item1_taxonomiesresource595040100700008/taxonomies?channelToken=0a17fa56b37d40f1bbe31751364f765acontent/preview/api/v1.1/items/.by.slug/1481786136832-item1_taxonomiesresource595040100700008/taxonomies?channelToken=0a17fa56b37d40f1bbe31751364f765a'

This reads taxonomies of an item with slug: 1481786136832-item1_taxonomiesresource595040100700008, channelToken:0a17fa56b37d40f1bbe31751364f765a.

Response Body

{
        "items": [
          {
            "id": "5AD662150C07403FA5D76064ECA7D810",
            "name": "Test594336500988006-taxonomyCars-assetExpand",
            "shortName": "T28",
            "categories": {
              "items": [
                {
                  "id": "1666060BA6DE45F09D368C5A4DD851E3",
                  "name": "Car two doors",
                  "apiName": "t28-c-c1",
                  "nodes": [
                    {
                      "id": "AC1D8DDB67BE44FA8F7FCF7747769AC9",
                      "name": "Car intermediate",
                      "apiName": "t28-c1"
                    },
                    {
                      "id": "1666060BA6DE45F09D368C5A4DD851E3",
                      "name": "Car two doors",
                      "apiName": "t28-c-c1"
                    }
                  ],
                  "links": [
                    {
                      "href": "https://<hostname>/content/preview/api/v1.1/taxonomies/5AD662150C07403FA5D76064ECA7D810/categories/1666060BA6DE45F09D368C5A4DD851E3?channelToken=0a17fa56b37d40f1bbe31751364f765a",
                      "rel": "self",
                      "method": "GET",
                      "mediaType": "application/json"
                    }
                  ]
                },
                {
                  "id": "ABF9C120EBAC4753BAE89CA89AC9F7D6",
                  "name": "car two doors",
                  "apiName": "t28-c-c",
                  "nodes": [
                    {
                      "id": "774EC8B9839B4D7392C10F005654C47D",
                      "name": "car small",
                      "apiName": "t28-c"
                    },
                    {
                      "id": "ABF9C120EBAC4753BAE89CA89AC9F7D6",
                      "name": "car two doors",
                      "apiName": "t28-c-c"
                    }
                  ],
                  "links": [
                    {
                      "href": "https://<hostname>/content/preview/api/v1.1/taxonomies/5AD662150C07403FA5D76064ECA7D810/categories/ABF9C120EBAC4753BAE89CA89AC9F7D6?channelToken=0a17fa56b37d40f1bbe31751364f765a",
                      "rel": "self",
                      "method": "GET",
                      "mediaType": "application/json"
                    }
                  ]
                }
              ]
            },
            "links": [
              {
                "href": "https://<hostname>/content/preview/api/v1.1/taxonomies/5AD662150C07403FA5D76064ECA7D810?channelToken=0a17fa56b37d40f1bbe31751364f765a",
                "rel": "self",
                "method": "GET",
                "mediaType": "application/json"
              }
            ]
          }
        ],
        "links": [
          {
            "href": "https://<hostname>/content/preview/api/v1.1/items/.by.slug/1481786136832-item1_taxonomiesresource595040100700008/taxonomies?channelToken=0a17fa56b37d40f1bbe31751364f765a",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/preview/api/v1.1/items/.by.slug/1481786136832-item1_taxonomiesresource595040100700008/taxonomies?channelToken=0a17fa56b37d40f1bbe31751364f765a",
            "rel": "canonical",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/preview/api/v1.1/metadata-catalog/items/.by.slug/1481786136832-item1_taxonomiesresource595040100700008/taxonomies?channelToken=0a17fa56b37d40f1bbe31751364f765a",
            "rel": "describedby",
            "method": "GET",
            "mediaType": "application/schema+json"
          }
        ]
      }
Back to Top