A sample plugin created for a set of posts on my website: see the first post.
- clone the repository in the WordPress installation plugin folder.
- run
composer update
from the root of therest-calculator
plugin folder. - update the test suites configuration files to match your local set up
Activate the plugin and hit the only provided route at /wp-json/calc/add/<number>/<number>
and behold the power of it.