toResponse

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