Skip to content
mentoor

API design review

For engineers

REST and RPC styles, versioning, errors, idempotency and pagination, reviewed as the person who signs off on generated APIs

See where you stand

110 questions across four stages: Understand, Apply, Solve and Judge.

Try 5 questions

Practice items, not counted towards your mastery. No account needed.

Check yourself · 1 of 5

An assistant generates GET /orders/17/cancel. What is the main problem?

Choose one answer

Check yourself · 2 of 5

Which change to a JSON response is usually non-breaking?

Choose one answer

Check yourself · 3 of 5

Why should an API error carry a stable type or code as well as a message?

Choose one answer

Check yourself · 4 of 5

Which HTTP method is not idempotent by definition?

Choose one answer

Check yourself · 5 of 5

A generated GET /orders returns every order in one array. What is the main risk?

Choose one answer

Topics

  1. Choosing REST, RPC or GraphQL styles4 min read · Resources versus actions, HTTP method and status semantics, and keeping a generated endpoint consistent with the API it joins
  2. Versioning and backward-compatible changes4 min read · Breaking versus additive changes, deprecation windows, and URL or header versioning
  3. Consistent, actionable API error responses4 min read · One error shape with stable codes (RFC 9457 problem details), correct status codes and no stack traces or internals
  4. Idempotency keys and safe retries5 min read · Idempotent methods, idempotency keys on create and payment calls, and retries from clients, queues and agents
  5. Pagination, limits and OpenAPI contracts4 min read · Cursor versus offset pagination, bounded list sizes, filtering, and the OpenAPI spec as the contract that tests check

Start here

110 questions · last verified 2026-12