mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-05 05:16:11 +00:00
[kotlin][client] add base url key (#10633)
* [kotlin][client] add base url key * [kotlin][client] update sample projects * [kotlin][client] add base url key
This commit is contained in:
@@ -201,9 +201,12 @@ class ApiClient(
|
||||
}
|
||||
|
||||
companion object {
|
||||
@JvmStatic
|
||||
protected val baseUrlKey = "org.openapitools.client.baseUrl"
|
||||
|
||||
@JvmStatic
|
||||
val defaultBasePath: String by lazy {
|
||||
System.getProperties().getProperty("org.openapitools.client.baseUrl", "http://petstore.swagger.io/v2")
|
||||
System.getProperties().getProperty(baseUrlKey, "http://petstore.swagger.io/v2")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user