Skip to content

Commit cce35d7

Browse files
authored
update petstore samples (#2697)
1 parent d6306d8 commit cce35d7

File tree

8 files changed

+27
-27
lines changed

8 files changed

+27
-27
lines changed

CI/samples.ci/client/petstore/java/jersey2-java6/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ version = '1.0.0'
77
buildscript {
88
repositories {
99
jcenter {
10-
url "http://jcenter.bintray.com/"
10+
url "https://jcenter.bintray.com/"
1111
}
1212
}
1313
dependencies {

samples/client/petstore/java/jersey2-java6/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ version = '1.0.0'
77
buildscript {
88
repositories {
99
jcenter {
10-
url "http://jcenter.bintray.com/"
10+
url "https://jcenter.bintray.com/"
1111
}
1212
}
1313
dependencies {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.0-SNAPSHOT
1+
4.0.0-SNAPSHOT

samples/server/petstore/finch/build.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ scalaVersion := "2.12.3"
1010

1111
resolvers += Resolver.sonatypeRepo("snapshots")
1212

13-
resolvers += "TM" at "http://maven.twttr.com"
13+
resolvers += "TM" at "https://maven.twttr.com"
1414

1515
resolvers += "Local Maven Repository" at "file://"+Path.userHome.absolutePath+"/.m2/repository"
1616

17-
resolvers += "Sonatype OSS Snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"
17+
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
1818

19-
resolvers += "Sonatype OSS Releases" at "http://oss.sonatype.org/content/repositories/releases/"
19+
resolvers += "Sonatype OSS Releases" at "https://oss.sonatype.org/content/repositories/releases/"
2020

2121
Defaults.itSettings
2222

samples/server/petstore/finch/src/main/scala/DataAccessor.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ trait DataAccessor {
1818
*
1919
* @return A Unit
2020
*/
21-
def Pet_addPet(pet: Pet): Either[CommonError,Unit] = Left(TODO)
21+
def Pet_addPet(body: Pet): Either[CommonError,Unit] = Left(TODO)
2222

2323
/**
2424
*
@@ -48,7 +48,7 @@ trait DataAccessor {
4848
*
4949
* @return A Unit
5050
*/
51-
def Pet_updatePet(pet: Pet): Either[CommonError,Unit] = Left(TODO)
51+
def Pet_updatePet(body: Pet): Either[CommonError,Unit] = Left(TODO)
5252

5353
/**
5454
*
@@ -84,25 +84,25 @@ trait DataAccessor {
8484
*
8585
* @return A Order
8686
*/
87-
def Store_placeOrder(order: Order): Either[CommonError,Order] = Left(TODO)
87+
def Store_placeOrder(body: Order): Either[CommonError,Order] = Left(TODO)
8888

8989
/**
9090
*
9191
* @return A Unit
9292
*/
93-
def User_createUser(user: User): Either[CommonError,Unit] = Left(TODO)
93+
def User_createUser(body: User): Either[CommonError,Unit] = Left(TODO)
9494

9595
/**
9696
*
9797
* @return A Unit
9898
*/
99-
def User_createUsersWithArrayInput(user: Seq[User]): Either[CommonError,Unit] = Left(TODO)
99+
def User_createUsersWithArrayInput(body: Seq[User]): Either[CommonError,Unit] = Left(TODO)
100100

101101
/**
102102
*
103103
* @return A Unit
104104
*/
105-
def User_createUsersWithListInput(user: Seq[User]): Either[CommonError,Unit] = Left(TODO)
105+
def User_createUsersWithListInput(body: Seq[User]): Either[CommonError,Unit] = Left(TODO)
106106

107107
/**
108108
*
@@ -132,6 +132,6 @@ trait DataAccessor {
132132
*
133133
* @return A Unit
134134
*/
135-
def User_updateUser(username: String, user: User): Either[CommonError,Unit] = Left(TODO)
135+
def User_updateUser(username: String, body: User): Either[CommonError,Unit] = Left(TODO)
136136

137137
}

samples/server/petstore/finch/src/main/scala/org/openapitools/apis/PetApi.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ object PetApi {
6060
* @return An endpoint representing a Unit
6161
*/
6262
private def addPet(da: DataAccessor): Endpoint[Unit] =
63-
post("pet" :: jsonBody[Pet]) { (pet: Pet) =>
64-
da.Pet_addPet(pet) match {
63+
post("pet" :: jsonBody[Pet]) { (body: Pet) =>
64+
da.Pet_addPet(body) match {
6565
case Left(error) => checkError(error)
6666
case Right(data) => Ok(data)
6767
}
@@ -130,8 +130,8 @@ object PetApi {
130130
* @return An endpoint representing a Unit
131131
*/
132132
private def updatePet(da: DataAccessor): Endpoint[Unit] =
133-
put("pet" :: jsonBody[Pet]) { (pet: Pet) =>
134-
da.Pet_updatePet(pet) match {
133+
put("pet" :: jsonBody[Pet]) { (body: Pet) =>
134+
da.Pet_updatePet(body) match {
135135
case Left(error) => checkError(error)
136136
case Right(data) => Ok(data)
137137
}

samples/server/petstore/finch/src/main/scala/org/openapitools/apis/StoreApi.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ object StoreApi {
9696
* @return An endpoint representing a Order
9797
*/
9898
private def placeOrder(da: DataAccessor): Endpoint[Order] =
99-
post("store" :: "order" :: jsonBody[Order]) { (order: Order) =>
100-
da.Store_placeOrder(order) match {
99+
post("store" :: "order" :: jsonBody[Order]) { (body: Order) =>
100+
da.Store_placeOrder(body) match {
101101
case Left(error) => checkError(error)
102102
case Right(data) => Ok(data)
103103
}

samples/server/petstore/finch/src/main/scala/org/openapitools/apis/UserApi.scala

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ object UserApi {
5959
* @return An endpoint representing a Unit
6060
*/
6161
private def createUser(da: DataAccessor): Endpoint[Unit] =
62-
post("user" :: jsonBody[User]) { (user: User) =>
63-
da.User_createUser(user) match {
62+
post("user" :: jsonBody[User]) { (body: User) =>
63+
da.User_createUser(body) match {
6464
case Left(error) => checkError(error)
6565
case Right(data) => Ok(data)
6666
}
@@ -73,8 +73,8 @@ object UserApi {
7373
* @return An endpoint representing a Unit
7474
*/
7575
private def createUsersWithArrayInput(da: DataAccessor): Endpoint[Unit] =
76-
post("user" :: "createWithArray" :: jsonBody[Seq[User]]) { (user: Seq[User]) =>
77-
da.User_createUsersWithArrayInput(user) match {
76+
post("user" :: "createWithArray" :: jsonBody[Seq[User]]) { (body: Seq[User]) =>
77+
da.User_createUsersWithArrayInput(body) match {
7878
case Left(error) => checkError(error)
7979
case Right(data) => Ok(data)
8080
}
@@ -87,8 +87,8 @@ object UserApi {
8787
* @return An endpoint representing a Unit
8888
*/
8989
private def createUsersWithListInput(da: DataAccessor): Endpoint[Unit] =
90-
post("user" :: "createWithList" :: jsonBody[Seq[User]]) { (user: Seq[User]) =>
91-
da.User_createUsersWithListInput(user) match {
90+
post("user" :: "createWithList" :: jsonBody[Seq[User]]) { (body: Seq[User]) =>
91+
da.User_createUsersWithListInput(body) match {
9292
case Left(error) => checkError(error)
9393
case Right(data) => Ok(data)
9494
}
@@ -157,8 +157,8 @@ object UserApi {
157157
* @return An endpoint representing a Unit
158158
*/
159159
private def updateUser(da: DataAccessor): Endpoint[Unit] =
160-
put("user" :: string :: jsonBody[User]) { (username: String, user: User) =>
161-
da.User_updateUser(username, user) match {
160+
put("user" :: string :: jsonBody[User]) { (username: String, body: User) =>
161+
da.User_updateUser(username, body) match {
162162
case Left(error) => checkError(error)
163163
case Right(data) => Ok(data)
164164
}

0 commit comments

Comments
 (0)