All Downloads are FREE. Search and download functionalities are using the official Maven repository.

asyncscala.client.mustache Maven / Gradle / Ivy

The newest version!
package {{invokerPackage}}

{{#imports}}import {{import}}
{{/imports}}
import {{apiPackage}}._

import com.wordnik.swagger.client._

import java.io.Closeable

class {{clientName}}(config: SwaggerConfig) extends Closeable {
  val locator = config.locator
  val name = config.name

  private[this] val client = transportClient

  protected def transportClient: TransportClient = new RestClient(config)
  {{#apiInfo}}{{#apis}}
  val {{classVarName}} = new {{classname}}(client, config)
  {{/apis}}{{/apiInfo}}

  def close() {
    client.close()
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy