Skip to content

Menu json response is not jsonapi #52

Open
@luispabon

Description

@luispabon
[development@localhost ~/P/bolt-test] (master) http http://localhost:17000/json/menu
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Cache-Control: no-cache
Connection: keep-alive
Content-Type: application/vnd.api+json
Date: Thu, 25 May 2017 10:54:12 GMT
Server: nginx/1.13.0
Transfer-Encoding: chunked
X-Debug-Token: 4fb78b
{
    "data": {
        "main": [
            {
                "label": "Home",
                "title": "This is the first menu item.",
                "path": "homepage",
                "class": "first"
            },
            {
                "label": "Second item",
                "path": "entry\/1",
                "submenu": [
                    {
                        "label": "Sub 1",
                        "path": "entry\/2"
                    },
                    {
                        "label": "Sub 2",
                        "class": "menu-item-class",
                        "path": "entry\/3"
                    },
                    {
                        "label": "Sub 3",
                        "path": "entry\/4"
                    },
                    {
                        "label": "Sub 4",
                        "class": "sub-class",
                        "path": "page\/3"
                    }
                ]
            },
            {
                "label": "All pages",
                "path": "pages\/"
            },
            {
                "label": "The Bolt site",
                "link": "http:\/\/bolt.cm",
                "class": "last"
            }
        ]
    }
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions