Skip to content
Corex

ApiDocsGenerator

Corex\Cli\Docs\ApiDocsGenerator · class · CLI layer

Emits an OpenAPI 3 document for the Corex REST API (spec 046, US3) from the route descriptors + the spec-043 envelope schema + the auth scheme. Pure: descriptors in, an OpenAPI array out (the command JSON-encodes it). Carries no secret.

generate(array $routes, string $title, string $version): array

Section titled “generate(array $routes, string $title, string $version): array”