Get a Map's ToC - Fluid Topics - 3.4 - Technical Notes

Integrate Fluid Topics APIs

Fluid Topics
Fluid Topics Version
Technical Notes
Target Audience

It is possible to use the Get a Map ToC web service to display a document's ToC.



  • /$MAP_ID is given when calling the /maps route.

The JSON output returns the list of the topics contained in the map, as for the /api/khub/maps/$MAP_ID/topics web service. The difference is that the Get a Map ToC web service returns the topic's hierarchy within the given map.

For instance, for the Time Machine User Guide map, the topics are hierarchized as follows:

Time Machine User Guide
|_ Introduction to Time Machines
|_ How to Time Travel
|_ Set Local Date and Time
|_ Set Destination Date and Time
|_ Set a Destination Location

The Get a Map ToC web service returns the following information:

"tocId": "O9UowuYCBjsp~FGKTUFx5w",
"contentId": "huzBwbbBW3WzTGHwshZIHg",
"title": "Introduction to Time Machines",
"children": []
"tocId": "cwM7YaPiO14KSK2ijkpHBg",
"contentId": "tCXkAmF0SVEScehmnX5TiQ",
"title": "How to Time Travel",
"children": [
"tocId": "Ras6kFhn0~2wpgeDUws7uQ",
"contentId": "PC10RJwTtnxkpIm9hbkRdA",
"title": "Set Local Date and Time",
"children": []
"tocId": "QZUh1xB~yrDANJ2e~ti9pg",
"contentId": "hDs56CtGixP~R1hf~1tB_g",
"title": "Set Destination Date and Time",
"children": []
"tocId": "mYhIZEwLYgllseZJxu2yxA",
"contentId": "ZYYuXA2e~06xnuQoChsvBA",
"title": "Set a Destination Location",
"children": []