The wp json-dump routes command reads all the routes registered with the REST API and dumps their schemas to files in the tests/data/rest-api/routes directory. These files aren't actually used during tests, the intention was to use them to implement a test which fails when a new endpoint is registered in a new version of WordPress so I can be alerted when a schema for it needs to be created.
The
wp json-dump routes
command reads all the routes registered with the REST API and dumps their schemas to files in thetests/data/rest-api/routes
directory. These files aren't actually used during tests, the intention was to use them to implement a test which fails when a new endpoint is registered in a new version of WordPress so I can be alerted when a schema for it needs to be created.