/topics/{id}/subtopics

GET

Get a list of all documents for the specified ID contained in the stored list of subtopics.

Parameters

Name Type Description
id path The ID of a topic.

Responses

200: JSON object containing an array of subtopics.

Example value
{
  "context": "https://cdn.ons.gov.uk/assets/json-ld/context.json",
  "count": 0,
  "items": [
    {
      "description": "string",
      "id": "string",
      "keywords": [
        "string"
      ],
      "links": {
        "content": {
          "href": "string"
        },
        "self": {
          "href": "string",
          "id": "string"
        },
        "subtopics": {
          "href": "string"
        }
      },
      "slug": "businessindustryandtrade",
      "state": "created",
      "subtopics_ids": [
        "string"
      ],
      "title": "Business, Industry and Trade"
    }
  ],
  "limit": 0,
  "offset_index": 0,
  "total_count": 0
}

404: The specified resource was not found.

500: Failed to process the request due to an internal error.