WordPress as API Middleware: We’ve been doing things wrong. Lets fix it!
summary
Proposal claims WordPress can act as API middleware using a middleware plugin that registers wildcard proxy endpoints (REST regex routing), shapes requests/responses, caches slow API results, and can import API objects as custom post types. Demonstration uses a Google Cloud Vision integration with minimal code to auto-label images via the proxy and it works in the demo. Practical headaches include outdated or missing PHP SDKs, PHP compatibility, CORS, and unresolved OAuth/token management.
AI-written summary · about
