How can I fetch the complete main navigation menu via jsonapi?
I've tried:
curl --header 'Accept: application/vnd.api+json' https://cms.example.com/jsonapi/menu/menu/
and
curl --header 'Accept: application/vnd.api+json' https://cms.example.com/jsonapi/menu/menu/232fc942-51f3-4478-8535-e5dc482a166e
where 232fc942-51f3-4478-8535-e5dc482a166e
is the id
of the main-navigation menu BUT only the first level nodes are returned:
{
"data": {
"type": "menu--menu",
"id": "232fc942-51f3-4478-8535-e5dc482a166e",
"attributes": {
"label": "Main navigation"
},
"links": {
"self": {
"href": "https://cms.garanteasy.com/jsonapi/menu/menu/232fc942-51f3-4478-8535-e5dc482a166e"
}
}
},
"jsonapi": {
"version": "1.0",
"meta": {
"links": {
"self": {
"href": "http://jsonapi.org/format/1.0/"
}
}
}
},
"links": {
"self": {
"href": "https://cms.garanteasy.com/jsonapi/menu/menu/232fc942-51f3-4478-8535-e5dc482a166e"
}
}
}