The Powerduck Blog

API engineering, from the spec out

Product updates, engineering notes, and guides for designing, debugging, testing, mocking, and serving MCP tools from one OpenAPI spec.

Browse the guides
testing 2 min read

A 200 is not done: make the AI walk the business scenario

The create call returned 200, the detail view 404s, and cancel accepts an illegal state. Scenario tests chain real calls, pass data between steps, and hand the agent evidence to fix with.

Read article
testing 4 min read

Scenario testing for REST APIs: writing user-journey tests from OpenAPI

A folder of requests that each return 200 is not a test suite. A scenario chains requests the way a user walks the product: create, capture, poll, act, assert. Here is how to derive scenarios from an OpenAPI spec and run them against mock then staging.

Read article
ci 4 min read

Detect breaking API changes in CI with OpenAPI diffs (before your customers do)

Most breaking API changes ship silently: a removed enum value, a field turned nullable, a new required parameter, a tightened status code. OpenAPI diffing in CI classifies changes as breaking or non-breaking, blocks the dangerous ones, and turns API review from memory into a checklist.

Read article
workflow 2 min read

The backend was three weeks late. We shipped the frontend anyway.

A concrete sprint diary: one OpenAPI file drove a local mock with latency and error overrides, a four-step checkout scenario with an HTML report, live docs, derived database tables and a hosted MCP endpoint while the real API did not exist yet.

Read article
mocking 2 min read

Don't block frontend work on a backend that isn't ready

Fake objects in components demo well and integrate badly. Agree on the coupon validation contract first, then let a spec-driven mock answer real HTTP while the service is still being built.

Read article
Documentation 4 min read

How to build beautiful, modern API documentation from OpenAPI in 2026

Modern API docs are a rendered OpenAPI document with search, try-it requests, dark mode, and crawlable HTML. Here is how the hosting options actually compare, from self-hosted renderers to managed portals, and what SEO requires.

Read article