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/{mapId}/topics/{contentId}

Where:

  • /maps lists all maps stored on the Fluid Topics server.
  • /{mapId} retrieves metadata for a specific map. /api/khub/maps provides the map ID.
  • /topics lists all topics in the given map.
  • /{contentId} retrieves the title and metadata of a specific topic. /api/khub/maps/{mapId}/topics the content ID.

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"
        ]
      }
    ]
  }
]