forked from loafle/openapi-generator-original
use async http client with service locator
This commit is contained in:
parent
023013b6fe
commit
81c103b12d
@ -7,7 +7,8 @@ import apis._
|
|||||||
import java.io.Closeable
|
import java.io.Closeable
|
||||||
|
|
||||||
class {{clientName}}(config: SwaggerConfig) extends Closeable {
|
class {{clientName}}(config: SwaggerConfig) extends Closeable {
|
||||||
val baseUrl = config.baseUrl
|
val locator = config.locator
|
||||||
|
val name = config.name
|
||||||
val dataFormat = config.dataFormat
|
val dataFormat = config.dataFormat
|
||||||
|
|
||||||
private[this] val client = transportClient
|
private[this] val client = transportClient
|
||||||
|
@ -2,9 +2,7 @@ organization := "{{package}}"
|
|||||||
|
|
||||||
name := "{{projectName}}-client"
|
name := "{{projectName}}-client"
|
||||||
|
|
||||||
scalaVersion := "2.10.0"
|
libraryDependencies += "com.wordnik.swagger" %% "swagger-async-httpclient" % "0.2.0"
|
||||||
|
|
||||||
libraryDependencies += "com.wordnik.swagger" %% "swagger-async-httpclient" % "0.1.6"
|
|
||||||
|
|
||||||
libraryDependencies += "joda-time" % "joda-time" % "2.2"
|
libraryDependencies += "joda-time" % "joda-time" % "2.2"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user