Companion

object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val ERROR_INFO_CONTENT: Content
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun String.toRefResponse(): ApiResponse
Link copied to clipboard
fun Content.toResponse(description: String = ErrorInfo.SUCCEEDED): ApiResponse
fun Schema<*>.toResponse(mediaType: String = Https.MediaType.APPLICATION_JSON, description: String = ErrorInfo.SUCCEEDED): ApiResponse
fun Class<*>.toResponse(isArray: Boolean = false, description: String = ErrorInfo.SUCCEEDED): ApiResponse
Link copied to clipboard
fun ApiResponses.with(responseRef: ResponseRef): ApiResponses
fun MutableMap<String, ApiResponse>.with(responseRef: ResponseRef): MutableMap<String, ApiResponse>
Link copied to clipboard
fun ApiResponses.withBadRequest(): ApiResponses
fun MutableMap<String, ApiResponse>.withBadRequest(): MutableMap<String, ApiResponse>
Link copied to clipboard
fun ApiResponses.withNotFound(): ApiResponses
fun MutableMap<String, ApiResponse>.withNotFound(): MutableMap<String, ApiResponse>
Link copied to clipboard
fun ApiResponses.withRequestTimeout(): ApiResponses
fun MutableMap<String, ApiResponse>.withRequestTimeout(): MutableMap<String, ApiResponse>
Link copied to clipboard
fun ApiResponses.withTooManyRequests(): ApiResponses
fun MutableMap<String, ApiResponse>.withTooManyRequests(): MutableMap<String, ApiResponse>