ResponsesConfig

All possible responses of an operation

Functions

Link copied to clipboard
fun code(statusCode: HttpStatusCode, block: ResponseConfig.() -> Unit)
fun code(statusCode: String, block: ResponseConfig.() -> Unit)

Information of response for a given http status code

Link copied to clipboard
fun default(block: ResponseConfig.() -> Unit)

Information of the default response

Link copied to clipboard
fun getResponses(): <Error class: unknown class>
Link copied to clipboard
infix fun HttpStatusCode.to(block: ResponseConfig.() -> Unit)
infix fun String.to(block: ResponseConfig.() -> Unit)

Information of response for a given http status code