_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN
Let's talk

API Design Checklist

08. 11. 2025 1 min read intermediate

Good API design saves everyone time. Go through this checklist before publishing your API.

Naming & Structure

  • ☐ Resources as nouns (/users, /orders)
  • ☐ Plural consistently
  • ☐ Hierarchical URLs (/users/123/orders)
  • ☐ Kebab-case for multi-word
  • ☐ Versioning (v1/users or Accept header)

HTTP Methods

  • ☐ GET = reading (idempotent)
  • ☐ POST = creation
  • ☐ PUT = full update
  • ☐ PATCH = partial update
  • ☐ DELETE = deletion

Response

  • ☐ Consistent response format
  • ☐ Proper status codes
  • ☐ Pagination (limit/offset or cursor)
  • ☐ Filtering and sorting parameters
  • ☐ HATEOAS links (optional)

Error Handling

  • ☐ Structured error response { code, message, details }
  • ☐ Validation errors with field-level details
  • ☐ No stack traces in production
  • ☐ Rate limit headers (X-RateLimit-*)

Security

  • ☐ Authentication (Bearer token / API key)
  • ☐ Authorization on every endpoint
  • ☐ Input validation and sanitization
  • ☐ CORS properly configured
  • ☐ Rate limiting

Documentation

  • ☐ OpenAPI/Swagger spec
  • ☐ Examples for every endpoint
  • ☐ Error catalog
  • ☐ Getting started guide

Tip

Design APIs from the consumer’s perspective, not the implementation. And always write an OpenAPI spec.

apirestdesign
Share:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.