I am using the latest version of the REST API plugin in a project and I’ve added my routes to a separate namespace (as recommended in the documentation). The javascript client included with the API automatically creates models and collections based on the public routes in the wp/v2
namespace.
Does anyone know if it’s possible to extend the built-in client to use a custom namespace, and automatically parse the root endpoint to generate the models and collections for my private API?