← Home ← Codex ← DEBT
Browse by Category
+ added · updated 7d
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
API Request Timeout Handling
Client-side deadlines, retries with backoff, and circuit breakers that keep your app responsive when an upstream API fails to reply in time.
2w ago API Design intermediate
API Versioning 🧠 1
Strategies for evolving an API without breaking existing consumers — URI versioning, header versioning, and content negotiation.
3mo ago API Design intermediate
HTTP Content Negotiation 🧠 1
The HTTP mechanism by which clients declare what formats, languages, and encodings they accept (Accept, Accept-Language, Accept-Encoding) and servers respond with the best match — or 406 Not Acceptable if none fits.
3mo ago API Design intermediate
API Authentication Patterns 🧠 2
Bearer tokens (JWT) for user sessions, API keys for machine-to-machine, mTLS for highest-security internal services — matching authentication method to the use case.
3mo ago API Design intermediate
Diagram: API Backwards Compatibility API Backwards Compatibility 🧠 1
Rules for evolving an API without breaking existing clients — additive changes are safe, removals and renames require versioning, and deprecation needs a documented sunset period.
3mo ago API Design intermediate
API Documentation 🧠 2
OpenAPI/Swagger for REST APIs, Postman collections for explorability, and Stoplight for design-first workflows — good API docs are the product's user interface for developers.
3mo ago API Design intermediate
Diagram: API Idempotency Keys API Idempotency Keys PHP 7.0+
A client-generated unique key sent with non-idempotent requests — the server stores the response and returns it unchanged if the same key is received again, preventing duplicate operations.
3mo ago API Design intermediate
API Mocking 🧠 1
Prism (OpenAPI mock server), WireMock (HTTP stub server), Mockoon (GUI), and Guzzle MockHandler for PHP unit tests — enabling testing without real API calls.
3mo ago API Design intermediate
GraphQL vs REST vs gRPC
REST for public APIs and resource-oriented design, GraphQL for flexible client-driven queries, gRPC for high-performance internal service communication.
3mo ago API Design intermediate
Webhook Design PHP 5.0+ 🧠 1
Best practices for reliable webhooks — HMAC signature verification, idempotency, delivery retry with exponential backoff, and handling slow consumers with queues.
3mo ago API Design intermediate
Diagram: API Deprecation API Deprecation 🧠 1
The process of signalling that an API version, endpoint, or parameter will be removed — giving consumers time to migrate while maintaining backwards compatibility.
3mo ago API Design intermediate
Diagram: API Error Handling API Error Handling 🧠 1
Returning structured, machine-readable error responses using appropriate HTTP status codes — enabling clients to handle errors programmatically without parsing message strings.
3mo ago API Design intermediate
Diagram: API Pagination Patterns API Pagination Patterns
Strategies for returning large collections in manageable chunks — offset/page-based, cursor/keyset, and hybrid approaches each suit different use cases.
3mo ago API Design intermediate
Diagram: API Rate Limiting API Rate Limiting
Controlling how many requests a client can make in a time window — protecting against abuse, ensuring fair usage, and preventing accidental DoS from misbehaving clients.
3mo ago API Design intermediate
REST Architectural Constraints PHP 5.0+
The six constraints Fielding defined for REST — statelessness, uniform interface, client-server separation, cacheability, layered system, and optional code on demand.
3mo ago API Design intermediate
✓ schema.org compliant