[kotlin][client] rename ApiInfrastructureResponse to ApiResponse (#11094)

* rename ApiInfrastructureResponse to ApiResponse

* mark ApiResponse as reserved word

* update samples, docs

* fix typo
This commit is contained in:
William Cheng
2021-12-12 16:32:08 +08:00
committed by GitHub
parent 3247903caa
commit fbb61658df
163 changed files with 1076 additions and 1025 deletions

View File

@@ -20,7 +20,7 @@
package org.openapitools.client.apis
import org.openapitools.client.models.ApiResponse
import org.openapitools.client.models.ModelApiResponse
import org.openapitools.client.models.Pet
import org.openapitools.client.infrastructure.*
@@ -303,10 +303,10 @@ class PetApi(
* @param petId ID of pet to update
* @param additionalMetadata Additional data to pass to server (optional)
* @param file file to upload (optional)
* @return ApiResponse
* @return ModelApiResponse
*/
@Suppress("UNCHECKED_CAST")
suspend fun uploadFile(petId: kotlin.Long, additionalMetadata: kotlin.String?, file: io.ktor.client.request.forms.InputProvider?): HttpResponse<ApiResponse> {
suspend fun uploadFile(petId: kotlin.Long, additionalMetadata: kotlin.String?, file: io.ktor.client.request.forms.InputProvider?): HttpResponse<ModelApiResponse> {
val localVariableAuthNames = listOf<String>("petstore_auth")

View File

@@ -33,7 +33,7 @@ import kotlinx.serialization.encoding.*
* @param message
*/
@Serializable
data class ApiResponse (
data class ModelApiResponse (
@SerialName(value = "code") val code: kotlin.Int? = null,