mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-10 06:16:09 +00:00
[kotlin][client] add info if endpoints requires authentication or not (#14445)
* [kotlin][client] add info if endpoints requires authentication or not * [kotlin][client] update sample projects * [kotlin][client] add info if endpoints requires authentication or not * [kotlin][client] update sample projects
This commit is contained in:
@@ -107,7 +107,8 @@ open class DefaultApi(
|
||||
RequestMethod.POST,
|
||||
"/test".replace("{" + "pi0" + "}", "$pi0").replace("{" + "pi1" + "}", "$pi1").replace("{" + "pn0" + "}", "$pn0").replace("{" + "pn1" + "}", "$pn1"),
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = false,
|
||||
)
|
||||
|
||||
return multipartFormRequest(
|
||||
|
||||
@@ -13,5 +13,6 @@ data class RequestConfig<T>(
|
||||
val path: String,
|
||||
val headers: MutableMap<String, String> = mutableMapOf(),
|
||||
val query: MutableMap<String, List<String>> = mutableMapOf(),
|
||||
val requiresAuthentication: Boolean,
|
||||
val body: T? = null
|
||||
)
|
||||
Reference in New Issue
Block a user