Fetch all menus that the Navigation Service provides links for, including the full menu structures.
Query Param | source |
---|---|
Description |
A valid system code which identifies the application making this request. |
Responds with a JSON object, where each property is the name of a menu and each value is a Menu entity. E.g.
GET /v2/menus?source=test
{
"example-menu": {
"label": "Example Menu",
"items": [
{
"label": "Example Item",
"url": "http://example.com/",
"submenu": null
}
]
}
}
Fetch a single menu by name.
Param | name |
---|---|
Description |
The name of the menu being fetched. This should reference an existing menu in the Navigation config file |
Query Param | source |
---|---|
Description |
A valid system code which identifies the application making this request. |
Responds with a JSON object representing the requested menu. This will be a Menu entity. E.g.
GET /v2/menus/example-menu?source=test
{
"label": "Example Menu",
"items": [
{
"label": "Example Item",
"url": "http://example.com/",
"submenu": null
}
]
}
Fetch all links that the Navigation Service provides as a flat array.
Query Param | source |
---|---|
Description |
A valid system code which identifies the application making this request. |
Responds with a JSON array, where each item in the array is an Item entity. E.g.
GET /v2/links?source=test
[
{
"label": "Example Item",
"url": "http://example.com/",
"submenu": null
}
]
A Menu entity represents a navigation menu and can contain multiple Item entities.
{
"label": "Example Menu",
"items": []
}
Property | label |
items |
---|---|---|
Description |
|
|
An Item entity represents a single navigation item and any submenus that it may have.
{
"label": "Example Item",
"url": "http://example.com/",
"submenu": null
}
Property | label |
url |
submenu |
---|---|---|---|
Description |
|
|
|
Some URLs contain patterns that will need to be replaced before presenting to the user.
Replacement patterns always take the form: ${name}
.
Pattern | Request path |
---|---|
Replacement | ${currentPath} |
Description |
The |