Topic

API Design

4 min read

Reusable JSON Schema components in OpenAPI: DRY models without $ref spaghetti

Inline every schema and your request and response models drift apart. Extract everything and the document becomes a maze of one-off references. The middle path is a small set of rules for what becomes a component, what stays inline, and how to name and compose it.

Read article
3 min read

MCP Tools vs Resources vs Prompts: What to Expose to an AI Agent

Most teams expose everything as MCP tools and end up with a catalog the model cannot navigate. The protocol defines three primitives for a reason: tools act, resources are readable context, and prompts package reusable workflows. Here is how to decide, with examples from an API platform.

Read article
3 min read

Designing an API before the first line of code

Behavior first, routes second. AI drafts the OpenAPI contract as reviewable diffs, the team settles money, idempotency, and error envelopes up front, and mocks plus scenarios define done before implementation starts.

Read article
3 min read

When AI writes your system, who defines what done means?

A booking app built from one prompt can pass every visual check and still fail on time zones, double bookings, and stale cancel responses. Teams need a contract both people and tools can query, change, and verify.

Read article
4 min read

Cursor vs offset pagination: what to actually put in your OpenAPI spec

Offset pagination is easy until data changes under the client; cursors are stable but opaque and bad for jump-to-page. Here is how to choose, how to document each style in OpenAPI 3.2, and the response envelope that stops frontend teams guessing.

Read article