buildOpenApiDocument
function buildOpenApiDocument(options?): Record<string, unknown>;Defined in: src/server/openapi.ts:617
Build the OpenAPI 3.1 document for the panel API. Every route of
docs/HTTP_API.md is present; admin routes carry their authorization action
as x-action.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options? |
OpenApiOptions |
Returns
Section titled “Returns”Record<string, unknown>
Example
Section titled “Example”import { buildOpenApiDocument } from "@xtandard/entitlements";const doc = buildOpenApiDocument({ basePath: "/billing", title: "Acme billing" });