Get a topic's title - Fluid Topics - Latest

Integrate the Fluid Topics API

Category
Technical Notes
Audience
public
Version
Latest

It is possible to retrieve the titles of topics in a map using the Get a topic web service:

/api/khub/maps/$MAP_ID/topics/$CONTENT_ID

Where:

  • /maps lists all maps stored on the Fluid Topics server.
  • /$MAP_ID retrieves metadata for a specific map. The map ID is given with /maps.
  • /topics lists all topics in the given map.
  • /$CONTENT_ID retrieves the title and metadata of a specific topic. The content ID is given with /topics.

For example, the Get a topic web service returns the following information for the topic Introduction to Time Machines:

{
    "title": "Introduction to Time Machines",
    "id": "huzBwbbBW3WzTGHwshZIHg",
    "contentApiEndpoint": "/api/khub/maps/LyJjWU3GD5rsUR76jUvd6Q/topics/huzBwbbBW3WzTGHwshZIHg/content",
    "metadata": [
        {
            "key": "dita:ditavalPath",
            "label": "dita:ditavalPath",
            "values": [
                "ft:empty"
            ]
        },
        ...
    ]
}