describeWith

infix fun Route.describeWith(builder: OperationBuilderWithHooks): Route

Adds an OpenAPI operation description to this route using a prepared builder.

Refer to OperationBuilderWithHooks for details on how to construct custom builders. For most cases, you should instead use describe.

The TegralOpenApiKtor plugin needs to be installed for this to work.