[wp-trac] [WordPress Trac] #45717: REST API: Navigation Endpoint
WordPress Trac
noreply at wordpress.org
Thu Dec 20 01:49:05 UTC 2018
#45717: REST API: Navigation Endpoint
-----------------------------+------------------------------
Reporter: McWebDev | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version:
Severity: normal | Resolution:
Keywords: | Focuses: rest-api
-----------------------------+------------------------------
Changes (by SergeyBiryukov):
* focuses: => rest-api
* component: General => Menus
Old description:
> As a consumer of the WP REST API, I should be able to request the
> navigation configuration so that I may use the response object to
> construct navigation menus for custom frontends.
>
> Proposed Endpoints:
>
> GET /navigation Gets all menus.
> GET /navigation/{menu_id} Gets a specific menu.
>
> Proposed Response Object:
>
> [
> {
> id: {item id}
> slug: {item slug}
> label: {item label}
> },
> ...
> ]
New description:
As a consumer of the WP REST API, I should be able to request the
navigation configuration so that I may use the response object to
construct navigation menus for custom frontends.
Proposed Endpoints:
{{{
GET /navigation Gets all menus.
GET /navigation/{menu_id} Gets a specific menu.
}}}
Proposed Response Object:
{{{
[
{
id: {item id}
slug: {item slug}
label: {item label}
},
...
]
}}}
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45717#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list