/topics/{id}/content

GET

Get a list of different content types for the specified ID.

Parameters

Name Type Description
id path The ID of a topic.
type query An option to select a subset of the possible types of content returned.

Responses

200: JSON object containing an array(s) of content types.

Example value
{
  "description": "A list of content items.",
  "type": "object",
  "properties": {
    "context": {
      "description": "The URL to the context file.",
      "type": "string",
      "example": "https://cdn.ons.gov.uk/assets/json-ld/context.json"
    },
    "count": {
      "description": "The number of results returned in this response.",
      "type": "integer"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "links": {
            "type": "object",
            "properties": {
              "self": {
                "type": "object",
                "properties": {
                  "href": {
                    "description": "The URL to the resource.",
                    "type": "string"
                  },
                  "id": {
                    "description": "The ID of the resource.",
                    "type": "string"
                  }
                }
              },
              "topic": {
                "description": "A link to the topic for this content.",
                "type": "object",
                "properties": {
                  "href": {
                    "description": "The URL to the topic.",
                    "type": "string"
                  },
                  "id": {
                    "description": "The ID for the topic that this content is associated with.",
                    "type": "string"
                  }
                }
              }
            }
          },
          "state": {
            "description": "The state of the resource.",
            "type": "string",
            "enum": [
              "created",
              "published",
              "completed"
            ]
          },
          "title": {
            "description": "Title of the information.",
            "type": "string"
          },
          "type": {
            "description": "Name of the containing type.",
            "type": "string"
          }
        }
      }
    },
    "limit": {
      "description": "The limit applied to the number of results returned.",
      "type": "integer"
    },
    "offset_index": {
      "description": "The offset applied to the number of results returned",
      "type": "integer"
    },
    "total_count": {
      "description": "The total number of results available.",
      "type": "integer"
    }
  }
}

400: The request was invalid.

Example value
null

404: The specified resource was not found.

Example value
null

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

Example value
null