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
debugging 3 min read

The URL Was Double-Encoded: Debugging a 400 from %2520

Quick answer: A 400 that only appears when a query value contains a space or a special character is usually double percent-encoding. The client encodes once, then a helper or

Read article
mocking 3 min read

Stateful Mocking: WireMock Scenarios vs Spec-Based State

Quick answer: Many APIs are not pure request-response: the response to a second call depends on what the first call did, and a stateless mock that always returns the same

Read article
openapi 3 min read

Bundling Multi-File OpenAPI: $ref Resolution Compared

Quick answer: Splitting an OpenAPI document across files is the right move for large APIs, but every tool that consumes the spec — docs, mock servers, code generators, gateways — needs a

Read article