Simple plugin to add rest endpoints to blog for working with a js framework.
| Author: | Anthony Allen (profile at wordpress.org) |
| WordPress version required: | 4.0 |
| WordPress version tested: | 4.9.4 |
| Plugin version: | 1.5.0 |
| Added to WordPress repository: | 21-02-2018 |
| Last updated: | 26-03-2018
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
| Rating, %: | 100 |
| Rated by: | 1 |
| Plugin URI: | |
| Total downloads: | 1 146 |

Click to start download
|
FAQ
Installation Instructions
- Upload
ng-wp-rest to the /wp-content/plugins/ directory.
- That is it this plugin just defines some simple rest endpoints for you blog.
How does it work?
Simply install it and visit the endpoints defined
Menus
- http://{url}/wp-json/ng-menu-route/v2/menus/{id}
- http://{url}/wp-json/ng-menu-route/v2/menus
- http://{url}/wp-json/ng-menu-route/v2/menu-locations/header-menu
- http://{url}/wp-json/ng-menu-route/v2/menu-locations
Widgets
- http://{url}/wp-json/ng-widget-route/v2/widgets/{id}
- http://{url}/wp-json/ng-widget-route/v2/widgets
Sidebars
- http://{url}/wp-json/ng-sidbar-route/v2/sidebars/{id}
- http://{url}/wp-json/ng-sidebar-route/v2/sidebars
Custom Post Types
- http://{url}/wp-json/ng-post-type-route/v2/post-types/{name}
- http://{url}/wp-json/ng-post-type-route/v2/post-types/
Meta Fields for sidebars shows on Post and Page default endpoints
"meta-fields":
{
"sidebar":["Right Sidebar"]
}
ChangeLog
1.0
- 02-21-2018
- Initial release
1.2.1
- 02-24-2018
- Updates to endpoints and small bug fix
1.2.2
- 02-24-2018
- Custom post types bug fix
1.5.0
- 03-26-2018
- Custom post types fix
- Separated Code into more classes