Extending the REST API
WP REST API can be extended. For example, you can create your own new routes, endpoints, describe resource schemas that our routes work with, and describe parameter schemas for the endpoint.
Also, when registering custom post types or taxonomies, you can specify that they should be available in the REST API.
This section covers all these points.