Decoupled Menus provides the best way for JavaScript front ends to consume configurable menus managed in Drupal. This makes it easy for a front-end developer to consume that menu data in order to render a navigation instead of hard-coding it. This also means that non-developers can manage application menus without writing code!
It is now possible to enable the linkset endpoint in site settings under Webservices on the configuration page. The url for this setting is /admin/config/services/linkset.
Finding the setting on the configuration page
The setting is locaties in the Webservices group.

Enable the linkset endpoint
Enable the linkset endpoint by enabling the checkbox.

This enabled an new endpoint at system/menu/[menu system name]/linkset. This endpoint serves menu's as a linkset.
Example output for a default installation
system/menu/main/linkset
"linkset": [
{
"anchor": "/system/menu/main/linkset",
"item": [
{
"href": "/",
"title": "Home",
"hierarchy": [
"0"
],
"machine-name": [
"main"
]
}
]
}
]
}
Learn more about decoupled menus
To learn more about the linkset format and what this provides checkout the documentation on Drupal.org.
| Attachment | Size |
|---|---|
| Decoupled menus settings placement in configuration screen | 16.36 KB |
| Decoupled menus settings form | 15.07 KB |