final class DocsController (View source)

Serves a Swagger UI shell pointing at the configured OpenAPI endpoint and version-pinned assets.

Constants

private SWAGGER_UI_VERSION

private SWAGGER_ASSET_BASE_URL

Methods

__construct(ApiConfig $config, Psr17Factory $psr17)

Binds documentation rendering to resolved API routes and PSR-17 response creation.

ResponseInterface
show()

Returns the themed HTML documentation page with version-pinned framework assets.

ResponseInterface

Details

__construct

__construct(ApiConfig $config, Psr17Factory $psr17)

Binds documentation rendering to resolved API routes and PSR-17 response creation.

Parameters

ApiConfig $config
Psr17Factory $psr17

show

ResponseInterface show()

Returns the themed HTML documentation page with version-pinned framework assets.

Return Value

ResponseInterface

Exceptions

JsonException