Adds a menu endpoint for the WordPress REST API.
This is not a plugin.
Add "jp-menu-route": "dev-master"
to your site/plugin/theme's composer.json file. Include composer autoloader.
Make request to wp-json/jp-api/menus/
to get info about all menus.
Make request to wp-json/jp-api/menus/<menu-name>
to get all items of specific menu.
Note that the base URL for the REST API "wp-json" can be modified with a filter. Also this lib's route can be modified using the JP_API_ROUTE constant.
Copyright 2014 Josh Pollock Licensed under the terms of the GNU General Public License version 2 or later. Please share with your neighbor.