mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 02:55:19 +00:00
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
This commit is contained in:
commit
4bd1b99213
@ -11,8 +11,10 @@ import java.util.Date
|
||||
import scala.collection.mutable.HashMap
|
||||
|
||||
{{#operations}}
|
||||
class {{classname}}(val basePath: String = "{{basePath}}",
|
||||
apiInvoker: ApiInvoker = ApiInvoker) {
|
||||
class {{classname}}(val defBasePath: String = "{{basePath}}",
|
||||
defApiInvoker: ApiInvoker = ApiInvoker) {
|
||||
var basePath = defBasePath
|
||||
var apiInvoker = defApiInvoker
|
||||
|
||||
def addHeader(key: String, value: String) = apiInvoker.defaultHeaders += key -> value
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user