Stone.js API
    Preparing search index...

    Serves the OpenAPI contract and its explorer.

    The document is assembled per request rather than once at boot, because the server URL it advertises must be the host that answered: the same artefact runs behind a local port, a load balancer and an API Gateway stage, and a URL frozen at build time is wrong for at least two of them. Configuration wins when it declares servers explicitly.

    Index
    • Serve the API explorer.

      Parameters

      • event: IncomingEvent

        The incoming event.

      Returns string

      The HTML page.

    • Serve the OpenAPI JSON document.

      Parameters

      • event: IncomingEvent

        The incoming event.

      Returns OpenApiDocument

      The document.