automattic

  • How to create WordPress Application password via Studio CLI and test REST API endpoint

    How to create WordPress Application password via Studio CLI and test REST API endpoint

    For a project for the Create Block Theme plugin, I created a new REST API endpoint that needs to be tested before it can be used with the a future UI feature. The task was to “Smoke test from a REST client (Postman / cURL) against the endpoint with a small payload” I used three increasingly thorough payloads, plus the cURL commands. But before doing that I needed an application password. Application password via Studio CLI Whatever Studio shows in the site sidebar (e.g., http://localhost:8897). Studio app > site > “Open in…

    Read more