Tag: REST
-
WordPress API returns HTML not JSON
Summary I found that in some cases the WordPress API was returning HTML not JSON. Inspection of the HTML showed that I was being redirected to the login page by Formidable Registration Plugin when basic authentication failed. Steps to Resolution The steps to resolution were, Disable all plugins Install Basic Auth plugin from https://github.com/WP-API/Basic-Auth…
-
API first development (using Postman)
This is a great article about API first development https://medium.com/postman-engineering/api-first-software-development-for-modern-organizations-fdbfba9a66d3 It is often said that every generation thinks that it has discovered sex and in the same way sensible coding practices are “rediscovered” every couple of years. Nevertheless I like this article because it frames API development in a modern context.
