API Design
REST, pagination, versioning, status codes and API security.
7 notes · 29 min total
- 1API Design FundamentalsChoosing between REST, GraphQL and RPC, plus the core API design checklist: resources, methods, pagination, versioning and security.4 min
- 2RESTModel resources from your core entities, use HTTP methods correctly, and pass data via path, query and body.4 min
- 3GraphQLHow GraphQL lets clients request exactly the fields they need from a single endpoint, and when to choose it over REST.4 min
- 4RPCHow RPC frameworks like gRPC model APIs as remote function calls, and when to use them for internal services.3 min
- 5Pagination and VersioningOffset vs cursor pagination, URL vs header versioning, and how to retire old API versions without breaking clients.7 min
- 6API SecurityAuthentication vs authorization, when to use API keys or JWTs, role-based access control, and rate limiting for APIs.5 min
- 7HTTP Status CodesThe HTTP status codes you'll use in API design, grouped by class, with what triggers each.2 min