@beholdio/ts-lambda-api - v2.4.8
    Preparing search index...

    Function apiResponse

    • Decorator that can be placed on an endpoint to describe a possible response in any generated OpenAPI specification.

      Parameters

      • statusCode: number

        HTTP status code that will be sent in this response.

      • OptionalapiBodyInfo: ApiBody

        Information about the response body generated.

      Returns (classDefinition: Object, methodName: string) => void