forked from loafle/openapi-generator-original
Update samples for akka-scala. (#5825)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
2.2.3-SNAPSHOT
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user