← CodeClarityLab Home
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 Versioning
Strategies for evolving an API without breaking existing consumers — URI versioning, header versioning, and content negotiation.
1mo ago api_design intermediate
HTTP Content Negotiation
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.
1mo ago api_design intermediate
API Authentication Patterns
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.
2mo ago api_design intermediate
Diagram: API Backwards Compatibility API Backwards Compatibility
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.
2mo ago api_design intermediate
API Documentation
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.
2mo 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.
2mo ago api_design intermediate
API Mocking
Prism (OpenAPI mock server), WireMock (HTTP stub server), Mockoon (GUI), and Guzzle MockHandler for PHP unit tests — enabling testing without real API calls.
2mo 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.
2mo ago api_design intermediate
Webhook Design PHP 5.0+
Best practices for reliable webhooks — HMAC signature verification, idempotency, delivery retry with exponential backoff, and handling slow consumers with queues.
2mo ago api_design intermediate
Diagram: API Deprecation API Deprecation
The process of signalling that an API version, endpoint, or parameter will be removed — giving consumers time to migrate while maintaining backwards compatibility.
2mo ago api_design intermediate
Diagram: API Error Handling API Error Handling
Returning structured, machine-readable error responses using appropriate HTTP status codes — enabling clients to handle errors programmatically without parsing message strings.
2mo 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.
2mo 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.
2mo 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.
2mo ago api_design intermediate
✓ schema.org compliant