Expand description
Date-based API versions: resolving the Api-Version header, deprecation and retirement, and
the version changes that let older clients keep the shape they were built against.
Modules§
- document
- Helpers for writing
VersionChangetransforms over JSON:API documents and plain JSON.
Structs§
- ApiVersion
- A date-based API version:
YYYY-MM-DDwith an optional release name, as in2027-01-15.atlas. Versions compare by date; the name is a label for the release the version belongs to. - Deprecated
- When a version stops working, and the brownouts before then.
- Versions
- The versioning configuration, mirroring
api.versionsin the PHP package.
Constants§
- HEADER
- The header that pins a request to a version, and that responses echo.
Traits§
- Version
Change - One backwards-incompatible change, registered under the version that introduced it.
Functions§
- legacy
- Wraps an async handler as a
LegacyHandler.
Type Aliases§
- Legacy
Handler - A frozen handler that serves a route to versions older than the change that froze it.