mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-19 19:17:05 +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:
@@ -111,6 +111,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = A
|
||||
path = "/pet",
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = true,
|
||||
body = localVariableBody
|
||||
)
|
||||
}
|
||||
@@ -182,6 +183,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = A
|
||||
path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())),
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = true,
|
||||
body = localVariableBody
|
||||
)
|
||||
}
|
||||
@@ -260,6 +262,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = A
|
||||
path = "/pet/findByTags",
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = true,
|
||||
body = localVariableBody
|
||||
)
|
||||
}
|
||||
@@ -335,6 +338,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = A
|
||||
path = "/pet/getAll",
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = true,
|
||||
body = localVariableBody
|
||||
)
|
||||
}
|
||||
@@ -405,6 +409,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = A
|
||||
path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())),
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = true,
|
||||
body = localVariableBody
|
||||
)
|
||||
}
|
||||
@@ -473,6 +478,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = A
|
||||
path = "/pet",
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = true,
|
||||
body = localVariableBody
|
||||
)
|
||||
}
|
||||
@@ -548,6 +554,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = A
|
||||
path = "/pet/{petId}".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())),
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = true,
|
||||
body = localVariableBody
|
||||
)
|
||||
}
|
||||
@@ -626,6 +633,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = A
|
||||
path = "/pet/{petId}/uploadImage".replace("{"+"petId"+"}", encodeURIComponent(petId.toString())),
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = true,
|
||||
body = localVariableBody
|
||||
)
|
||||
}
|
||||
|
||||
@@ -109,6 +109,7 @@ class StoreApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient =
|
||||
path = "/store/order/{orderId}".replace("{"+"orderId"+"}", encodeURIComponent(orderId.toString())),
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = false,
|
||||
body = localVariableBody
|
||||
)
|
||||
}
|
||||
@@ -176,6 +177,7 @@ class StoreApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient =
|
||||
path = "/store/inventory",
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = true,
|
||||
body = localVariableBody
|
||||
)
|
||||
}
|
||||
@@ -246,6 +248,7 @@ class StoreApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient =
|
||||
path = "/store/order/{orderId}".replace("{"+"orderId"+"}", encodeURIComponent(orderId.toString())),
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = false,
|
||||
body = localVariableBody
|
||||
)
|
||||
}
|
||||
@@ -316,6 +319,7 @@ class StoreApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient =
|
||||
path = "/store/order",
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = false,
|
||||
body = localVariableBody
|
||||
)
|
||||
}
|
||||
|
||||
@@ -109,6 +109,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient =
|
||||
path = "/user",
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = false,
|
||||
body = localVariableBody
|
||||
)
|
||||
}
|
||||
@@ -176,6 +177,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient =
|
||||
path = "/user/createWithArray",
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = false,
|
||||
body = localVariableBody
|
||||
)
|
||||
}
|
||||
@@ -243,6 +245,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient =
|
||||
path = "/user/createWithList",
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = false,
|
||||
body = localVariableBody
|
||||
)
|
||||
}
|
||||
@@ -310,6 +313,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient =
|
||||
path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())),
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = false,
|
||||
body = localVariableBody
|
||||
)
|
||||
}
|
||||
@@ -380,6 +384,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient =
|
||||
path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())),
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = false,
|
||||
body = localVariableBody
|
||||
)
|
||||
}
|
||||
@@ -457,6 +462,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient =
|
||||
path = "/user/login",
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = false,
|
||||
body = localVariableBody
|
||||
)
|
||||
}
|
||||
@@ -521,6 +527,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient =
|
||||
path = "/user/logout",
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = false,
|
||||
body = localVariableBody
|
||||
)
|
||||
}
|
||||
@@ -591,6 +598,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient =
|
||||
path = "/user/{username}".replace("{"+"username"+"}", encodeURIComponent(username.toString())),
|
||||
query = localVariableQuery,
|
||||
headers = localVariableHeaders,
|
||||
requiresAuthentication = false,
|
||||
body = localVariableBody
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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