Theia API Documentation v1.76.0
    Preparing search index...

    Builds the OpenAPI document describing the external API.

    The external API server records the typed routes and event streams of all contributions on each routing build; the document is assembled on demand from those recordings, e.g. by the OpenApiSpecContribution serving it. Routes registered on a contribution's raw express router are not recorded and do not appear in the document.

    Rebind the OpenApiDocumentBuilder to customize the document.

    interface OpenApiDocumentBuilder {
        build(includeProtected?: boolean): OpenApiDocument;
        update(
            sources: readonly OpenApiDocumentSource[],
            tokenConfigured: boolean,
        ): void;
    }

    Implemented by

    Index

    Methods

    Methods

    • Builds the OpenAPI document for the routes of the current routing build. With includeProtected set to false, the document covers only the contributions served without token verification, i.e. the view presented to unauthorized requests.

      Parameters

      • OptionalincludeProtected: boolean

      Returns OpenApiDocument