GET /product_categories/:id_or_alias

GET /product_categories/{id_or_alias}

Returns a specific product category

Path parameters

Responses

GET /product_categories/{id_or_alias}
curl \
 -X GET https://api.cosmily.com/api/v1/product_categories/{id_or_alias} \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": {
    "id": 42,
    "title": "string",
    "alias": "string",
    "menuindex": 42,
    "created_at": "string",
    "updated_at": "string",
    "parent_id": 42,
    "parent_category": {
      "id": 42,
      "title": "string",
      "alias": "string",
      "menuindex": 42,
      "created_at": "string",
      "updated_at": "string",
      "parent_id": 42
    },
    "child_categories": [
      {
        "id": 42,
        "title": "string",
        "alias": "string",
        "menuindex": 42,
        "created_at": "string",
        "updated_at": "string",
        "parent_id": 42
      }
    ]
  }
}
Response examples (200)
{
  "data": {
    "id": 42,
    "title": "string",
    "alias": "string",
    "menuindex": 42,
    "created_at": "string",
    "updated_at": "string",
    "parent_id": 42,
    "parent_category": {
      "id": 42,
      "title": "string",
      "alias": "string",
      "menuindex": 42,
      "created_at": "string",
      "updated_at": "string",
      "parent_id": 42
    },
    "child_categories": [
      {
        "id": 42,
        "title": "string",
        "alias": "string",
        "menuindex": 42,
        "created_at": "string",
        "updated_at": "string",
        "parent_id": 42
      }
    ]
  }
}