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

    Serves the OpenAPI document describing the endpoints of the external API at OPENAPI_SPEC_PATH.

    The endpoint itself is served without token verification, but scopes the document to the requester: when a token is configured, requests without it receive a document covering only the unprotected contributions, while requests carrying the token receive the full document, so that the protected API surface is not revealed to unauthorized clients.

    Implements

    Index

    Constructors

    Properties

    Documentation of this contribution, grouping its routes under an OpenAPI tag in the OpenAPI document of the external API.

    path: "/api/openapi.json" = OPENAPI_SPEC_PATH

    Absolute path under which this contribution's routes are mounted, e.g. /api/ai/sessions. The server imposes no path conventions, but each contribution answers all requests below its path, so contribution paths must not nest: a contribution whose path nests with the path of another contribution is skipped with a warning. With samePort delivery the path also must not nest with one of Theia's own routes on the main server, as it would shadow them; the server cannot detect that case.

    unprotected: true

    Serve this contribution without token verification even when a token is configured. Intended for endpoints with their own authentication or endpoints that are conventionally public. Defaults to false.

    Methods