Adding Custom Routes to the WordPress REST API
Most of the discussion around the WordPress REST API has been about querying the default routes. In that sense, we’re treating it as a monolithic API—like the Twitter API, for example…. Source: https://torquemag.io/2015/06/adding-custom-routes-wordpress-rest-api/