Update samples for akka-scala. (#5825)

This commit is contained in:
Paŭlo Ebermann
2017-06-13 18:48:31 +02:00
committed by wing328
parent ceff3762cc
commit 29db258e65
2 changed files with 5 additions and 4 deletions

View File

@@ -0,0 +1 @@
2.2.3-SNAPSHOT

View File

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