responseDescription

Sets the description of the success response for this endpoint in the OpenAPI specification.

Useful when the response type is a generic wrapper such as List and the @Response annotation on the element type is not picked up automatically.

Takes priority over the description from @Response.

Example:

get<Unit, List<Sak>>(responseDescription("All saker for a person")) { ... }

Parameters

description

the description to show in the OpenAPI specification for the success response