Skip to content

getherbert/example-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Plugin: Api Posts

This is an example plugin for Herbert. Remember to run composer install

The plugin:

  1. Extends the post Publish metabox with an option to enable the api on that post.
  2. Adds a panel where you can define IP addresses that are allowed to access the api.
  3. Adds routes for the api:
  • /api/posts
  • /api/posts?page=2
  • /api/post/123
  • DELETE /api/post/123

About

Api Posts is basic example of using Herbert

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published