Skip to content

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.

Parameter Type
options? OpenApiOptions

Record<string, unknown>

import { buildOpenApiDocument } from "@xtandard/entitlements";
const doc = buildOpenApiDocument({ basePath: "/billing", title: "Acme billing" });