diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/api/StoreApi.java
index 804b06d9752..92b65658743 100644
--- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/api/StoreApi.java
+++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/api/StoreApi.java
@@ -80,7 +80,7 @@ public interface StoreApi {
*/
@POST
@Path("/store/order")
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Produces({ "application/xml", "application/json" })
@Operation(summary = "Place an order for a pet", tags={ "store" })
@ApiResponses(value = {
diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/api/UserApi.java
index 95681099a41..40f58e16f76 100644
--- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/api/UserApi.java
+++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/io/swagger/api/UserApi.java
@@ -37,7 +37,7 @@ public interface UserApi {
*/
@POST
@Path("/user")
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Operation(summary = "Create user", tags={ "user" })
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "successful operation") })
@@ -49,7 +49,7 @@ public interface UserApi {
*/
@POST
@Path("/user/createWithArray")
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Operation(summary = "Creates list of users with given input array", tags={ "user" })
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "successful operation") })
@@ -61,7 +61,7 @@ public interface UserApi {
*/
@POST
@Path("/user/createWithList")
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Operation(summary = "Creates list of users with given input array", tags={ "user" })
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "successful operation") })
diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java
index dfbdc13dc59..8f7001076a7 100644
--- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java
+++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java
@@ -1,10 +1,10 @@
package io.swagger.api.impl;
import io.swagger.api.*;
+import java.io.File;
import io.swagger.model.ModelApiResponse;
import io.swagger.model.Pet;
-
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
@@ -20,136 +20,95 @@
/**
* Swagger Petstore
*
-
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
-
*
*/
-
public class PetApiServiceImpl implements PetApi {
-
-
-
/**
* Add a new pet to the store
*
-
*/
-
- public void addPet(Pet pet) {
+ public void addPet(Pet body) {
// TODO: Implement...
}
-
-
/**
* Deletes a pet
*
-
*/
-
- public void deletePet(Integer petId, String apiKey) {
+ public void deletePet(Long petId, String apiKey) {
// TODO: Implement...
}
-
-
/**
* Finds Pets by status
*
-
* Multiple status values can be provided with comma separated strings
*
-
*/
-
public List findPetsByStatus(List status) {
// TODO: Implement...
return null;
}
-
-
/**
* Finds Pets by tags
*
-
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
*
-
*/
-
public List findPetsByTags(List tags) {
// TODO: Implement...
return null;
}
-
-
/**
* Find pet by ID
*
-
* Returns a single pet
*
-
*/
-
- public Pet getPetById(Integer petId) {
+ public Pet getPetById(Long petId) {
// TODO: Implement...
return null;
}
-
-
/**
* Update an existing pet
*
-
*/
-
- public void updatePet(Pet pet) {
+ public void updatePet(Pet body) {
// TODO: Implement...
}
-
-
/**
* Updates a pet in the store with form data
*
-
*/
-
- public void updatePetWithForm(Integer petId, String name, String status) {
+ public void updatePetWithForm(Long petId, String name, String status) {
// TODO: Implement...
}
-
-
/**
* uploads an image
*
-
*/
-
- public ModelApiResponse uploadFile(Integer petId, String additionalMetadata, org.apache.cxf.jaxrs.ext.multipart.Attachment fileDetails) {
+ public ModelApiResponse uploadFile(Long petId, String additionalMetadata, Attachment fileDetail) {
// TODO: Implement...
return null;
}
-
}
-
diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java
index 93bd01d4bb7..c752b191aeb 100644
--- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java
+++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java
@@ -4,7 +4,6 @@
import java.util.Map;
import io.swagger.model.Order;
-
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
@@ -16,83 +15,59 @@
import org.apache.cxf.jaxrs.ext.multipart.*;
+
/**
* Swagger Petstore
*
-
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
-
*
*/
-
public class StoreApiServiceImpl implements StoreApi {
-
-
-
/**
* Delete purchase order by ID
*
-
* For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
*
-
*/
-
public void deleteOrder(String orderId) {
// TODO: Implement...
}
-
-
/**
* Returns pet inventories by status
*
-
* Returns a map of status codes to quantities
*
-
*/
-
public Map getInventory() {
// TODO: Implement...
return null;
}
-
-
/**
* Find purchase order by ID
*
-
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
*
-
*/
-
- public Order getOrderById(Integer orderId) {
+ public Order getOrderById(Long orderId) {
// TODO: Implement...
return null;
}
-
-
/**
* Place an order for a pet
*
-
*/
-
- public Order placeOrder(Order order) {
+ public Order placeOrder(Order body) {
// TODO: Implement...
return null;
}
-
}
-
diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java
index c20773c86a7..fa4de74ee65 100644
--- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java
+++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java
@@ -3,7 +3,6 @@
import io.swagger.api.*;
import io.swagger.model.User;
-
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
@@ -15,139 +14,99 @@
import org.apache.cxf.jaxrs.ext.multipart.*;
+
/**
* Swagger Petstore
*
-
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
-
*
*/
-
public class UserApiServiceImpl implements UserApi {
-
-
-
/**
* Create user
*
-
* This can only be done by the logged in user.
*
-
*/
-
- public void createUser(User user) {
+ public void createUser(User body) {
// TODO: Implement...
}
-
-
/**
* Creates list of users with given input array
*
-
*/
-
public void createUsersWithArrayInput(List body) {
// TODO: Implement...
}
-
-
/**
* Creates list of users with given input array
*
-
*/
-
public void createUsersWithListInput(List body) {
// TODO: Implement...
}
-
-
/**
* Delete user
*
-
* This can only be done by the logged in user.
*
-
*/
-
public void deleteUser(String username) {
// TODO: Implement...
}
-
-
/**
* Get user by user name
*
-
*/
-
public User getUserByName(String username) {
// TODO: Implement...
return null;
}
-
-
/**
* Logs user into the system
*
-
*/
-
public String loginUser(String username, String password) {
// TODO: Implement...
return null;
}
-
-
/**
* Logs out current logged in user session
*
-
*/
-
public void logoutUser() {
// TODO: Implement...
}
-
-
/**
* Updated user
*
-
* This can only be done by the logged in user.
*
-
*/
-
- public void updateUser(User user, String username) {
+ public void updateUser(User body, String username) {
// TODO: Implement...
}
-
}
-
diff --git a/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/io/swagger/api/StoreApi.java
index 849e19cfd13..43c151a485b 100644
--- a/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/io/swagger/api/StoreApi.java
+++ b/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/io/swagger/api/StoreApi.java
@@ -85,7 +85,7 @@ public Response getOrderById( @Min(1L) @Max(5L)
@POST
@Path("/order")
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Produces({ "application/xml", "application/json" })
@Operation(summary = "Place an order for a pet", description = "", tags={ "store" })
@ApiResponses(value = {
diff --git a/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/io/swagger/api/UserApi.java
index 82dfb7ce828..6853d72b411 100644
--- a/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/io/swagger/api/UserApi.java
+++ b/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/io/swagger/api/UserApi.java
@@ -42,7 +42,7 @@ public class UserApi {
@POST
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Operation(summary = "Create user", description = "This can only be done by the logged in user.", tags={ "user" })
@ApiResponses(value = {
@@ -55,7 +55,7 @@ public Response createUser(
@POST
@Path("/createWithArray")
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Operation(summary = "Creates list of users with given input array", description = "", tags={ "user" })
@ApiResponses(value = {
@@ -68,7 +68,7 @@ public Response createUsersWithArrayInput(
@POST
@Path("/createWithList")
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Operation(summary = "Creates list of users with given input array", description = "", tags={ "user" })
@ApiResponses(value = {
diff --git a/samples/server/petstore/jaxrs-cxf-cdi/swagger.json b/samples/server/petstore/jaxrs-cxf-cdi/swagger.json
index cd3584a61ad..6033894f333 100644
--- a/samples/server/petstore/jaxrs-cxf-cdi/swagger.json
+++ b/samples/server/petstore/jaxrs-cxf-cdi/swagger.json
@@ -76,7 +76,8 @@
},
"security" : [ {
"petstore_auth" : [ "write:pets", "read:pets" ]
- } ]
+ } ],
+ "x-codegen-request-body-name" : "body"
},
"post" : {
"tags" : [ "pet" ],
@@ -106,7 +107,8 @@
},
"security" : [ {
"petstore_auth" : [ "write:pets", "read:pets" ]
- } ]
+ } ],
+ "x-codegen-request-body-name" : "body"
}
},
"/pet/findByStatus" : {
@@ -126,8 +128,8 @@
"type" : "array",
"items" : {
"type" : "string",
- "default" : "available",
- "enum" : [ "available", "pending", "sold" ]
+ "enum" : [ "available", "pending", "sold" ],
+ "default" : "available"
}
}
} ],
@@ -420,7 +422,7 @@
"requestBody" : {
"description" : "order placed for purchasing the pet",
"content" : {
- "*/*" : {
+ "application/json" : {
"schema" : {
"$ref" : "#/components/schemas/Order"
}
@@ -448,7 +450,8 @@
"description" : "Invalid Order",
"content" : { }
}
- }
+ },
+ "x-codegen-request-body-name" : "body"
}
},
"/store/order/{orderId}" : {
@@ -530,7 +533,7 @@
"requestBody" : {
"description" : "Created user object",
"content" : {
- "*/*" : {
+ "application/json" : {
"schema" : {
"$ref" : "#/components/schemas/User"
}
@@ -543,7 +546,8 @@
"description" : "successful operation",
"content" : { }
}
- }
+ },
+ "x-codegen-request-body-name" : "body"
}
},
"/user/createWithArray" : {
@@ -554,7 +558,7 @@
"requestBody" : {
"description" : "List of user object",
"content" : {
- "*/*" : {
+ "application/json" : {
"schema" : {
"type" : "array",
"items" : {
@@ -570,7 +574,8 @@
"description" : "successful operation",
"content" : { }
}
- }
+ },
+ "x-codegen-request-body-name" : "body"
}
},
"/user/createWithList" : {
@@ -581,7 +586,7 @@
"requestBody" : {
"description" : "List of user object",
"content" : {
- "*/*" : {
+ "application/json" : {
"schema" : {
"type" : "array",
"items" : {
@@ -597,7 +602,8 @@
"description" : "successful operation",
"content" : { }
}
- }
+ },
+ "x-codegen-request-body-name" : "body"
}
},
"/user/login" : {
@@ -748,7 +754,8 @@
"description" : "User not found",
"content" : { }
}
- }
+ },
+ "x-codegen-request-body-name" : "body"
},
"delete" : {
"tags" : [ "user" ],
diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/.swagger-codegen-ignore b/samples/server/petstore/jaxrs-cxf-non-spring-app/.swagger-codegen-ignore
index c5fa491b4c5..70b88e71039 100644
--- a/samples/server/petstore/jaxrs-cxf-non-spring-app/.swagger-codegen-ignore
+++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/.swagger-codegen-ignore
@@ -21,3 +21,5 @@
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
+
+**/impl/*
\ No newline at end of file
diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/pom.xml b/samples/server/petstore/jaxrs-cxf-non-spring-app/pom.xml
index 65dc81c3cb3..062da0012bf 100644
--- a/samples/server/petstore/jaxrs-cxf-non-spring-app/pom.xml
+++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/pom.xml
@@ -33,7 +33,7 @@
8079
stopit
- -1
+ 8080
60000
@@ -177,6 +177,16 @@
jackson-datatype-joda
${jackson-jaxrs-version}
+
+ javax.xml.bind
+ jaxb-api
+ 2.2.6
+
+
+ javax.activation
+ activation
+ 1.1.1
+
diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/api/StoreApi.java
index 138fbb401f3..aabfa045b4f 100644
--- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/api/StoreApi.java
+++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/api/StoreApi.java
@@ -80,7 +80,7 @@ public interface StoreApi {
*/
@POST
@Path("/store/order")
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Produces({ "application/xml", "application/json" })
@Operation(summary = "Place an order for a pet", tags={ "store" })
@ApiResponses(value = {
diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/api/UserApi.java
index 86211f06e29..24a50c45a43 100644
--- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/api/UserApi.java
+++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/io/swagger/api/UserApi.java
@@ -37,7 +37,7 @@ public interface UserApi {
*/
@POST
@Path("/user")
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Operation(summary = "Create user", tags={ "user" })
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "successful operation") })
@@ -49,7 +49,7 @@ public interface UserApi {
*/
@POST
@Path("/user/createWithArray")
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Operation(summary = "Creates list of users with given input array", tags={ "user" })
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "successful operation") })
@@ -61,7 +61,7 @@ public interface UserApi {
*/
@POST
@Path("/user/createWithList")
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Operation(summary = "Creates list of users with given input array", tags={ "user" })
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "successful operation") })
diff --git a/samples/server/petstore/jaxrs-cxf/pom.xml b/samples/server/petstore/jaxrs-cxf/pom.xml
index f08387c9025..a1391b43a06 100644
--- a/samples/server/petstore/jaxrs-cxf/pom.xml
+++ b/samples/server/petstore/jaxrs-cxf/pom.xml
@@ -177,6 +177,16 @@
jackson-datatype-joda
${jackson-jaxrs-version}
+
+ javax.xml.bind
+ jaxb-api
+ 2.2.6
+
+
+ javax.activation
+ activation
+ 1.1.1
+
diff --git a/samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java
index 3554e38790f..5f1d775bf26 100644
--- a/samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java
+++ b/samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java
@@ -38,7 +38,7 @@ public void addPet(Pet body) {
* Deletes a pet
*
*/
- public void deletePet(Integer petId, String apiKey) {
+ public void deletePet(Long petId, String apiKey) {
// TODO: Implement...
@@ -74,7 +74,7 @@ public List findPetsByTags(List tags) {
* Returns a single pet
*
*/
- public Pet getPetById(Integer petId) {
+ public Pet getPetById(Long petId) {
// TODO: Implement...
return null;
@@ -94,7 +94,7 @@ public void updatePet(Pet body) {
* Updates a pet in the store with form data
*
*/
- public void updatePetWithForm(Integer petId, String name, String status) {
+ public void updatePetWithForm(Long petId, String name, String status) {
// TODO: Implement...
@@ -104,7 +104,7 @@ public void updatePetWithForm(Integer petId, String name, String status) {
* uploads an image
*
*/
- public ModelApiResponse uploadFile(Integer petId, String additionalMetadata, Attachment fileDetail) {
+ public ModelApiResponse uploadFile(Long petId, String additionalMetadata, Attachment fileDetail) {
// TODO: Implement...
return null;
diff --git a/samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java
index fbab14794eb..db4eec03ba9 100644
--- a/samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java
+++ b/samples/server/petstore/jaxrs-cxf/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java
@@ -53,7 +53,7 @@ public Map getInventory() {
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
*
*/
- public Order getOrderById(Integer orderId) {
+ public Order getOrderById(Long orderId) {
// TODO: Implement...
return null;
diff --git a/samples/server/petstore/jaxrs-resteasy/default/build.gradle b/samples/server/petstore/jaxrs-resteasy/default/build.gradle
index 21cf15d6b36..0256caf8c92 100644
--- a/samples/server/petstore/jaxrs-resteasy/default/build.gradle
+++ b/samples/server/petstore/jaxrs-resteasy/default/build.gradle
@@ -17,11 +17,12 @@ dependencies {
providedCompile 'org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:1.0.0.Final'
compile 'io.swagger.core.v3:swagger-annotations:2.0.0'
compile 'org.jboss.resteasy:resteasy-jackson2-provider:3.0.11.Final'
+ compile 'org.apache.httpcomponents:httpclient:4.5.10'
providedCompile 'javax.validation:validation-api:1.1.0.Final'
compile 'com.fasterxml.jackson.datatype:jackson-datatype-joda:2.9.10'
compile 'joda-time:joda-time:2.7'
//TODO: swaggerFeature
- compile 'io.swagger.core.v3:swagger-jaxrs2:2.0.0'
+ compile 'io.swagger.core.v3:swagger-jaxrs2:2.0.9'
testCompile 'junit:junit:4.12',
'org.hamcrest:hamcrest-core:1.3'
diff --git a/samples/server/petstore/jaxrs-resteasy/default/pom.xml b/samples/server/petstore/jaxrs-resteasy/default/pom.xml
index 73581688a8c..cee0ffd0b1c 100644
--- a/samples/server/petstore/jaxrs-resteasy/default/pom.xml
+++ b/samples/server/petstore/jaxrs-resteasy/default/pom.xml
@@ -158,6 +158,12 @@
+
+ org.apache.httpcomponents
+ httpclient
+ 4.5.10
+ test
+
javax.validation
@@ -177,7 +183,7 @@
- 2.0.0
+ 2.0.9
9.2.9.v20150224
3.0.11.Final
1.6.3
diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/api/StoreApi.java
index 21112674ae6..8750c76f7a9 100644
--- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/api/StoreApi.java
+++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/api/StoreApi.java
@@ -65,7 +65,7 @@ public interface StoreApi {
@POST
@Path("/order")
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Produces({ "application/xml", "application/json" })
@Operation(summary = "Place an order for a pet", description = "", tags={ "store" })
@ApiResponses(value = {
diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/api/UserApi.java
index e9fd1166d74..ff4f1bde192 100644
--- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/api/UserApi.java
+++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/io/swagger/api/UserApi.java
@@ -30,7 +30,7 @@ public interface UserApi {
@POST
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Operation(summary = "Create user", description = "This can only be done by the logged in user.", tags={ "user" })
@ApiResponses(value = {
@@ -40,7 +40,7 @@ public interface UserApi {
@POST
@Path("/createWithArray")
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Operation(summary = "Creates list of users with given input array", description = "", tags={ "user" })
@ApiResponses(value = {
@@ -50,7 +50,7 @@ public interface UserApi {
@POST
@Path("/createWithList")
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Operation(summary = "Creates list of users with given input array", description = "", tags={ "user" })
@ApiResponses(value = {
diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/api/StoreApi.java
index 21112674ae6..8750c76f7a9 100644
--- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/api/StoreApi.java
+++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/api/StoreApi.java
@@ -65,7 +65,7 @@ public interface StoreApi {
@POST
@Path("/order")
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Produces({ "application/xml", "application/json" })
@Operation(summary = "Place an order for a pet", description = "", tags={ "store" })
@ApiResponses(value = {
diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/api/UserApi.java
index e9fd1166d74..ff4f1bde192 100644
--- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/api/UserApi.java
+++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/io/swagger/api/UserApi.java
@@ -30,7 +30,7 @@ public interface UserApi {
@POST
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Operation(summary = "Create user", description = "This can only be done by the logged in user.", tags={ "user" })
@ApiResponses(value = {
@@ -40,7 +40,7 @@ public interface UserApi {
@POST
@Path("/createWithArray")
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Operation(summary = "Creates list of users with given input array", description = "", tags={ "user" })
@ApiResponses(value = {
@@ -50,7 +50,7 @@ public interface UserApi {
@POST
@Path("/createWithList")
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Operation(summary = "Creates list of users with given input array", description = "", tags={ "user" })
@ApiResponses(value = {
diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/api/StoreApi.java
index 21112674ae6..8750c76f7a9 100644
--- a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/api/StoreApi.java
+++ b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/api/StoreApi.java
@@ -65,7 +65,7 @@ public interface StoreApi {
@POST
@Path("/order")
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Produces({ "application/xml", "application/json" })
@Operation(summary = "Place an order for a pet", description = "", tags={ "store" })
@ApiResponses(value = {
diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/api/UserApi.java
index e9fd1166d74..ff4f1bde192 100644
--- a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/api/UserApi.java
+++ b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/io/swagger/api/UserApi.java
@@ -30,7 +30,7 @@ public interface UserApi {
@POST
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Operation(summary = "Create user", description = "This can only be done by the logged in user.", tags={ "user" })
@ApiResponses(value = {
@@ -40,7 +40,7 @@ public interface UserApi {
@POST
@Path("/createWithArray")
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Operation(summary = "Creates list of users with given input array", description = "", tags={ "user" })
@ApiResponses(value = {
@@ -50,7 +50,7 @@ public interface UserApi {
@POST
@Path("/createWithList")
- @Consumes({ "*/*" })
+ @Consumes({ "application/json" })
@Operation(summary = "Creates list of users with given input array", description = "", tags={ "user" })
@ApiResponses(value = {
diff --git a/samples/server/petstore/jaxrs-resteasy/java8/build.gradle b/samples/server/petstore/jaxrs-resteasy/java8/build.gradle
index d709bf26299..4d5b552abef 100644
--- a/samples/server/petstore/jaxrs-resteasy/java8/build.gradle
+++ b/samples/server/petstore/jaxrs-resteasy/java8/build.gradle
@@ -17,10 +17,11 @@ dependencies {
providedCompile 'org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:1.0.0.Final'
compile 'io.swagger.core.v3:swagger-annotations:2.0.0'
compile 'org.jboss.resteasy:resteasy-jackson2-provider:3.0.11.Final'
+ compile 'org.apache.httpcomponents:httpclient:4.5.10'
providedCompile 'javax.validation:validation-api:1.1.0.Final'
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.10'
//TODO: swaggerFeature
- compile 'io.swagger.core.v3:swagger-jaxrs2:2.0.0'
+ compile 'io.swagger.core.v3:swagger-jaxrs2:2.0.9'
testCompile 'junit:junit:4.12',
'org.hamcrest:hamcrest-core:1.3'
diff --git a/samples/server/petstore/jaxrs-resteasy/java8/pom.xml b/samples/server/petstore/jaxrs-resteasy/java8/pom.xml
index a8f9393258d..d625cd597df 100644
--- a/samples/server/petstore/jaxrs-resteasy/java8/pom.xml
+++ b/samples/server/petstore/jaxrs-resteasy/java8/pom.xml
@@ -153,6 +153,12 @@
+
+ org.apache.httpcomponents
+ httpclient
+ 4.5.10
+ test
+
javax.validation
@@ -172,7 +178,7 @@
- 2.0.0
+ 2.0.9
9.2.9.v20150224
3.0.11.Final
1.6.3
diff --git a/samples/server/petstore/jaxrs-resteasy/java8/src/gen/java/io/swagger/model/Order.java b/samples/server/petstore/jaxrs-resteasy/java8/src/gen/java/io/swagger/model/Order.java
index e80533fd3a4..47800652658 100644
--- a/samples/server/petstore/jaxrs-resteasy/java8/src/gen/java/io/swagger/model/Order.java
+++ b/samples/server/petstore/jaxrs-resteasy/java8/src/gen/java/io/swagger/model/Order.java
@@ -101,7 +101,7 @@ public void setStatus(StatusEnum status) {
@Schema(description = "")
@JsonProperty("complete")
- public Boolean isisComplete() {
+ public Boolean isComplete() {
return complete;
}
public void setComplete(Boolean complete) {
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build.gradle b/samples/server/petstore/jaxrs-resteasy/joda/build.gradle
index 21cf15d6b36..0256caf8c92 100644
--- a/samples/server/petstore/jaxrs-resteasy/joda/build.gradle
+++ b/samples/server/petstore/jaxrs-resteasy/joda/build.gradle
@@ -17,11 +17,12 @@ dependencies {
providedCompile 'org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:1.0.0.Final'
compile 'io.swagger.core.v3:swagger-annotations:2.0.0'
compile 'org.jboss.resteasy:resteasy-jackson2-provider:3.0.11.Final'
+ compile 'org.apache.httpcomponents:httpclient:4.5.10'
providedCompile 'javax.validation:validation-api:1.1.0.Final'
compile 'com.fasterxml.jackson.datatype:jackson-datatype-joda:2.9.10'
compile 'joda-time:joda-time:2.7'
//TODO: swaggerFeature
- compile 'io.swagger.core.v3:swagger-jaxrs2:2.0.0'
+ compile 'io.swagger.core.v3:swagger-jaxrs2:2.0.9'
testCompile 'junit:junit:4.12',
'org.hamcrest:hamcrest-core:1.3'
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/pom.xml b/samples/server/petstore/jaxrs-resteasy/joda/pom.xml
index 7e072b3109f..f3e5f06887d 100644
--- a/samples/server/petstore/jaxrs-resteasy/joda/pom.xml
+++ b/samples/server/petstore/jaxrs-resteasy/joda/pom.xml
@@ -158,6 +158,12 @@
+
+ org.apache.httpcomponents
+ httpclient
+ 4.5.10
+ test
+
javax.validation
@@ -177,7 +183,7 @@