How to create new REST API routes in WordPress.
Register a simple API route to create a post or delete it using a secret token.
This repository is a basic WordPress plugin created to illustrate a tutorial about the WordPress REST API and how to extend it.