Hubs Contents
Hubs structures all internal configuration and objects in a tree-like structure for optimal organizational structure and ease of use.
Similar to github repositories, the root leaf nodes are the core data object types implemented within nokori. These include: Sources & Queries.
GET/v1/hubs/:hubId/contents
Get Hub Contents
This endpoint allows you to get your hub's contents.
Following our "Cosmic Soda Shop" example, if we view the hub content tree for the fresh hub that was just created you can see it is pre-populated with a 'query' and 'sources' root leaf node.
Query Parameters
- Name
hubId
- Type
- string
- required
- Description
The
hubId
of the hub you want to retrieve.
Request
GET
/v1/hubs/:hubId/contentscurl -G https://api.nokori.com/v1/hubs/:hubId/contents \
-H 'x-nokori-api-key: {{apiKey}}'
Response
{
"hubId": "lola.hub.hsnwg921TBQbNKeNMjS",
"nodeId": "lola.hub.hsnwg921TBQbNKeNMjS",
"parentNodeId": null,
"nodeType": "root",
"label": "Cosmic Soda Shop",
"children": [
{
"hubId": "lola.hub.hsnwg921TBQbNKeNMjS",
"nodeId": "lola.hrt.haDW5zjEZNhYJCXVrXL",
"parentNodeId": "lola.hub.hsnwg921TBQbNKeNMjS",
"nodeType": "category",
"nodeSubType": "queries",
"label": "Queries",
"children": [...] // omitted for brevity
},
{
"hubId": "lola.hub.hsnwg921TBQbNKeNMjS",
"nodeId": "lola.hrt.F6huKxiahYR6nyUZBMO",
"parentNodeId": "lola.hub.hsnwg921TBQbNKeNMjS",
"nodeType": "category",
"nodeSubType": "sources",
"label": "Sources",
"children": [...] // omitted for brevity
}
]
}