X API v2 list endpoints are cursor-based with no offsets. Compare cursor pagination, time-windowed backfill, and streaming, then implement a resumable paginator and validate completeness.
Opaque types let a Scala 3 module expose a compile‑time distinct type while keeping a primitive representation at runtime. This note walks through requirements, minimal design, trust boundaries, operational checks, failure modes, and when to adjust the design.
Avoid 404s and empty path parameters in Fiber APIs by understanding case‑sensitive matching, route groups, and wildcard ordering—with verification commands.
A decision guide that outlines when to use Relay‑style cursor pagination versus simple offset pagination, compares their trade‑offs, and shows a minimal implementation with verification steps.
Learn how to extend a DRF ModelViewSet with custom endpoints using the @action decorator, including routing, HTTP methods, permission overrides, and a concrete worked example with verification steps.
Model mutually exclusive API payloads with OpenAPI oneOf, anyOf, and discriminators — with a working payment schema, validation checks, and honest tooling trade-offs.
Learn how to model polymorphic payloads with an OpenAPI discriminator, see a worked Pet/Cat/Dog example, and understand validation limits and common pitfalls.
Deciding between typed records and map-based JSON handling in Ballerina services: a comparison of compile-time safety versus runtime flexibility, with working examples and validation steps.
How to model polymorphic request and response bodies in OpenAPI 3.x using oneOf with a discriminator: a worked Pet/Cat/Dog schema, why the mapping table and required property matter, and the pitfalls that break validators and generators.