From 29db258e651f4ca093aab7a5d9857458dfd7b060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pa=C5=ADlo=20Ebermann?= Date: Tue, 13 Jun 2017 18:48:31 +0200 Subject: [PATCH] Update samples for akka-scala. (#5825) --- .../client/petstore/akka-scala/.swagger-codegen/VERSION | 1 + .../src/main/scala/io/swagger/client/api/UserApi.scala | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 samples/client/petstore/akka-scala/.swagger-codegen/VERSION diff --git a/samples/client/petstore/akka-scala/.swagger-codegen/VERSION b/samples/client/petstore/akka-scala/.swagger-codegen/VERSION new file mode 100644 index 000000000000..7fea99011a6f --- /dev/null +++ b/samples/client/petstore/akka-scala/.swagger-codegen/VERSION @@ -0,0 +1 @@ +2.2.3-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/akka-scala/src/main/scala/io/swagger/client/api/UserApi.scala b/samples/client/petstore/akka-scala/src/main/scala/io/swagger/client/api/UserApi.scala index d1f95bdc18d1..95fa3aa58805 100644 --- a/samples/client/petstore/akka-scala/src/main/scala/io/swagger/client/api/UserApi.scala +++ b/samples/client/petstore/akka-scala/src/main/scala/io/swagger/client/api/UserApi.scala @@ -23,7 +23,7 @@ object UserApi { def createUser(body: User): ApiRequest[Unit] = ApiRequest[Unit](ApiMethods.POST, "http://petstore.swagger.io/v2", "/user", "application/json") .withBody(body) - .withSuccessResponse[Unit](0) + .withDefaultSuccessResponse[Unit] /** * * Expected answers: @@ -34,7 +34,7 @@ object UserApi { def createUsersWithArrayInput(body: Seq[User]): ApiRequest[Unit] = ApiRequest[Unit](ApiMethods.POST, "http://petstore.swagger.io/v2", "/user/createWithArray", "application/json") .withBody(body) - .withSuccessResponse[Unit](0) + .withDefaultSuccessResponse[Unit] /** * * Expected answers: @@ -45,7 +45,7 @@ object UserApi { def createUsersWithListInput(body: Seq[User]): ApiRequest[Unit] = ApiRequest[Unit](ApiMethods.POST, "http://petstore.swagger.io/v2", "/user/createWithList", "application/json") .withBody(body) - .withSuccessResponse[Unit](0) + .withDefaultSuccessResponse[Unit] /** * This can only be done by the logged in user. * @@ -105,7 +105,7 @@ object UserApi { */ def logoutUser(): ApiRequest[Unit] = ApiRequest[Unit](ApiMethods.GET, "http://petstore.swagger.io/v2", "/user/logout", "application/json") - .withSuccessResponse[Unit](0) + .withDefaultSuccessResponse[Unit] /** * This can only be done by the logged in user. *