WPAPI-SwaggerGenerator
WPAPI-SwaggerGenerator copied to clipboard
Consider integration tests for your WP REST API endpoints
Hi!
On behalf of Pantheon, I'm writing a tutorial on why integration tests are critical for your WP REST API endpoints, and how you can go about writing them.
Given your use of register_rest_field()
, I think you could benefit from reading and applying the tutorial. And, because the tutorial isn't yet published, I'd very much appreciate any constructive criticism you have, so that we can make the tutorial an evergreen resource for the community.
Thanks in advance for your time. Happy to take any questions, comments, etc. you might have in this Github issue, or on the document itself (you'll need to be signed into Dropbox).
Yes agreed - I will see what I can do - also happy to accept PR for this too ;)