tags,SecurityContext securityContext)
+ throws NotFoundException;
+ public abstract Response getPetById(Long petId,SecurityContext securityContext)
+ throws NotFoundException;
+ public abstract Response updatePet(Pet body,SecurityContext securityContext)
+ throws NotFoundException;
+ public abstract Response updatePetWithForm(Long petId,String name,String status,SecurityContext securityContext)
+ throws NotFoundException;
+ public abstract Response uploadFile(MultipartFormDataInput input,Long petId,SecurityContext securityContext)
+ throws NotFoundException;
+}
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/RestApplication.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/RestApplication.java
new file mode 100644
index 00000000000..24aa63ce824
--- /dev/null
+++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/RestApplication.java
@@ -0,0 +1,9 @@
+package io.swagger.api;
+
+import javax.ws.rs.ApplicationPath;
+import javax.ws.rs.core.Application;
+
+@ApplicationPath("/")
+public class RestApplication extends Application {
+
+}
\ No newline at end of file
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StoreApi.java
new file mode 100644
index 00000000000..09b8dcc2518
--- /dev/null
+++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StoreApi.java
@@ -0,0 +1,59 @@
+package io.swagger.api;
+
+import io.swagger.model.*;
+import io.swagger.api.StoreApiService;
+import io.swagger.api.factories.StoreApiServiceFactory;
+
+import java.util.Map;
+import io.swagger.model.Order;
+
+import java.util.List;
+import io.swagger.api.NotFoundException;
+
+import java.io.InputStream;
+
+import javax.ws.rs.core.Context;
+import javax.ws.rs.core.Response;
+import javax.ws.rs.core.SecurityContext;
+import javax.ws.rs.*;
+
+@Path("/store")
+
+
+@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:16.906+08:00")
+public class StoreApi {
+ private final StoreApiService delegate = StoreApiServiceFactory.getStoreApi();
+
+ @DELETE
+ @Path("/order/{orderId}")
+
+ @Produces({ "application/xml", "application/json" })
+ public Response deleteOrder( @PathParam("orderId") String orderId,@Context SecurityContext securityContext)
+ throws NotFoundException {
+ return delegate.deleteOrder(orderId,securityContext);
+ }
+ @GET
+ @Path("/inventory")
+
+ @Produces({ "application/json" })
+ public Response getInventory(@Context SecurityContext securityContext)
+ throws NotFoundException {
+ return delegate.getInventory(securityContext);
+ }
+ @GET
+ @Path("/order/{orderId}")
+
+ @Produces({ "application/xml", "application/json" })
+ public Response getOrderById( @PathParam("orderId") Long orderId,@Context SecurityContext securityContext)
+ throws NotFoundException {
+ return delegate.getOrderById(orderId,securityContext);
+ }
+ @POST
+ @Path("/order")
+
+ @Produces({ "application/xml", "application/json" })
+ public Response placeOrder( Order body,@Context SecurityContext securityContext)
+ throws NotFoundException {
+ return delegate.placeOrder(body,securityContext);
+ }
+}
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StoreApiService.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StoreApiService.java
new file mode 100644
index 00000000000..9adc467a735
--- /dev/null
+++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StoreApiService.java
@@ -0,0 +1,28 @@
+package io.swagger.api;
+
+import io.swagger.api.*;
+import io.swagger.model.*;
+
+
+import java.util.Map;
+import io.swagger.model.Order;
+
+import java.util.List;
+import io.swagger.api.NotFoundException;
+
+import java.io.InputStream;
+
+import javax.ws.rs.core.Response;
+import javax.ws.rs.core.SecurityContext;
+
+@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:16.906+08:00")
+public abstract class StoreApiService {
+ public abstract Response deleteOrder(String orderId,SecurityContext securityContext)
+ throws NotFoundException;
+ public abstract Response getInventory(SecurityContext securityContext)
+ throws NotFoundException;
+ public abstract Response getOrderById(Long orderId,SecurityContext securityContext)
+ throws NotFoundException;
+ public abstract Response placeOrder(Order body,SecurityContext securityContext)
+ throws NotFoundException;
+}
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StringUtil.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StringUtil.java
new file mode 100644
index 00000000000..128c83a4abd
--- /dev/null
+++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StringUtil.java
@@ -0,0 +1,42 @@
+package io.swagger.api;
+
+@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:16.906+08:00")
+public class StringUtil {
+ /**
+ * Check if the given array contains the given value (with case-insensitive comparison).
+ *
+ * @param array The array
+ * @param value The value to search
+ * @return true if the array contains the value
+ */
+ public static boolean containsIgnoreCase(String[] array, String value) {
+ for (String str : array) {
+ if (value == null && str == null) return true;
+ if (value != null && value.equalsIgnoreCase(str)) return true;
+ }
+ return false;
+ }
+
+ /**
+ * Join an array of strings with the given separator.
+ *
+ * Note: This might be replaced by utility method from commons-lang or guava someday
+ * if one of those libraries is added as dependency.
+ *
+ *
+ * @param array The array of strings
+ * @param separator The separator
+ * @return the resulting string
+ */
+ public static String join(String[] array, String separator) {
+ int len = array.length;
+ if (len == 0) return "";
+
+ StringBuilder out = new StringBuilder();
+ out.append(array[0]);
+ for (int i = 1; i < len; i++) {
+ out.append(separator).append(array[i]);
+ }
+ return out.toString();
+ }
+}
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/UserApi.java
new file mode 100644
index 00000000000..7e6ac878913
--- /dev/null
+++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/UserApi.java
@@ -0,0 +1,91 @@
+package io.swagger.api;
+
+import io.swagger.model.*;
+import io.swagger.api.UserApiService;
+import io.swagger.api.factories.UserApiServiceFactory;
+
+import io.swagger.model.User;
+import java.util.List;
+
+import java.util.List;
+import io.swagger.api.NotFoundException;
+
+import java.io.InputStream;
+
+import javax.ws.rs.core.Context;
+import javax.ws.rs.core.Response;
+import javax.ws.rs.core.SecurityContext;
+import javax.ws.rs.*;
+
+@Path("/user")
+
+
+@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:16.906+08:00")
+public class UserApi {
+ private final UserApiService delegate = UserApiServiceFactory.getUserApi();
+
+ @POST
+
+
+ @Produces({ "application/xml", "application/json" })
+ public Response createUser( User body,@Context SecurityContext securityContext)
+ throws NotFoundException {
+ return delegate.createUser(body,securityContext);
+ }
+ @POST
+ @Path("/createWithArray")
+
+ @Produces({ "application/xml", "application/json" })
+ public Response createUsersWithArrayInput( List body,@Context SecurityContext securityContext)
+ throws NotFoundException {
+ return delegate.createUsersWithArrayInput(body,securityContext);
+ }
+ @POST
+ @Path("/createWithList")
+
+ @Produces({ "application/xml", "application/json" })
+ public Response createUsersWithListInput( List body,@Context SecurityContext securityContext)
+ throws NotFoundException {
+ return delegate.createUsersWithListInput(body,securityContext);
+ }
+ @DELETE
+ @Path("/{username}")
+
+ @Produces({ "application/xml", "application/json" })
+ public Response deleteUser( @PathParam("username") String username,@Context SecurityContext securityContext)
+ throws NotFoundException {
+ return delegate.deleteUser(username,securityContext);
+ }
+ @GET
+ @Path("/{username}")
+
+ @Produces({ "application/xml", "application/json" })
+ public Response getUserByName( @PathParam("username") String username,@Context SecurityContext securityContext)
+ throws NotFoundException {
+ return delegate.getUserByName(username,securityContext);
+ }
+ @GET
+ @Path("/login")
+
+ @Produces({ "application/xml", "application/json" })
+ public Response loginUser( @QueryParam("username") String username, @QueryParam("password") String password,@Context SecurityContext securityContext)
+ throws NotFoundException {
+ return delegate.loginUser(username,password,securityContext);
+ }
+ @GET
+ @Path("/logout")
+
+ @Produces({ "application/xml", "application/json" })
+ public Response logoutUser(@Context SecurityContext securityContext)
+ throws NotFoundException {
+ return delegate.logoutUser(securityContext);
+ }
+ @PUT
+ @Path("/{username}")
+
+ @Produces({ "application/xml", "application/json" })
+ public Response updateUser( @PathParam("username") String username, User body,@Context SecurityContext securityContext)
+ throws NotFoundException {
+ return delegate.updateUser(username,body,securityContext);
+ }
+}
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/UserApiService.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/UserApiService.java
new file mode 100644
index 00000000000..fdbeb37c6b8
--- /dev/null
+++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/UserApiService.java
@@ -0,0 +1,36 @@
+package io.swagger.api;
+
+import io.swagger.api.*;
+import io.swagger.model.*;
+
+
+import io.swagger.model.User;
+import java.util.List;
+
+import java.util.List;
+import io.swagger.api.NotFoundException;
+
+import java.io.InputStream;
+
+import javax.ws.rs.core.Response;
+import javax.ws.rs.core.SecurityContext;
+
+@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:16.906+08:00")
+public abstract class UserApiService {
+ public abstract Response createUser(User body,SecurityContext securityContext)
+ throws NotFoundException;
+ public abstract Response createUsersWithArrayInput(List body,SecurityContext securityContext)
+ throws NotFoundException;
+ public abstract Response createUsersWithListInput(List body,SecurityContext securityContext)
+ throws NotFoundException;
+ public abstract Response deleteUser(String username,SecurityContext securityContext)
+ throws NotFoundException;
+ public abstract Response getUserByName(String username,SecurityContext securityContext)
+ throws NotFoundException;
+ public abstract Response loginUser(String username,String password,SecurityContext securityContext)
+ throws NotFoundException;
+ public abstract Response logoutUser(SecurityContext securityContext)
+ throws NotFoundException;
+ public abstract Response updateUser(String username,User body,SecurityContext securityContext)
+ throws NotFoundException;
+}
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Category.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Category.java
new file mode 100644
index 00000000000..8e4077bf511
--- /dev/null
+++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Category.java
@@ -0,0 +1,79 @@
+package io.swagger.model;
+
+import java.util.Objects;
+import java.util.ArrayList;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+
+
+
+@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:16.906+08:00")
+public class Category {
+
+ private Long id = null;
+ private String name = null;
+
+ /**
+ **/
+
+ @JsonProperty("id")
+ public Long getId() {
+ return id;
+ }
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ /**
+ **/
+
+ @JsonProperty("name")
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ Category category = (Category) o;
+ return Objects.equals(id, category.id) &&
+ Objects.equals(name, category.name);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, name);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class Category {\n");
+
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/ModelApiResponse.java
new file mode 100644
index 00000000000..96b11ce19e5
--- /dev/null
+++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/ModelApiResponse.java
@@ -0,0 +1,93 @@
+package io.swagger.model;
+
+import java.util.Objects;
+import java.util.ArrayList;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+
+
+
+@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:16.906+08:00")
+public class ModelApiResponse {
+
+ private Integer code = null;
+ private String type = null;
+ private String message = null;
+
+ /**
+ **/
+
+ @JsonProperty("code")
+ public Integer getCode() {
+ return code;
+ }
+ public void setCode(Integer code) {
+ this.code = code;
+ }
+
+ /**
+ **/
+
+ @JsonProperty("type")
+ public String getType() {
+ return type;
+ }
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ /**
+ **/
+
+ @JsonProperty("message")
+ public String getMessage() {
+ return message;
+ }
+ public void setMessage(String message) {
+ this.message = message;
+ }
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ModelApiResponse _apiResponse = (ModelApiResponse) o;
+ return Objects.equals(code, _apiResponse.code) &&
+ Objects.equals(type, _apiResponse.type) &&
+ Objects.equals(message, _apiResponse.message);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(code, type, message);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ModelApiResponse {\n");
+
+ sb.append(" code: ").append(toIndentedString(code)).append("\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" message: ").append(toIndentedString(message)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Order.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Order.java
new file mode 100644
index 00000000000..843d9b91421
--- /dev/null
+++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Order.java
@@ -0,0 +1,161 @@
+package io.swagger.model;
+
+import java.util.Objects;
+import java.util.ArrayList;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonValue;
+import org.joda.time.DateTime;
+
+
+
+
+@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:16.906+08:00")
+public class Order {
+
+ private Long id = null;
+ private Long petId = null;
+ private Integer quantity = null;
+ private DateTime shipDate = null;
+
+ /**
+ * Order Status
+ */
+ public enum StatusEnum {
+ PLACED("placed"),
+
+ APPROVED("approved"),
+
+ DELIVERED("delivered");
+ private String value;
+
+ StatusEnum(String value) {
+ this.value = value;
+ }
+
+ @Override
+ @JsonValue
+ public String toString() {
+ return String.valueOf(value);
+ }
+ }
+
+ private StatusEnum status = null;
+ private Boolean complete = false;
+
+ /**
+ **/
+
+ @JsonProperty("id")
+ public Long getId() {
+ return id;
+ }
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ /**
+ **/
+
+ @JsonProperty("petId")
+ public Long getPetId() {
+ return petId;
+ }
+ public void setPetId(Long petId) {
+ this.petId = petId;
+ }
+
+ /**
+ **/
+
+ @JsonProperty("quantity")
+ public Integer getQuantity() {
+ return quantity;
+ }
+ public void setQuantity(Integer quantity) {
+ this.quantity = quantity;
+ }
+
+ /**
+ **/
+
+ @JsonProperty("shipDate")
+ public DateTime getShipDate() {
+ return shipDate;
+ }
+ public void setShipDate(DateTime shipDate) {
+ this.shipDate = shipDate;
+ }
+
+ /**
+ * Order Status
+ **/
+
+ @JsonProperty("status")
+ public StatusEnum getStatus() {
+ return status;
+ }
+ public void setStatus(StatusEnum status) {
+ this.status = status;
+ }
+
+ /**
+ **/
+
+ @JsonProperty("complete")
+ public Boolean getComplete() {
+ return complete;
+ }
+ public void setComplete(Boolean complete) {
+ this.complete = complete;
+ }
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ Order order = (Order) o;
+ return Objects.equals(id, order.id) &&
+ Objects.equals(petId, order.petId) &&
+ Objects.equals(quantity, order.quantity) &&
+ Objects.equals(shipDate, order.shipDate) &&
+ Objects.equals(status, order.status) &&
+ Objects.equals(complete, order.complete);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, petId, quantity, shipDate, status, complete);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class Order {\n");
+
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" petId: ").append(toIndentedString(petId)).append("\n");
+ sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n");
+ sb.append(" shipDate: ").append(toIndentedString(shipDate)).append("\n");
+ sb.append(" status: ").append(toIndentedString(status)).append("\n");
+ sb.append(" complete: ").append(toIndentedString(complete)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Pet.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Pet.java
new file mode 100644
index 00000000000..f367b3e32b6
--- /dev/null
+++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Pet.java
@@ -0,0 +1,163 @@
+package io.swagger.model;
+
+import java.util.Objects;
+import java.util.ArrayList;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.model.Category;
+import io.swagger.model.Tag;
+import java.util.List;
+
+
+
+
+@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:16.906+08:00")
+public class Pet {
+
+ private Long id = null;
+ private Category category = null;
+ private String name = null;
+ private List photoUrls = new ArrayList();
+ private List tags = new ArrayList();
+
+ /**
+ * pet status in the store
+ */
+ public enum StatusEnum {
+ AVAILABLE("available"),
+
+ PENDING("pending"),
+
+ SOLD("sold");
+ private String value;
+
+ StatusEnum(String value) {
+ this.value = value;
+ }
+
+ @Override
+ @JsonValue
+ public String toString() {
+ return String.valueOf(value);
+ }
+ }
+
+ private StatusEnum status = null;
+
+ /**
+ **/
+
+ @JsonProperty("id")
+ public Long getId() {
+ return id;
+ }
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ /**
+ **/
+
+ @JsonProperty("category")
+ public Category getCategory() {
+ return category;
+ }
+ public void setCategory(Category category) {
+ this.category = category;
+ }
+
+ /**
+ **/
+
+ @JsonProperty("name")
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ **/
+
+ @JsonProperty("photoUrls")
+ public List getPhotoUrls() {
+ return photoUrls;
+ }
+ public void setPhotoUrls(List photoUrls) {
+ this.photoUrls = photoUrls;
+ }
+
+ /**
+ **/
+
+ @JsonProperty("tags")
+ public List getTags() {
+ return tags;
+ }
+ public void setTags(List tags) {
+ this.tags = tags;
+ }
+
+ /**
+ * pet status in the store
+ **/
+
+ @JsonProperty("status")
+ public StatusEnum getStatus() {
+ return status;
+ }
+ public void setStatus(StatusEnum status) {
+ this.status = status;
+ }
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ Pet pet = (Pet) o;
+ return Objects.equals(id, pet.id) &&
+ Objects.equals(category, pet.category) &&
+ Objects.equals(name, pet.name) &&
+ Objects.equals(photoUrls, pet.photoUrls) &&
+ Objects.equals(tags, pet.tags) &&
+ Objects.equals(status, pet.status);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, category, name, photoUrls, tags, status);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class Pet {\n");
+
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" category: ").append(toIndentedString(category)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" photoUrls: ").append(toIndentedString(photoUrls)).append("\n");
+ sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
+ sb.append(" status: ").append(toIndentedString(status)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Tag.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Tag.java
new file mode 100644
index 00000000000..3815af34412
--- /dev/null
+++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Tag.java
@@ -0,0 +1,79 @@
+package io.swagger.model;
+
+import java.util.Objects;
+import java.util.ArrayList;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+
+
+
+@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:16.906+08:00")
+public class Tag {
+
+ private Long id = null;
+ private String name = null;
+
+ /**
+ **/
+
+ @JsonProperty("id")
+ public Long getId() {
+ return id;
+ }
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ /**
+ **/
+
+ @JsonProperty("name")
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ Tag tag = (Tag) o;
+ return Objects.equals(id, tag.id) &&
+ Objects.equals(name, tag.name);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, name);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class Tag {\n");
+
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/User.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/User.java
new file mode 100644
index 00000000000..45464c9de08
--- /dev/null
+++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/User.java
@@ -0,0 +1,164 @@
+package io.swagger.model;
+
+import java.util.Objects;
+import java.util.ArrayList;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+
+
+
+@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:16.906+08:00")
+public class User {
+
+ private Long id = null;
+ private String username = null;
+ private String firstName = null;
+ private String lastName = null;
+ private String email = null;
+ private String password = null;
+ private String phone = null;
+ private Integer userStatus = null;
+
+ /**
+ **/
+
+ @JsonProperty("id")
+ public Long getId() {
+ return id;
+ }
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ /**
+ **/
+
+ @JsonProperty("username")
+ public String getUsername() {
+ return username;
+ }
+ public void setUsername(String username) {
+ this.username = username;
+ }
+
+ /**
+ **/
+
+ @JsonProperty("firstName")
+ public String getFirstName() {
+ return firstName;
+ }
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ /**
+ **/
+
+ @JsonProperty("lastName")
+ public String getLastName() {
+ return lastName;
+ }
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+ /**
+ **/
+
+ @JsonProperty("email")
+ public String getEmail() {
+ return email;
+ }
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ /**
+ **/
+
+ @JsonProperty("password")
+ public String getPassword() {
+ return password;
+ }
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ /**
+ **/
+
+ @JsonProperty("phone")
+ public String getPhone() {
+ return phone;
+ }
+ public void setPhone(String phone) {
+ this.phone = phone;
+ }
+
+ /**
+ * User Status
+ **/
+
+ @JsonProperty("userStatus")
+ public Integer getUserStatus() {
+ return userStatus;
+ }
+ public void setUserStatus(Integer userStatus) {
+ this.userStatus = userStatus;
+ }
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ User user = (User) o;
+ return Objects.equals(id, user.id) &&
+ Objects.equals(username, user.username) &&
+ Objects.equals(firstName, user.firstName) &&
+ Objects.equals(lastName, user.lastName) &&
+ Objects.equals(email, user.email) &&
+ Objects.equals(password, user.password) &&
+ Objects.equals(phone, user.phone) &&
+ Objects.equals(userStatus, user.userStatus);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class User {\n");
+
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" username: ").append(toIndentedString(username)).append("\n");
+ sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
+ sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
+ sb.append(" email: ").append(toIndentedString(email)).append("\n");
+ sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
+ sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java
new file mode 100644
index 00000000000..001606d8e53
--- /dev/null
+++ b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java
@@ -0,0 +1,15 @@
+package io.swagger.api.factories;
+
+import io.swagger.api.PetApiService;
+import io.swagger.api.impl.PetApiServiceImpl;
+
+@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:16.906+08:00")
+public class PetApiServiceFactory {
+
+ private final static PetApiService service = new PetApiServiceImpl();
+
+ public static PetApiService getPetApi()
+ {
+ return service;
+ }
+}
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java
new file mode 100644
index 00000000000..3372e08c682
--- /dev/null
+++ b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java
@@ -0,0 +1,15 @@
+package io.swagger.api.factories;
+
+import io.swagger.api.StoreApiService;
+import io.swagger.api.impl.StoreApiServiceImpl;
+
+@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:16.906+08:00")
+public class StoreApiServiceFactory {
+
+ private final static StoreApiService service = new StoreApiServiceImpl();
+
+ public static StoreApiService getStoreApi()
+ {
+ return service;
+ }
+}
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java
new file mode 100644
index 00000000000..036ec3bfa9e
--- /dev/null
+++ b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java
@@ -0,0 +1,15 @@
+package io.swagger.api.factories;
+
+import io.swagger.api.UserApiService;
+import io.swagger.api.impl.UserApiServiceImpl;
+
+@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:16.906+08:00")
+public class UserApiServiceFactory {
+
+ private final static UserApiService service = new UserApiServiceImpl();
+
+ public static UserApiService getUserApi()
+ {
+ return service;
+ }
+}
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java
new file mode 100644
index 00000000000..4e088969fbf
--- /dev/null
+++ b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java
@@ -0,0 +1,70 @@
+package io.swagger.api.impl;
+
+import io.swagger.api.*;
+import io.swagger.model.*;
+import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput;
+
+
+import io.swagger.model.Pet;
+import java.io.File;
+import io.swagger.model.ModelApiResponse;
+
+import java.util.List;
+import io.swagger.api.NotFoundException;
+
+import java.io.InputStream;
+
+import javax.ws.rs.core.Response;
+import javax.ws.rs.core.SecurityContext;
+
+@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:16.906+08:00")
+public class PetApiServiceImpl extends PetApiService {
+ @Override
+ public Response addPet(Pet body,SecurityContext securityContext)
+ throws NotFoundException {
+ // do some magic!
+ return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
+ }
+ @Override
+ public Response deletePet(Long petId,String apiKey,SecurityContext securityContext)
+ throws NotFoundException {
+ // do some magic!
+ return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
+ }
+ @Override
+ public Response findPetsByStatus(List status,SecurityContext securityContext)
+ throws NotFoundException {
+ // do some magic!
+ return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
+ }
+ @Override
+ public Response findPetsByTags(List tags,SecurityContext securityContext)
+ throws NotFoundException {
+ // do some magic!
+ return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
+ }
+ @Override
+ public Response getPetById(Long petId,SecurityContext securityContext)
+ throws NotFoundException {
+ // do some magic!
+ return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
+ }
+ @Override
+ public Response updatePet(Pet body,SecurityContext securityContext)
+ throws NotFoundException {
+ // do some magic!
+ return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
+ }
+ @Override
+ public Response updatePetWithForm(Long petId,String name,String status,SecurityContext securityContext)
+ throws NotFoundException {
+ // do some magic!
+ return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
+ }
+ @Override
+ public Response uploadFile(MultipartFormDataInput input,Long petId,SecurityContext securityContext)
+ throws NotFoundException {
+ // do some magic!
+ return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
+ }
+}
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java
new file mode 100644
index 00000000000..d77f7ad19ca
--- /dev/null
+++ b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java
@@ -0,0 +1,44 @@
+package io.swagger.api.impl;
+
+import io.swagger.api.*;
+import io.swagger.model.*;
+
+
+import java.util.Map;
+import io.swagger.model.Order;
+
+import java.util.List;
+import io.swagger.api.NotFoundException;
+
+import java.io.InputStream;
+
+import javax.ws.rs.core.Response;
+import javax.ws.rs.core.SecurityContext;
+
+@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:16.906+08:00")
+public class StoreApiServiceImpl extends StoreApiService {
+ @Override
+ public Response deleteOrder(String orderId,SecurityContext securityContext)
+ throws NotFoundException {
+ // do some magic!
+ return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
+ }
+ @Override
+ public Response getInventory(SecurityContext securityContext)
+ throws NotFoundException {
+ // do some magic!
+ return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
+ }
+ @Override
+ public Response getOrderById(Long orderId,SecurityContext securityContext)
+ throws NotFoundException {
+ // do some magic!
+ return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
+ }
+ @Override
+ public Response placeOrder(Order body,SecurityContext securityContext)
+ throws NotFoundException {
+ // do some magic!
+ return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
+ }
+}
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java
new file mode 100644
index 00000000000..ec3dff01ece
--- /dev/null
+++ b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java
@@ -0,0 +1,68 @@
+package io.swagger.api.impl;
+
+import io.swagger.api.*;
+import io.swagger.model.*;
+
+
+import io.swagger.model.User;
+import java.util.List;
+
+import java.util.List;
+import io.swagger.api.NotFoundException;
+
+import java.io.InputStream;
+
+import javax.ws.rs.core.Response;
+import javax.ws.rs.core.SecurityContext;
+
+@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:16.906+08:00")
+public class UserApiServiceImpl extends UserApiService {
+ @Override
+ public Response createUser(User body,SecurityContext securityContext)
+ throws NotFoundException {
+ // do some magic!
+ return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
+ }
+ @Override
+ public Response createUsersWithArrayInput(List body,SecurityContext securityContext)
+ throws NotFoundException {
+ // do some magic!
+ return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
+ }
+ @Override
+ public Response createUsersWithListInput(List body,SecurityContext securityContext)
+ throws NotFoundException {
+ // do some magic!
+ return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
+ }
+ @Override
+ public Response deleteUser(String username,SecurityContext securityContext)
+ throws NotFoundException {
+ // do some magic!
+ return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
+ }
+ @Override
+ public Response getUserByName(String username,SecurityContext securityContext)
+ throws NotFoundException {
+ // do some magic!
+ return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
+ }
+ @Override
+ public Response loginUser(String username,String password,SecurityContext securityContext)
+ throws NotFoundException {
+ // do some magic!
+ return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
+ }
+ @Override
+ public Response logoutUser(SecurityContext securityContext)
+ throws NotFoundException {
+ // do some magic!
+ return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
+ }
+ @Override
+ public Response updateUser(String username,User body,SecurityContext securityContext)
+ throws NotFoundException {
+ // do some magic!
+ return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
+ }
+}
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/main/webapp/WEB-INF/jboss-web.xml b/samples/server/petstore/jaxrs-resteasy/joda/src/main/webapp/WEB-INF/jboss-web.xml
new file mode 100644
index 00000000000..9c05ed07b78
--- /dev/null
+++ b/samples/server/petstore/jaxrs-resteasy/joda/src/main/webapp/WEB-INF/jboss-web.xml
@@ -0,0 +1,3 @@
+
+ /v2
+
\ No newline at end of file
diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/main/webapp/WEB-INF/web.xml b/samples/server/petstore/jaxrs-resteasy/joda/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 00000000000..52a89e92132
--- /dev/null
+++ b/samples/server/petstore/jaxrs-resteasy/joda/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,14 @@
+
+
+
+
+ ApiOriginFilter
+ io.swagger.api.ApiOriginFilter
+
+
+ ApiOriginFilter
+ /*
+
+
diff --git a/samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java
deleted file mode 100644
index c1192247ba3..00000000000
--- a/samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java
+++ /dev/null
@@ -1,93 +0,0 @@
-package io.swagger.api.impl;
-
-import io.swagger.api.*;
-import io.swagger.model.*;
-import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput;
-
-
-import io.swagger.model.Pet;
-import java.io.File;
-
-
-import java.util.List;
-import io.swagger.api.NotFoundException;
-
-import java.io.InputStream;
-
-import javax.ws.rs.core.Response;
-import javax.ws.rs.core.SecurityContext;
-
-@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-02-04T01:58:20.368+07:00")
-
-public class PetApiServiceImpl extends PetApiService {
-
- @Override
- public Response updatePet(Pet body,SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
-
- @Override
- public Response addPet(Pet body,SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
-
- @Override
- public Response findPetsByStatus(List status,SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
-
- @Override
- public Response findPetsByTags(List tags,SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
-
- @Override
- public Response getPetById(Long petId,SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
-
- /*
- * comment out as the method (for testing) does not exit in the original swagger spec
- * we'll uncomment this code block later if we update the petstore server
- @Override
- public Response getPetByIdInObject(Long petId,SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
- */
-
- @Override
- public Response updatePetWithForm(Long petId,String name,String status,SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
-
- @Override
- public Response deletePet(Long petId,String apiKey,SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
-
- @Override
- public Response uploadFile(MultipartFormDataInput input,Long petId,SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
-
- /*
- * comment out as the method (for testing) does not exit in the original swagger spec
- * we'll uncomment this code block later if we update the petstore server
- @Override
- public Response petPetIdtestingByteArraytrueGet(Long petId,SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
- */
-
-}
-
diff --git a/samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java
deleted file mode 100644
index b19e9003af5..00000000000
--- a/samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java
+++ /dev/null
@@ -1,68 +0,0 @@
-package io.swagger.api.impl;
-
-import io.swagger.api.*;
-import io.swagger.model.*;
-
-
-import java.util.Map;
-import io.swagger.model.Order;
-
-
-import java.util.List;
-import io.swagger.api.NotFoundException;
-
-import java.io.InputStream;
-
-import javax.ws.rs.core.Response;
-import javax.ws.rs.core.SecurityContext;
-
-@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-02-04T01:58:20.368+07:00")
-
-public class StoreApiServiceImpl extends StoreApiService {
-
- @Override
- public Response getInventory(SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
-
- /*
- * * comment out as the method (for testing) does not exit in the original swagger spec
- * * we'll uncomment this code block later if we update the petstore server
- @Override
- public Response getInventoryInObject(SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
- */
-
- @Override
- public Response placeOrder(Order body,SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
-
- @Override
- public Response getOrderById(Long orderId,SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
-
- @Override
- public Response deleteOrder(String orderId,SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
-
- /*
- * * comment out as the method (for testing) does not exit in the original swagger spec
- * * we'll uncomment this code block later if we update the petstore server
- @Override
- public Response findOrdersByStatus(String status, SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
- */
-
-}
-
diff --git a/samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java
deleted file mode 100644
index e2d9acb67ba..00000000000
--- a/samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java
+++ /dev/null
@@ -1,72 +0,0 @@
-package io.swagger.api.impl;
-
-import io.swagger.api.*;
-import io.swagger.model.*;
-
-
-import io.swagger.model.User;
-import java.util.*;
-
-
-import java.util.List;
-import io.swagger.api.NotFoundException;
-
-import java.io.InputStream;
-
-import javax.ws.rs.core.Response;
-import javax.ws.rs.core.SecurityContext;
-
-@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-02-04T01:58:20.368+07:00")
-
-public class UserApiServiceImpl extends UserApiService {
-
- @Override
- public Response createUser(User body,SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
-
- @Override
- public Response createUsersWithArrayInput(List body,SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
-
- @Override
- public Response createUsersWithListInput(List body,SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
-
- @Override
- public Response loginUser(String username,String password,SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
-
- @Override
- public Response logoutUser(SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
-
- @Override
- public Response getUserByName(String username,SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
-
- @Override
- public Response updateUser(String username,User body,SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
-
- @Override
- public Response deleteUser(String username,SecurityContext securityContext) throws NotFoundException {
- // do some magic!
- return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
- }
-
-}
-