Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0

This commit is contained in:
Tony Tam 2015-02-14 17:34:27 -08:00
commit 4bd1b99213

View File

@ -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