mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-13 08:31:19 +00:00
9 lines
314 B
Plaintext
9 lines
314 B
Plaintext
import com.wordnik.swagger.client._
|
|
import com.wordnik.samples.petstore._
|
|
import akka.dispatch._
|
|
import akka.util.duration._
|
|
|
|
val cfg = SwaggerConfig("http://petstore.swagger.wordnik.com/api")
|
|
val client = new Petstore(cfg)
|
|
try { Await.result(client.pet.findPetsByStatus(), 3 seconds) } finally { client.close() }
|