Opened 8 years ago
Closed 8 years ago
#45717 closed feature request (duplicate)
REST API: Navigation Endpoint
| Reported by: | McWebDev | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Menus | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | rest-api |
Description (last modified by )
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}
},
...
]
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi @McWebDev, welcome to WordPress Trac!
Thanks for the ticket, we're already tracking this feature request in #40878.