diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-okhttp/api.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-okhttp/api.mustache index 8727a9a79b6f..529bfc926130 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-okhttp/api.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-okhttp/api.mustache @@ -255,12 +255,11 @@ import {{packageName}}.infrastructure.Serializer } {{/hasQueryParams}} val localVariableHeaders: MutableMap = mutableMapOf({{#hasFormParams}}"Content-Type" to {{^consumes}}"multipart/form-data"{{/consumes}}{{#consumes.0}}"{{{mediaType}}}"{{/consumes.0}}{{/hasFormParams}}) - {{#headerParams}} - {{{paramName}}}{{^required}}?{{/required}}.apply { localVariableHeaders["{{#lambda.escapeDollar}}{{baseName}}{{/lambda.escapeDollar}}"] = {{#isContainer}}this.joinToString(separator = collectionDelimiter("{{collectionFormat}}")){{/isContainer}}{{^isContainer}}this.toString(){{/isContainer}} } - {{/headerParams}} {{^hasFormParams}}{{#hasConsumes}}{{#consumes}}localVariableHeaders["Content-Type"] = "{{{mediaType}}}" - {{/consumes}}{{/hasConsumes}}{{/hasFormParams}}{{#hasProduces}}localVariableHeaders["Accept"] = "{{#produces}}{{{mediaType}}}{{^-last}}, {{/-last}}{{/produces}}" -{{/hasProduces}} + {{/consumes}}{{/hasConsumes}}{{/hasFormParams}}{{#hasProduces}}localVariableHeaders["Accept"] = "{{#produces}}{{{mediaType}}}{{^-last}}, {{/-last}}{{/produces}}"{{/hasProduces}} +{{#headerParams}} + {{{paramName}}}{{^required}}?{{/required}}.apply { localVariableHeaders["{{#lambda.escapeDollar}}{{baseName}}{{/lambda.escapeDollar}}"] = {{#isContainer}}this.joinToString(separator = collectionDelimiter("{{collectionFormat}}")){{/isContainer}}{{^isContainer}}this.toString(){{/isContainer}} } +{{/headerParams}} return RequestConfig( method = RequestMethod.{{httpMethod}}, diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-spring-restclient/api.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-spring-restclient/api.mustache index dc90d004dbdc..aaadb2966a30 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-spring-restclient/api.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-spring-restclient/api.mustache @@ -118,12 +118,11 @@ import {{packageName}}.infrastructure.* } {{/hasQueryParams}} val localVariableHeaders: MutableMap = mutableMapOf({{#hasFormParams}}"Content-Type" to {{^consumes}}"multipart/form-data"{{/consumes}}{{#consumes.0}}"{{{mediaType}}}"{{/consumes.0}}{{/hasFormParams}}) - {{#headerParams}} - {{{paramName}}}{{^required}}?{{/required}}.apply { localVariableHeaders["{{baseName}}"] = {{#isContainer}}this.joinToString(separator = collectionDelimiter("{{collectionFormat}}")){{/isContainer}}{{^isContainer}}this.toString(){{/isContainer}} } - {{/headerParams}} {{^hasFormParams}}{{#hasConsumes}}{{#consumes}}localVariableHeaders["Content-Type"] = "{{{mediaType}}}" - {{/consumes}}{{/hasConsumes}}{{/hasFormParams}}{{#hasProduces}}localVariableHeaders["Accept"] = "{{#produces}}{{{mediaType}}}{{^-last}}, {{/-last}}{{/produces}}" -{{/hasProduces}} + {{/consumes}}{{/hasConsumes}}{{/hasFormParams}}{{#hasProduces}}localVariableHeaders["Accept"] = "{{#produces}}{{{mediaType}}}{{^-last}}, {{/-last}}{{/produces}}"{{/hasProduces}} +{{#headerParams}} + {{{paramName}}}{{^required}}?{{/required}}.apply { localVariableHeaders["{{baseName}}"] = {{#isContainer}}this.joinToString(separator = collectionDelimiter("{{collectionFormat}}")){{/isContainer}}{{^isContainer}}this.toString(){{/isContainer}} } +{{/headerParams}} val params = mutableMapOf( {{#pathParams}} diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-spring-webclient/api.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-spring-webclient/api.mustache index 6e30787d5042..dfe2b36cd6b9 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-spring-webclient/api.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-spring-webclient/api.mustache @@ -120,12 +120,11 @@ import {{packageName}}.infrastructure.* } {{/hasQueryParams}} val localVariableHeaders: MutableMap = mutableMapOf({{#hasFormParams}}"Content-Type" to {{^consumes}}"multipart/form-data"{{/consumes}}{{#consumes.0}}"{{{mediaType}}}"{{/consumes.0}}{{/hasFormParams}}) - {{#headerParams}} - {{{paramName}}}{{^required}}?{{/required}}.apply { localVariableHeaders["{{baseName}}"] = {{#isContainer}}this.joinToString(separator = collectionDelimiter("{{collectionFormat}}")){{/isContainer}}{{^isContainer}}this.toString(){{/isContainer}} } - {{/headerParams}} {{^hasFormParams}}{{#hasConsumes}}{{#consumes}}localVariableHeaders["Content-Type"] = "{{{mediaType}}}" - {{/consumes}}{{/hasConsumes}}{{/hasFormParams}}{{#hasProduces}}localVariableHeaders["Accept"] = "{{#produces}}{{{mediaType}}}{{^-last}}, {{/-last}}{{/produces}}" -{{/hasProduces}} + {{/consumes}}{{/hasConsumes}}{{/hasFormParams}}{{#hasProduces}}localVariableHeaders["Accept"] = "{{#produces}}{{{mediaType}}}{{^-last}}, {{/-last}}{{/produces}}"{{/hasProduces}} +{{#headerParams}} + {{{paramName}}}{{^required}}?{{/required}}.apply { localVariableHeaders["{{baseName}}"] = {{#isContainer}}this.joinToString(separator = collectionDelimiter("{{collectionFormat}}")){{/isContainer}}{{^isContainer}}this.toString(){{/isContainer}} } +{{/headerParams}} val params = mutableMapOf( {{#pathParams}} diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/src/main/kotlin/org/openapitools/client/apis/BodyApi.kt b/samples/client/echo_api/kotlin-jvm-okhttp/src/main/kotlin/org/openapitools/client/apis/BodyApi.kt index f2105ccce8bb..3f1995eeead2 100644 --- a/samples/client/echo_api/kotlin-jvm-okhttp/src/main/kotlin/org/openapitools/client/apis/BodyApi.kt +++ b/samples/client/echo_api/kotlin-jvm-okhttp/src/main/kotlin/org/openapitools/client/apis/BodyApi.kt @@ -113,6 +113,7 @@ open class BodyApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/binary/gif", diff --git a/samples/client/echo_api/kotlin-jvm-okhttp/src/main/kotlin/org/openapitools/client/apis/HeaderApi.kt b/samples/client/echo_api/kotlin-jvm-okhttp/src/main/kotlin/org/openapitools/client/apis/HeaderApi.kt index e139c5f156f5..42d717050e8d 100644 --- a/samples/client/echo_api/kotlin-jvm-okhttp/src/main/kotlin/org/openapitools/client/apis/HeaderApi.kt +++ b/samples/client/echo_api/kotlin-jvm-okhttp/src/main/kotlin/org/openapitools/client/apis/HeaderApi.kt @@ -144,12 +144,12 @@ open class HeaderApi(basePath: kotlin.String = defaultBasePath, client: Call.Fac val localVariableBody = null val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + localVariableHeaders["Accept"] = "text/plain" integerHeader?.apply { localVariableHeaders["integer_header"] = this.toString() } booleanHeader?.apply { localVariableHeaders["boolean_header"] = this.toString() } stringHeader?.apply { localVariableHeaders["string_header"] = this.toString() } enumNonrefStringHeader?.apply { localVariableHeaders["enum_nonref_string_header"] = this.toString() } enumRefStringHeader?.apply { localVariableHeaders["enum_ref_string_header"] = this.toString() } - localVariableHeaders["Accept"] = "text/plain" return RequestConfig( method = RequestMethod.GET, diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/apis/HeaderApi.kt b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/apis/HeaderApi.kt index e806a8c427fd..3e8e6cc0cd25 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/apis/HeaderApi.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/apis/HeaderApi.kt @@ -72,12 +72,12 @@ open class HeaderApi(client: RestClient) : ApiClient(client) { val localVariableBody = null val localVariableQuery = mutableMapOf>() val localVariableHeaders: MutableMap = mutableMapOf() + localVariableHeaders["Accept"] = "text/plain" integerHeader?.apply { localVariableHeaders["integer_header"] = this.toString() } booleanHeader?.apply { localVariableHeaders["boolean_header"] = this.toString() } stringHeader?.apply { localVariableHeaders["string_header"] = this.toString() } enumNonrefStringHeader?.apply { localVariableHeaders["enum_nonref_string_header"] = this.toString() } enumRefStringHeader?.apply { localVariableHeaders["enum_ref_string_header"] = this.toString() } - localVariableHeaders["Accept"] = "text/plain" val params = mutableMapOf( ) diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/apis/HeaderApi.kt b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/apis/HeaderApi.kt index dffe7de2255c..467313beafb4 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/apis/HeaderApi.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/apis/HeaderApi.kt @@ -76,12 +76,12 @@ open class HeaderApi(client: WebClient) : ApiClient(client) { val localVariableBody = null val localVariableQuery = mutableMapOf>() val localVariableHeaders: MutableMap = mutableMapOf() + localVariableHeaders["Accept"] = "text/plain" integerHeader?.apply { localVariableHeaders["integer_header"] = this.toString() } booleanHeader?.apply { localVariableHeaders["boolean_header"] = this.toString() } stringHeader?.apply { localVariableHeaders["string_header"] = this.toString() } enumNonrefStringHeader?.apply { localVariableHeaders["enum_nonref_string_header"] = this.toString() } enumRefStringHeader?.apply { localVariableHeaders["enum_ref_string_header"] = this.toString() } - localVariableHeaders["Accept"] = "text/plain" val params = mutableMapOf( ) diff --git a/samples/client/others/kotlin-jvm-okhttp-non-ascii-headers/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/others/kotlin-jvm-okhttp-non-ascii-headers/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index 2a453a73283c..f58f89bc2b9f 100644 --- a/samples/client/others/kotlin-jvm-okhttp-non-ascii-headers/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/others/kotlin-jvm-okhttp-non-ascii-headers/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -190,8 +190,9 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableBody = null val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() - apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + return RequestConfig( method = RequestMethod.DELETE, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), @@ -592,6 +593,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "application/x-www-form-urlencoded") + return RequestConfig( method = RequestMethod.POST, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), diff --git a/samples/client/others/kotlin-jvm-okhttp-non-ascii-headers/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/others/kotlin-jvm-okhttp-non-ascii-headers/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt index d3a2d670c316..c51b68aa25b8 100644 --- a/samples/client/others/kotlin-jvm-okhttp-non-ascii-headers/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/others/kotlin-jvm-okhttp-non-ascii-headers/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -113,6 +113,7 @@ open class StoreApi(basePath: kotlin.String = defaultBasePath, client: Call.Fact val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/store/order/{orderId}".replace("{"+"orderId"+"}", encodeURIComponent(orderId.toString())), diff --git a/samples/client/others/kotlin-jvm-okhttp-non-ascii-headers/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/others/kotlin-jvm-okhttp-non-ascii-headers/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index c50f4f6e6745..5741e44a4173 100644 --- a/samples/client/others/kotlin-jvm-okhttp-non-ascii-headers/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/others/kotlin-jvm-okhttp-non-ascii-headers/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -114,6 +114,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.POST, path = "/user", @@ -185,6 +186,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithArray", @@ -256,6 +258,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithList", @@ -326,6 +329,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), @@ -546,6 +550,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.GET, path = "/user/logout", @@ -620,6 +625,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.PUT, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), diff --git a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt index 3882e00acce7..a60a6968b7eb 100644 --- a/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt +++ b/samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt @@ -224,11 +224,12 @@ open class DefaultApi(basePath: kotlin.String = defaultBasePath, client: Call.Fa } } val localVariableHeaders: MutableMap = mutableMapOf() + headerDefault?.apply { localVariableHeaders["header_default"] = this.toString() } headerDefaultEnum?.apply { localVariableHeaders["header_default_enum"] = this.toString() } headerDefaultInt?.apply { localVariableHeaders["header_default_int"] = this.toString() } headerNullable?.apply { localVariableHeaders["header_nullable"] = this.toString() } - + return RequestConfig( method = RequestMethod.GET, path = "/test/parameters/{path_default}/{path_nullable}".replace("{"+"path_default"+"}", encodeURIComponent(pathDefault.toString())).replace("{"+"path_nullable"+"}", encodeURIComponent(pathNullable.toString())), diff --git a/samples/client/others/kotlin-jvm-spring-3-restclient-nullable-return/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt b/samples/client/others/kotlin-jvm-spring-3-restclient-nullable-return/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt index 4b59d01cba91..6b3c4123b397 100644 --- a/samples/client/others/kotlin-jvm-spring-3-restclient-nullable-return/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt +++ b/samples/client/others/kotlin-jvm-spring-3-restclient-nullable-return/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt @@ -63,6 +63,7 @@ open class DefaultApi(client: RestClient) : ApiClient(client) { val localVariableQuery = mutableMapOf>() val localVariableHeaders: MutableMap = mutableMapOf() + val params = mutableMapOf( ) diff --git a/samples/client/petstore/kotlin-array-simple-string-jvm-okhttp4/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt b/samples/client/petstore/kotlin-array-simple-string-jvm-okhttp4/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt index 15c77f7f8ba0..f83bd5f60dc3 100644 --- a/samples/client/petstore/kotlin-array-simple-string-jvm-okhttp4/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt +++ b/samples/client/petstore/kotlin-array-simple-string-jvm-okhttp4/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt @@ -112,6 +112,7 @@ open class DefaultApi(basePath: kotlin.String = defaultBasePath, client: Call.Fa val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.GET, path = "/{ids}".replace("{"+"ids"+"}", encodeURIComponent(ids.joinToString(","))), diff --git a/samples/client/petstore/kotlin-bigdecimal-default-okhttp4/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt b/samples/client/petstore/kotlin-bigdecimal-default-okhttp4/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt index 982955bcb817..a93c8af78ca5 100644 --- a/samples/client/petstore/kotlin-bigdecimal-default-okhttp4/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt +++ b/samples/client/petstore/kotlin-bigdecimal-default-okhttp4/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt @@ -114,6 +114,7 @@ open class DefaultApi(basePath: kotlin.String = defaultBasePath, client: Call.Fa val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.POST, path = "/test", diff --git a/samples/client/petstore/kotlin-default-values-jvm-okhttp4/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt b/samples/client/petstore/kotlin-default-values-jvm-okhttp4/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt index 7a217ce1246b..1b41cf19a967 100644 --- a/samples/client/petstore/kotlin-default-values-jvm-okhttp4/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt +++ b/samples/client/petstore/kotlin-default-values-jvm-okhttp4/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt @@ -222,6 +222,7 @@ open class DefaultApi(basePath: kotlin.String = defaultBasePath, client: Call.Fa put("qn3", listOf(qn3.toString())) } val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "multipart/form-data") + hi0?.apply { localVariableHeaders["hi0"] = this.toString() } hi1.apply { localVariableHeaders["hi1"] = this.toString() } hi2?.apply { localVariableHeaders["hi2"] = this.toString() } @@ -230,7 +231,7 @@ open class DefaultApi(basePath: kotlin.String = defaultBasePath, client: Call.Fa hn1.apply { localVariableHeaders["hn1"] = this.toString() } hn2?.apply { localVariableHeaders["hn2"] = this.toString() } hn3.apply { localVariableHeaders["hn3"] = this.toString() } - + return RequestConfig( method = RequestMethod.POST, path = "/test".replace("{"+"pi0"+"}", encodeURIComponent(pi0.toString())).replace("{"+"pi1"+"}", encodeURIComponent(pi1.toString())).replace("{"+"pn0"+"}", encodeURIComponent(pn0.toString())).replace("{"+"pn1"+"}", encodeURIComponent(pn1.toString())), diff --git a/samples/client/petstore/kotlin-explicit/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-explicit/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index 64cd86e06553..7b79979e25ae 100644 --- a/samples/client/petstore/kotlin-explicit/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-explicit/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -115,6 +115,7 @@ public open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.POST, path = "/pet", @@ -187,8 +188,9 @@ public open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call val localVariableBody = null val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() - apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + return RequestConfig( method = RequestMethod.DELETE, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), @@ -508,6 +510,7 @@ public open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.PUT, path = "/pet", @@ -586,6 +589,7 @@ public open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "application/x-www-form-urlencoded") + return RequestConfig( method = RequestMethod.POST, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), diff --git a/samples/client/petstore/kotlin-explicit/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin-explicit/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt index 66e62e627950..e300fa814b9b 100644 --- a/samples/client/petstore/kotlin-explicit/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin-explicit/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -113,6 +113,7 @@ public open class StoreApi(basePath: kotlin.String = defaultBasePath, client: Ca val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/store/order/{orderId}".replace("{"+"orderId"+"}", encodeURIComponent(orderId.toString())), diff --git a/samples/client/petstore/kotlin-explicit/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-explicit/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 8ca611e4e374..c66d7ec32955 100644 --- a/samples/client/petstore/kotlin-explicit/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-explicit/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -113,6 +113,7 @@ public open class UserApi(basePath: kotlin.String = defaultBasePath, client: Cal val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user", @@ -183,6 +184,7 @@ public open class UserApi(basePath: kotlin.String = defaultBasePath, client: Cal val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithArray", @@ -253,6 +255,7 @@ public open class UserApi(basePath: kotlin.String = defaultBasePath, client: Cal val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithList", @@ -323,6 +326,7 @@ public open class UserApi(basePath: kotlin.String = defaultBasePath, client: Cal val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), @@ -543,6 +547,7 @@ public open class UserApi(basePath: kotlin.String = defaultBasePath, client: Cal val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.GET, path = "/user/logout", @@ -616,6 +621,7 @@ public open class UserApi(basePath: kotlin.String = defaultBasePath, client: Cal val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.PUT, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), diff --git a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index acbbee11af68..a7330b7706ba 100644 --- a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -190,8 +190,9 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableBody = null val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() - apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + return RequestConfig( method = RequestMethod.DELETE, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), @@ -592,6 +593,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "application/x-www-form-urlencoded") + return RequestConfig( method = RequestMethod.POST, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), diff --git a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt index 2578d9d38e7f..587b849147c3 100644 --- a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -113,6 +113,7 @@ open class StoreApi(basePath: kotlin.String = defaultBasePath, client: Call.Fact val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/store/order/{orderId}".replace("{"+"orderId"+"}", encodeURIComponent(orderId.toString())), diff --git a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index a7c8b8d98b3a..27a16877c7d8 100644 --- a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -114,6 +114,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.POST, path = "/user", @@ -185,6 +186,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithArray", @@ -256,6 +258,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithList", @@ -326,6 +329,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), @@ -546,6 +550,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.GET, path = "/user/logout", @@ -620,6 +625,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.PUT, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index 9b4ce1b68270..bdd1808f2f3a 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -115,6 +115,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.POST, path = "/pet", @@ -187,8 +188,9 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableBody = null val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() - apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + return RequestConfig( method = RequestMethod.DELETE, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), @@ -509,6 +511,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.PUT, path = "/pet", @@ -587,6 +590,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "application/x-www-form-urlencoded") + return RequestConfig( method = RequestMethod.POST, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt index 3e2fb6bf848c..cb077dcd19d5 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -113,6 +113,7 @@ open class StoreApi(basePath: kotlin.String = defaultBasePath, client: Call.Fact val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/store/order/{orderId}".replace("{"+"orderId"+"}", encodeURIComponent(orderId.toString())), diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 55e3a512d7a1..d9b344aeac02 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -113,6 +113,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user", @@ -183,6 +184,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithArray", @@ -253,6 +255,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithList", @@ -323,6 +326,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), @@ -543,6 +547,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.GET, path = "/user/logout", @@ -616,6 +621,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.PUT, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), diff --git a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index 2b376d856b0f..92273772e115 100644 --- a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -117,6 +117,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.POST, path = "/pet", @@ -189,8 +190,9 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableBody = null val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() - apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + return RequestConfig( method = RequestMethod.DELETE, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), @@ -494,6 +496,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.PUT, path = "/pet", @@ -572,6 +575,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "application/x-www-form-urlencoded") + return RequestConfig( method = RequestMethod.POST, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), diff --git a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt index 507d7b5819b9..95e88c8a36e3 100644 --- a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -115,6 +115,7 @@ open class StoreApi(basePath: kotlin.String = defaultBasePath, client: Call.Fact val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/store/order/{orderId}".replace("{"+"orderId"+"}", encodeURIComponent(orderId.toString())), diff --git a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index b5e071edf8e8..4d806023e63d 100644 --- a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -115,6 +115,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user", @@ -185,6 +186,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithArray", @@ -255,6 +257,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithList", @@ -325,6 +328,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), @@ -545,6 +549,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.GET, path = "/user/logout", @@ -618,6 +623,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.PUT, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index 53138c837988..484699cecc07 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -117,6 +117,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.POST, path = "/pet", @@ -189,8 +190,9 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableBody = null val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() - apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + return RequestConfig( method = RequestMethod.DELETE, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), @@ -510,6 +512,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.PUT, path = "/pet", @@ -588,6 +591,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "application/x-www-form-urlencoded") + return RequestConfig( method = RequestMethod.POST, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt index 388162858bea..365d17eaec8a 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -115,6 +115,7 @@ open class StoreApi(basePath: kotlin.String = defaultBasePath, client: Call.Fact val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/store/order/{orderId}".replace("{"+"orderId"+"}", encodeURIComponent(orderId.toString())), diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 7f72d9b6e949..981b4377210d 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -115,6 +115,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user", @@ -185,6 +186,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithArray", @@ -255,6 +257,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithList", @@ -325,6 +328,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), @@ -545,6 +549,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.GET, path = "/user/logout", @@ -618,6 +623,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.PUT, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), diff --git a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index f69b47c05965..0f50e55c233b 100644 --- a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -105,8 +105,9 @@ open class PetApi(client: WebClient) : ApiClient(client) { val localVariableBody = null val localVariableQuery = mutableMapOf>() val localVariableHeaders: MutableMap = mutableMapOf() - apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + val params = mutableMapOf( "petId" to petId, ) @@ -305,6 +306,7 @@ open class PetApi(client: WebClient) : ApiClient(client) { val localVariableQuery = mutableMapOf>() val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "application/x-www-form-urlencoded") + val params = mutableMapOf( "petId" to petId, ) diff --git a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt index f7fbd5a4dba3..d5c24e250543 100644 --- a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -68,6 +68,7 @@ open class StoreApi(client: WebClient) : ApiClient(client) { val localVariableQuery = mutableMapOf>() val localVariableHeaders: MutableMap = mutableMapOf() + val params = mutableMapOf( "orderId" to orderId, ) diff --git a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 83f1cbe2ee70..a39aa5c68743 100644 --- a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -69,6 +69,7 @@ open class UserApi(client: WebClient) : ApiClient(client) { val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + val params = mutableMapOf( ) @@ -104,6 +105,7 @@ open class UserApi(client: WebClient) : ApiClient(client) { val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + val params = mutableMapOf( ) @@ -139,6 +141,7 @@ open class UserApi(client: WebClient) : ApiClient(client) { val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + val params = mutableMapOf( ) @@ -173,6 +176,7 @@ open class UserApi(client: WebClient) : ApiClient(client) { val localVariableQuery = mutableMapOf>() val localVariableHeaders: MutableMap = mutableMapOf() + val params = mutableMapOf( "username" to username, ) @@ -283,6 +287,7 @@ open class UserApi(client: WebClient) : ApiClient(client) { val localVariableQuery = mutableMapOf>() val localVariableHeaders: MutableMap = mutableMapOf() + val params = mutableMapOf( ) @@ -318,6 +323,7 @@ open class UserApi(client: WebClient) : ApiClient(client) { val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + val params = mutableMapOf( "username" to username, ) diff --git a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index 64512b2da6f2..14b76e6cb842 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -100,8 +100,9 @@ open class PetApi(client: RestClient) : ApiClient(client) { val localVariableBody = null val localVariableQuery = mutableMapOf>() val localVariableHeaders: MutableMap = mutableMapOf() - apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + val params = mutableMapOf( "petId" to petId, ) @@ -299,6 +300,7 @@ open class PetApi(client: RestClient) : ApiClient(client) { val localVariableQuery = mutableMapOf>() val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "application/x-www-form-urlencoded") + val params = mutableMapOf( "petId" to petId, ) diff --git a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt index aaeb55ded627..834b30f20526 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -63,6 +63,7 @@ open class StoreApi(client: RestClient) : ApiClient(client) { val localVariableQuery = mutableMapOf>() val localVariableHeaders: MutableMap = mutableMapOf() + val params = mutableMapOf( "orderId" to orderId, ) diff --git a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index b06ff530b09d..189b95211824 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -64,6 +64,7 @@ open class UserApi(client: RestClient) : ApiClient(client) { val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + val params = mutableMapOf( ) @@ -98,6 +99,7 @@ open class UserApi(client: RestClient) : ApiClient(client) { val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + val params = mutableMapOf( ) @@ -132,6 +134,7 @@ open class UserApi(client: RestClient) : ApiClient(client) { val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + val params = mutableMapOf( ) @@ -165,6 +168,7 @@ open class UserApi(client: RestClient) : ApiClient(client) { val localVariableQuery = mutableMapOf>() val localVariableHeaders: MutableMap = mutableMapOf() + val params = mutableMapOf( "username" to username, ) @@ -274,6 +278,7 @@ open class UserApi(client: RestClient) : ApiClient(client) { val localVariableQuery = mutableMapOf>() val localVariableHeaders: MutableMap = mutableMapOf() + val params = mutableMapOf( ) @@ -308,6 +313,7 @@ open class UserApi(client: RestClient) : ApiClient(client) { val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + val params = mutableMapOf( "username" to username, ) diff --git a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index f69b47c05965..0f50e55c233b 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -105,8 +105,9 @@ open class PetApi(client: WebClient) : ApiClient(client) { val localVariableBody = null val localVariableQuery = mutableMapOf>() val localVariableHeaders: MutableMap = mutableMapOf() - apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + val params = mutableMapOf( "petId" to petId, ) @@ -305,6 +306,7 @@ open class PetApi(client: WebClient) : ApiClient(client) { val localVariableQuery = mutableMapOf>() val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "application/x-www-form-urlencoded") + val params = mutableMapOf( "petId" to petId, ) diff --git a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt index f7fbd5a4dba3..d5c24e250543 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -68,6 +68,7 @@ open class StoreApi(client: WebClient) : ApiClient(client) { val localVariableQuery = mutableMapOf>() val localVariableHeaders: MutableMap = mutableMapOf() + val params = mutableMapOf( "orderId" to orderId, ) diff --git a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 83f1cbe2ee70..a39aa5c68743 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -69,6 +69,7 @@ open class UserApi(client: WebClient) : ApiClient(client) { val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + val params = mutableMapOf( ) @@ -104,6 +105,7 @@ open class UserApi(client: WebClient) : ApiClient(client) { val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + val params = mutableMapOf( ) @@ -139,6 +141,7 @@ open class UserApi(client: WebClient) : ApiClient(client) { val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + val params = mutableMapOf( ) @@ -173,6 +176,7 @@ open class UserApi(client: WebClient) : ApiClient(client) { val localVariableQuery = mutableMapOf>() val localVariableHeaders: MutableMap = mutableMapOf() + val params = mutableMapOf( "username" to username, ) @@ -283,6 +287,7 @@ open class UserApi(client: WebClient) : ApiClient(client) { val localVariableQuery = mutableMapOf>() val localVariableHeaders: MutableMap = mutableMapOf() + val params = mutableMapOf( ) @@ -318,6 +323,7 @@ open class UserApi(client: WebClient) : ApiClient(client) { val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + val params = mutableMapOf( "username" to username, ) diff --git a/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index f2d3d1c9cc95..6cfa0c37c266 100644 --- a/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -115,6 +115,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.POST, path = "/pet", @@ -187,8 +188,9 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableBody = null val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() - apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + return RequestConfig( method = RequestMethod.DELETE, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), @@ -508,6 +510,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.PUT, path = "/pet", @@ -586,6 +589,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "application/x-www-form-urlencoded") + return RequestConfig( method = RequestMethod.POST, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), diff --git a/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt index a5592590777d..1b6de3f183e1 100644 --- a/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -113,6 +113,7 @@ open class StoreApi(basePath: kotlin.String = defaultBasePath, client: Call.Fact val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/store/order/{orderId}".replace("{"+"orderId"+"}", encodeURIComponent(orderId.toString())), diff --git a/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 905ae972c6b7..4e2b9587c8d4 100644 --- a/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -113,6 +113,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user", @@ -183,6 +184,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithArray", @@ -253,6 +255,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithList", @@ -323,6 +326,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), @@ -543,6 +547,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.GET, path = "/user/logout", @@ -616,6 +621,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.PUT, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), diff --git a/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index 9d54a5049825..dca9fe018530 100644 --- a/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -115,6 +115,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.POST, path = "/pet", @@ -187,8 +188,9 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableBody = null val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() - apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + return RequestConfig( method = RequestMethod.DELETE, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), @@ -508,6 +510,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.PUT, path = "/pet", @@ -586,6 +589,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "application/x-www-form-urlencoded") + return RequestConfig( method = RequestMethod.POST, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), diff --git a/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt index 0bc53ab9bdce..c116d324fccf 100644 --- a/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -113,6 +113,7 @@ open class StoreApi(basePath: kotlin.String = defaultBasePath, client: Call.Fact val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/store/order/{orderId}".replace("{"+"orderId"+"}", encodeURIComponent(orderId.toString())), diff --git a/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 6fe7316a81c9..51354195973c 100644 --- a/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -113,6 +113,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user", @@ -183,6 +184,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithArray", @@ -253,6 +255,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithList", @@ -323,6 +326,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), @@ -543,6 +547,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.GET, path = "/user/logout", @@ -616,6 +621,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.PUT, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), diff --git a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index f2d3d1c9cc95..6cfa0c37c266 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -115,6 +115,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.POST, path = "/pet", @@ -187,8 +188,9 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableBody = null val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() - apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + return RequestConfig( method = RequestMethod.DELETE, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), @@ -508,6 +510,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.PUT, path = "/pet", @@ -586,6 +589,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "application/x-www-form-urlencoded") + return RequestConfig( method = RequestMethod.POST, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), diff --git a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt index a5592590777d..1b6de3f183e1 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -113,6 +113,7 @@ open class StoreApi(basePath: kotlin.String = defaultBasePath, client: Call.Fact val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/store/order/{orderId}".replace("{"+"orderId"+"}", encodeURIComponent(orderId.toString())), diff --git a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 905ae972c6b7..4e2b9587c8d4 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -113,6 +113,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user", @@ -183,6 +184,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithArray", @@ -253,6 +255,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithList", @@ -323,6 +326,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), @@ -543,6 +547,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.GET, path = "/user/logout", @@ -616,6 +621,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.PUT, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), diff --git a/samples/client/petstore/kotlin-name-parameter-mappings/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt b/samples/client/petstore/kotlin-name-parameter-mappings/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt index 7b94d3677e80..06fbcc2793af 100644 --- a/samples/client/petstore/kotlin-name-parameter-mappings/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt +++ b/samples/client/petstore/kotlin-name-parameter-mappings/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt @@ -127,9 +127,9 @@ open class FakeApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto put("http_debug_option", listOf(httpDebugOption.toString())) } val localVariableHeaders: MutableMap = mutableMapOf() + localVariableHeaders["Accept"] = "application/json" underscoreType.apply { localVariableHeaders["_type"] = this.toString() } typeWithUnderscore.apply { localVariableHeaders["type_"] = this.toString() } - localVariableHeaders["Accept"] = "application/json" return RequestConfig( method = RequestMethod.GET, diff --git a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index 23484b57f993..b5416a08be00 100644 --- a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -115,6 +115,7 @@ internal class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Fa val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.POST, path = "/pet", @@ -187,8 +188,9 @@ internal class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Fa val localVariableBody = null val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() - apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + return RequestConfig( method = RequestMethod.DELETE, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), @@ -508,6 +510,7 @@ internal class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Fa val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.PUT, path = "/pet", @@ -586,6 +589,7 @@ internal class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Fa val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "application/x-www-form-urlencoded") + return RequestConfig( method = RequestMethod.POST, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), diff --git a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt index 4dd4b59726f3..72b51cec0fd4 100644 --- a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -113,6 +113,7 @@ internal class StoreApi(basePath: kotlin.String = defaultBasePath, client: Call. val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/store/order/{orderId}".replace("{"+"orderId"+"}", encodeURIComponent(orderId.toString())), diff --git a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 81d842cd4186..a80e55c7e25d 100644 --- a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -113,6 +113,7 @@ internal class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.F val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user", @@ -183,6 +184,7 @@ internal class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.F val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithArray", @@ -253,6 +255,7 @@ internal class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.F val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithList", @@ -323,6 +326,7 @@ internal class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.F val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), @@ -543,6 +547,7 @@ internal class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.F val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.GET, path = "/user/logout", @@ -616,6 +621,7 @@ internal class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.F val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.PUT, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), diff --git a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index b6ac81b8363c..a925039769be 100644 --- a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -115,6 +115,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.POST, path = "/pet", @@ -187,8 +188,9 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableBody = null val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() - apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + return RequestConfig( method = RequestMethod.DELETE, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), @@ -508,6 +510,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.PUT, path = "/pet", @@ -586,6 +589,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "application/x-www-form-urlencoded") + return RequestConfig( method = RequestMethod.POST, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), diff --git a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt index f29130eed3ae..215f7bc1255a 100644 --- a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -113,6 +113,7 @@ open class StoreApi(basePath: kotlin.String = defaultBasePath, client: Call.Fact val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/store/order/{orderId}".replace("{"+"orderId"+"}", encodeURIComponent(orderId.toString())), diff --git a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 09dcabaf5c2a..05b919d7a646 100644 --- a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -113,6 +113,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user", @@ -183,6 +184,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithArray", @@ -253,6 +255,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithList", @@ -323,6 +326,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), @@ -543,6 +547,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.GET, path = "/user/logout", @@ -616,6 +621,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.PUT, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), diff --git a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index be18409d47c4..1e13f5d984f4 100644 --- a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -115,6 +115,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.POST, path = "/pet", @@ -187,8 +188,9 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableBody = null val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() - apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + return RequestConfig( method = RequestMethod.DELETE, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), @@ -508,6 +510,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.PUT, path = "/pet", @@ -586,6 +589,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "application/x-www-form-urlencoded") + return RequestConfig( method = RequestMethod.POST, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), diff --git a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt index a5592590777d..1b6de3f183e1 100644 --- a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -113,6 +113,7 @@ open class StoreApi(basePath: kotlin.String = defaultBasePath, client: Call.Fact val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/store/order/{orderId}".replace("{"+"orderId"+"}", encodeURIComponent(orderId.toString())), diff --git a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 905ae972c6b7..4e2b9587c8d4 100644 --- a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -113,6 +113,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user", @@ -183,6 +184,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithArray", @@ -253,6 +255,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithList", @@ -323,6 +326,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), @@ -543,6 +547,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.GET, path = "/user/logout", @@ -616,6 +621,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.PUT, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), diff --git a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index f2d3d1c9cc95..6cfa0c37c266 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -115,6 +115,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.POST, path = "/pet", @@ -187,8 +188,9 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableBody = null val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() - apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + return RequestConfig( method = RequestMethod.DELETE, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), @@ -508,6 +510,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.PUT, path = "/pet", @@ -586,6 +589,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "application/x-www-form-urlencoded") + return RequestConfig( method = RequestMethod.POST, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), diff --git a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt index a5592590777d..1b6de3f183e1 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -113,6 +113,7 @@ open class StoreApi(basePath: kotlin.String = defaultBasePath, client: Call.Fact val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/store/order/{orderId}".replace("{"+"orderId"+"}", encodeURIComponent(orderId.toString())), diff --git a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 905ae972c6b7..4e2b9587c8d4 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -113,6 +113,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user", @@ -183,6 +184,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithArray", @@ -253,6 +255,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithList", @@ -323,6 +326,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), @@ -543,6 +547,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.GET, path = "/user/logout", @@ -616,6 +621,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.PUT, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), diff --git a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index f2d3d1c9cc95..6cfa0c37c266 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -115,6 +115,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.POST, path = "/pet", @@ -187,8 +188,9 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableBody = null val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() - apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + apiKey?.apply { localVariableHeaders["api_key"] = this.toString() } + return RequestConfig( method = RequestMethod.DELETE, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), @@ -508,6 +510,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" + return RequestConfig( method = RequestMethod.PUT, path = "/pet", @@ -586,6 +589,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "application/x-www-form-urlencoded") + return RequestConfig( method = RequestMethod.POST, path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())), diff --git a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt index a5592590777d..1b6de3f183e1 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -113,6 +113,7 @@ open class StoreApi(basePath: kotlin.String = defaultBasePath, client: Call.Fact val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/store/order/{orderId}".replace("{"+"orderId"+"}", encodeURIComponent(orderId.toString())), diff --git a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 905ae972c6b7..4e2b9587c8d4 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -113,6 +113,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user", @@ -183,6 +184,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithArray", @@ -253,6 +255,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.POST, path = "/user/createWithList", @@ -323,6 +326,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.DELETE, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())), @@ -543,6 +547,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.GET, path = "/user/logout", @@ -616,6 +621,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() + return RequestConfig( method = RequestMethod.PUT, path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())),