Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,11 @@ import {{packageName}}.infrastructure.Serializer
}
{{/hasQueryParams}}
val localVariableHeaders: MutableMap<String, String> = 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}},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,11 @@ import {{packageName}}.infrastructure.*
}
{{/hasQueryParams}}
val localVariableHeaders: MutableMap<String, String> = 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<String, Any>(
{{#pathParams}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,11 @@ import {{packageName}}.infrastructure.*
}
{{/hasQueryParams}}
val localVariableHeaders: MutableMap<String, String> = 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<String, Any>(
{{#pathParams}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ open class BodyApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()


return RequestConfig(
method = RequestMethod.POST,
path = "/binary/gif",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ open class HeaderApi(basePath: kotlin.String = defaultBasePath, client: Call.Fac
val localVariableBody = null
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = 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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ open class HeaderApi(client: RestClient) : ApiClient(client) {
val localVariableBody = null
val localVariableQuery = mutableMapOf<kotlin.String, kotlin.collections.List<kotlin.String>>()
val localVariableHeaders: MutableMap<String, String> = 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<String, Any>(
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ open class HeaderApi(client: WebClient) : ApiClient(client) {
val localVariableBody = null
val localVariableQuery = mutableMapOf<kotlin.String, kotlin.collections.List<kotlin.String>>()
val localVariableHeaders: MutableMap<String, String> = 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<String, Any>(
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,9 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor
val localVariableBody = null
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = 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())),
Expand Down Expand Up @@ -592,6 +593,7 @@ open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call.Factor
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = mutableMapOf("Content-Type" to "application/x-www-form-urlencoded")


return RequestConfig(
method = RequestMethod.POST,
path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ open class StoreApi(basePath: kotlin.String = defaultBasePath, client: Call.Fact
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()


return RequestConfig(
method = RequestMethod.DELETE,
path = "/store/order/{orderId}".replace("{"+"orderId"+"}", encodeURIComponent(orderId.toString())),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()
localVariableHeaders["Content-Type"] = "application/json"


return RequestConfig(
method = RequestMethod.POST,
path = "/user",
Expand Down Expand Up @@ -185,6 +186,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()
localVariableHeaders["Content-Type"] = "application/json"


return RequestConfig(
method = RequestMethod.POST,
path = "/user/createWithArray",
Expand Down Expand Up @@ -256,6 +258,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()
localVariableHeaders["Content-Type"] = "application/json"


return RequestConfig(
method = RequestMethod.POST,
path = "/user/createWithList",
Expand Down Expand Up @@ -326,6 +329,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()


return RequestConfig(
method = RequestMethod.DELETE,
path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())),
Expand Down Expand Up @@ -546,6 +550,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()


return RequestConfig(
method = RequestMethod.GET,
path = "/user/logout",
Expand Down Expand Up @@ -620,6 +625,7 @@ open class UserApi(basePath: kotlin.String = defaultBasePath, client: Call.Facto
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()
localVariableHeaders["Content-Type"] = "application/json"


return RequestConfig(
method = RequestMethod.PUT,
path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,12 @@ open class DefaultApi(basePath: kotlin.String = defaultBasePath, client: Call.Fa
}
}
val localVariableHeaders: MutableMap<String, String> = 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())),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ open class DefaultApi(client: RestClient) : ApiClient(client) {
val localVariableQuery = mutableMapOf<kotlin.String, kotlin.collections.List<kotlin.String>>()
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()


val params = mutableMapOf<String, Any>(
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ open class DefaultApi(basePath: kotlin.String = defaultBasePath, client: Call.Fa
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()


return RequestConfig(
method = RequestMethod.GET,
path = "/{ids}".replace("{"+"ids"+"}", encodeURIComponent(ids.joinToString(","))),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ open class DefaultApi(basePath: kotlin.String = defaultBasePath, client: Call.Fa
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()
localVariableHeaders["Content-Type"] = "application/json"


return RequestConfig(
method = RequestMethod.POST,
path = "/test",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ open class DefaultApi(basePath: kotlin.String = defaultBasePath, client: Call.Fa
put("qn3", listOf(qn3.toString()))
}
val localVariableHeaders: MutableMap<String, String> = 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() }
Expand All @@ -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())),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()
localVariableHeaders["Content-Type"] = "application/json"


return RequestConfig(
method = RequestMethod.POST,
path = "/pet",
Expand Down Expand Up @@ -187,8 +188,9 @@ public open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call
val localVariableBody = null
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = 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())),
Expand Down Expand Up @@ -508,6 +510,7 @@ public open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()
localVariableHeaders["Content-Type"] = "application/json"


return RequestConfig(
method = RequestMethod.PUT,
path = "/pet",
Expand Down Expand Up @@ -586,6 +589,7 @@ public open class PetApi(basePath: kotlin.String = defaultBasePath, client: Call
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = mutableMapOf("Content-Type" to "application/x-www-form-urlencoded")


return RequestConfig(
method = RequestMethod.POST,
path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public open class StoreApi(basePath: kotlin.String = defaultBasePath, client: Ca
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()


return RequestConfig(
method = RequestMethod.DELETE,
path = "/store/order/{orderId}".replace("{"+"orderId"+"}", encodeURIComponent(orderId.toString())),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public open class UserApi(basePath: kotlin.String = defaultBasePath, client: Cal
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()


return RequestConfig(
method = RequestMethod.POST,
path = "/user",
Expand Down Expand Up @@ -183,6 +184,7 @@ public open class UserApi(basePath: kotlin.String = defaultBasePath, client: Cal
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()


return RequestConfig(
method = RequestMethod.POST,
path = "/user/createWithArray",
Expand Down Expand Up @@ -253,6 +255,7 @@ public open class UserApi(basePath: kotlin.String = defaultBasePath, client: Cal
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()


return RequestConfig(
method = RequestMethod.POST,
path = "/user/createWithList",
Expand Down Expand Up @@ -323,6 +326,7 @@ public open class UserApi(basePath: kotlin.String = defaultBasePath, client: Cal
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()


return RequestConfig(
method = RequestMethod.DELETE,
path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())),
Expand Down Expand Up @@ -543,6 +547,7 @@ public open class UserApi(basePath: kotlin.String = defaultBasePath, client: Cal
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()


return RequestConfig(
method = RequestMethod.GET,
path = "/user/logout",
Expand Down Expand Up @@ -616,6 +621,7 @@ public open class UserApi(basePath: kotlin.String = defaultBasePath, client: Cal
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()


return RequestConfig(
method = RequestMethod.PUT,
path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())),
Expand Down
Loading
Loading