Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Menu json response is not jsonapi #52

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"
            }
        ]
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions