Skip to content

Commit

Permalink
Merge pull request #18 from swagger-api/prepare-release-1.0.3
Browse files Browse the repository at this point in the history
prepare release 1.0.3
  • Loading branch information
frantuma authored Oct 16, 2019
2 parents a86ff40 + 8bbd448 commit 3fcc2e4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM openjdk:8-jre
WORKDIR /petstore
COPY target/lib/jetty-runner* /petstore/jetty-runner.jar
COPY ./run.sh /petstore/
ADD target/swagger-petstore-v2-1.0.3-SNAPSHOT /petstore/webapp
ADD target/swagger-petstore-v2-1.0.3 /petstore/webapp

RUN apt-get update

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<artifactId>swagger-petstore-v2</artifactId>
<packaging>war</packaging>
<name>swagger-petstore-v2</name>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.3</version>
<properties>
<swagger-version>1.5.24-SNAPSHOT</swagger-version>
<swagger-version>1.5.24</swagger-version>
<logback-version>1.0.1</logback-version>
<servlet-api-version>2.5</servlet-api-version>
<scala-test-version>2.1.3</scala-test-version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public Response getOrderById(

@POST
@Path("/order")
@ApiOperation(value = "Place an order for a pet")
@ApiOperation(value = "Place an order for a pet", consumes = "application/json")
@ApiResponses({ @ApiResponse(code = 400, message = "Invalid Order") })
public Order placeOrder(
@ApiParam(value = "order placed for purchasing the pet",
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/io/swagger/sample/resource/UserResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class UserResource {
@POST
@ApiOperation(value = "Create user",
notes = "This can only be done by the logged in user.",
position = 1)
position = 1, consumes = "application/json")
public Response createUser(
@ApiParam(value = "Created user object", required = true) User user) {
userData.addUser(user);
Expand All @@ -46,7 +46,7 @@ public Response createUser(
@POST
@Path("/createWithArray")
@ApiOperation(value = "Creates list of users with given input array",
position = 2)
position = 2, consumes = "application/json")
public Response createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) User[] users) {
for (User user : users) {
userData.addUser(user);
Expand All @@ -57,7 +57,7 @@ public Response createUsersWithArrayInput(@ApiParam(value = "List of user object
@POST
@Path("/createWithList")
@ApiOperation(value = "Creates list of users with given input array",
position = 3)
position = 3, consumes = "application/json")
public Response createUsersWithListInput(@ApiParam(value = "List of user object", required = true) java.util.List<User> users) {
for (User user : users) {
userData.addUser(user);
Expand All @@ -69,7 +69,7 @@ public Response createUsersWithListInput(@ApiParam(value = "List of user object"
@Path("/{username}")
@ApiOperation(value = "Updated user",
notes = "This can only be done by the logged in user.",
position = 4)
position = 4, consumes = "application/json")
@ApiResponses(value = {
@ApiResponse(code = 400, message = "Invalid user supplied"),
@ApiResponse(code = 404, message = "User not found") })
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<servlet-class>io.swagger.jaxrs.config.DefaultJaxrsConfig</servlet-class>
<init-param>
<param-name>api.version</param-name>
<param-value>1.0.3-SNAPSHOT</param-value>
<param-value>1.0.3</param-value>
</init-param>
<init-param>
<param-name>swagger.api.title</param-name>
Expand Down

0 comments on commit 3fcc2e4

Please sign in to comment.