List all Taxonomies and Categories of a published Item by slug

get

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

Lists all Taxonomies and Categories of a published Item by slug.

Request

Path Parameters
  • Slug value of the published Item. Any special characters in slug must be encoded.
Query Parameters
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

The following example shows how to read taxonomies of published item with slug.

curl -i -X GET -H "Accept:application/json" 'http://<hostname>/content/published/api/v1.1/items/.by.slug/{slug}/taxonomies'
Example

This reads taxonomies of published item with slug: 1481786136832-item1_deliverytaxonomiesresource595040100700008, channelToken: 0a17fa56b37d40f1bbe31751364f765a.

/content/published/api/v1.1/items/.by.slug/1481786136832-item1_deliverytaxonomiesresource595040100700008/taxonomies?channelToken=0a17fa56b37d40f1bbe31751364f765a

Response Body

{
        "items": [
          {
            "id": "5AD662150C07403FA5D76064ECA7D810",
            "name": "Test594336500988006-taxonomyCars-assetExpandDelivery",
            "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/published/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/published/api/v1.1/taxonomies/5AD662150C07403FA5D76064ECA7D810/categories/ABF9C120EBAC4753BAE89CA89AC9F7D6?channelToken=0a17fa56b37d40f1bbe31751364f765a",
                      "rel": "self",
                      "method": "GET",
                      "mediaType": "application/json"
                    }
                  ]
                }
              ]
            },
            "links": [
              {
                "href": "https://<hostname>/content/published/api/v1.1/taxonomies/5AD662150C07403FA5D76064ECA7D810?channelToken=0a17fa56b37d40f1bbe31751364f765a",
                "rel": "self",
                "method": "GET",
                "mediaType": "application/json"
              }
            ]
          }
        ],
        "links": [
          {
            "href": "https://<hostname>/content/published/api/v1.1/items/.by.slug/1481786136832-item1_deliverytaxonomiesresource595040100700008/taxonomies?channelToken=0a17fa56b37d40f1bbe31751364f765a",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/published/api/v1.1/items/.by.slug/1481786136832-item1_deliverytaxonomiesresource595040100700008/taxonomies?channelToken=0a17fa56b37d40f1bbe31751364f765a",
            "rel": "canonical",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/published/api/v1.1/metadata-catalog/items/.by.slug/1481786136832-item1_deliverytaxonomiesresource595040100700008/taxonomies?channelToken=0a17fa56b37d40f1bbe31751364f765a",
            "rel": "describedby",
            "method": "GET",
            "mediaType": "application/schema+json"
          }
        ]
      }
Back to Top