Skip to main content

Module docs

Module docs 

Source
Expand description

The API reference and changelog pages, as the PHP package’s DocsController serves them at api.docs.path: Scalar (or Redoc) over the OpenAPI document of each offered version, and the changelog rendered from each version’s changes.

Structs§

Docs
api.docs in the PHP package. Mount the pages with routes.

Enums§

Renderer
Which page renders the reference.

Functions§

changelog
The changelog page.
markdown
The changelog as Markdown: each released version’s breaking changes, newest first, as the PHP package’s api:changelog writes it. unreleased also lists versions newer than the latest. Empty while versioning is off or Fusion Stack is not registered.
openapi
The OpenAPI document for ?version=, or the latest, with a link to the changelog.
reference
The reference page.
routes
Registers the reference at /{path}, each version’s document at /{path}/openapi.json, and the changelog at /{path}/changelog. Wrap the call in a group to add middleware, such as authentication.