This is an example plugin for Herbert. Remember to run composer install
The plugin:
- Extends the post Publish metabox with an option to enable the api on that post.
- Adds a panel where you can define IP addresses that are allowed to access the api.
- Adds routes for the api:
/api/posts
/api/posts?page=2
/api/post/123
DELETE /api/post/123