BTI Beyond The Interviews

System Design & Architecture · 11 sections

API Design

REST, GraphQL, gRPC, and the conventions behind well-designed APIs.

Premium · preview 120 cards Updated 24 Oct 2026
Free to preview. The first 3 cards and the full outline are below — the rest of this sheet is part of the System Design bundle.

What's inside

Preview — first 3 of 120 cards

What is REST?

Architectural style using resources, representations, and stateless HTTP. Clients interact with resource URIs via standard methods. Emphasizes cacheability, layered system, and uniform interface.

GET /users/123
POST /users
PUT /users/123

Resource naming

Use plural nouns for collections and an identifier for one item: /users, /users/123, /users/123/orders. Lowercase, kebab-case for multi-word segments (/order-items); never mix snake_case and camelCase in paths. Verbs belong in HTTP methods, not URLs — avoid /getUser or /createOrder; model actions as sub-resources when needed (POST /orders/123/cancel). Pick one convention and enforce it with a lint rule on the OpenAPI spec.

/users
/users/123/orders
/order-items        # kebab-case
/getUser            # avoid
/user_profiles      # avoid

HTTP methods semantics

GET read (safe, idempotent), POST create (neither safe nor idempotent), PUT full replace (idempotent), PATCH partial update (not idempotent by definition), DELETE remove (idempotent). HEAD returns headers only; OPTIONS advertises capabilities and answers CORS preflight. Don't overload GET with side effects — prefetchers, crawlers and retries will trigger them.

GET  /users/123
POST /users
PUT  /users/123
PATCH /users/123
DELETE /users/123

117 more cards in this sheet

Unlock the System Design bundle — ₹399

One-time payment. Unlocks this sheet and 10 other sheets in the bundle, plus a typeset PDF of each.

Unlock the bundle See all bundles

Or get all 76 sheets for ₹999 — one payment, every future sheet included.