From 0506b4ab768f84a09a8a1c890927535fb54b93e7 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 22 Jun 2016 01:10:48 +0600 Subject: [PATCH 1/2] Fix joda dependency in resteasy gradle file --- .../resources/JavaJaxRS/resteasy/JacksonConfig.mustache | 1 - .../src/main/resources/JavaJaxRS/resteasy/gradle.mustache | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/JavaJaxRS/resteasy/JacksonConfig.mustache b/modules/swagger-codegen/src/main/resources/JavaJaxRS/resteasy/JacksonConfig.mustache index f2caa6c8331..0f591e315dc 100644 --- a/modules/swagger-codegen/src/main/resources/JavaJaxRS/resteasy/JacksonConfig.mustache +++ b/modules/swagger-codegen/src/main/resources/JavaJaxRS/resteasy/JacksonConfig.mustache @@ -40,7 +40,6 @@ public class JacksonConfig implements ContextResolver { }); } - @Override public ObjectMapper getContext(Class arg0) { return objectMapper; } diff --git a/modules/swagger-codegen/src/main/resources/JavaJaxRS/resteasy/gradle.mustache b/modules/swagger-codegen/src/main/resources/JavaJaxRS/resteasy/gradle.mustache index b5d7e2378ef..ae34de08166 100644 --- a/modules/swagger-codegen/src/main/resources/JavaJaxRS/resteasy/gradle.mustache +++ b/modules/swagger-codegen/src/main/resources/JavaJaxRS/resteasy/gradle.mustache @@ -15,10 +15,10 @@ dependencies { providedCompile 'javax.annotation:javax.annotation-api:1.2' providedCompile 'org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:1.0.0.Final' compile 'org.jboss.resteasy:resteasy-jackson2-provider:3.0.11.Final' - -// compile 'com.fasterxml.jackson.datatype:jackson-datatype-joda:2.4.1' -// compile 'joda-time:joda-time:2.7' - +{{#joda}} + compile 'com.fasterxml.jackson.datatype:jackson-datatype-joda:2.4.1' + compile 'joda-time:joda-time:2.7' +{{/joda}} testCompile 'junit:junit:4.12', 'org.hamcrest:hamcrest-core:1.3' } From c9d2bb8a96cf625ed2588b3e28de025a61b05417 Mon Sep 17 00:00:00 2001 From: wing328 Date: Fri, 1 Jul 2016 21:40:34 +0800 Subject: [PATCH 2/2] add test for jaxrs resteasy joda --- .gitignore | 2 +- bin/jaxrs-resteasy-joda-petstore-server.json | 3 + bin/jaxrs-resteasy-joda-petstore-server.sh | 31 +++ bin/jaxrs-resteasy-petstore-server.sh | 2 +- pom.xml | 17 +- .../default/.swagger-codegen-ignore | 23 ++ .../petstore/jaxrs-resteasy/default/LICENSE | 201 ++++++++++++++++++ .../jaxrs-resteasy/{ => default}/README.md | 0 .../jaxrs-resteasy/{ => default}/build.gradle | 4 - .../jaxrs-resteasy/{ => default}/pom.xml | 2 +- .../{ => default}/settings.gradle | 0 .../gen/java/io/swagger/api/ApiException.java | 2 +- .../java/io/swagger/api/ApiOriginFilter.java | 2 +- .../io/swagger/api/ApiResponseMessage.java | 2 +- .../io/swagger/api/NotFoundException.java | 2 +- .../src/gen/java/io/swagger/api/PetApi.java | 2 +- .../java/io/swagger/api/PetApiService.java | 2 +- .../java/io/swagger/api/RestApplication.java | 0 .../src/gen/java/io/swagger/api/StoreApi.java | 2 +- .../java/io/swagger/api/StoreApiService.java | 2 +- .../gen/java/io/swagger/api/StringUtil.java | 2 +- .../src/gen/java/io/swagger/api/UserApi.java | 2 +- .../java/io/swagger/api/UserApiService.java | 2 +- .../gen/java/io/swagger/model/Category.java | 2 +- .../io/swagger/model/ModelApiResponse.java | 2 +- .../src/gen/java/io/swagger/model/Order.java | 2 +- .../src/gen/java/io/swagger/model/Pet.java | 2 +- .../src/gen/java/io/swagger/model/Tag.java | 2 +- .../src/gen/java/io/swagger/model/User.java | 2 +- .../api/factories/PetApiServiceFactory.java | 2 +- .../api/factories/StoreApiServiceFactory.java | 2 +- .../api/factories/UserApiServiceFactory.java | 2 +- .../swagger/api/impl/PetApiServiceImpl.java | 70 ++++++ .../swagger/api/impl/StoreApiServiceImpl.java | 44 ++++ .../swagger/api/impl/UserApiServiceImpl.java | 68 ++++++ .../src/main/webapp/WEB-INF/jboss-web.xml | 0 .../src/main/webapp/WEB-INF/web.xml | 0 .../joda/.swagger-codegen-ignore | 23 ++ .../petstore/jaxrs-resteasy/joda/LICENSE | 201 ++++++++++++++++++ .../petstore/jaxrs-resteasy/joda/README.md | 23 ++ .../petstore/jaxrs-resteasy/joda/build.gradle | 30 +++ .../main/io/swagger/api/ApiException.class | Bin 0 -> 427 bytes .../main/io/swagger/api/ApiOriginFilter.class | Bin 0 -> 1459 bytes .../io/swagger/api/ApiResponseMessage.class | Bin 0 -> 1661 bytes .../io/swagger/api/JacksonConfig$1$1.class | Bin 0 -> 1929 bytes .../io/swagger/api/JacksonConfig$1$2.class | Bin 0 -> 1922 bytes .../main/io/swagger/api/JacksonConfig$1.class | Bin 0 -> 941 bytes .../main/io/swagger/api/JacksonConfig.class | Bin 0 -> 1426 bytes ...teTimeProvider$JodaDateTimeConverter.class | Bin 0 -> 2119 bytes .../io/swagger/api/JodaDateTimeProvider.class | Bin 0 -> 1233 bytes ...lDateProvider$JodaLocalDateConverter.class | Bin 0 -> 2133 bytes .../swagger/api/JodaLocalDateProvider.class | Bin 0 -> 1240 bytes .../io/swagger/api/NotFoundException.class | Bin 0 -> 427 bytes .../classes/main/io/swagger/api/PetApi.class | Bin 0 -> 3755 bytes .../main/io/swagger/api/PetApiService.class | Bin 0 -> 1357 bytes .../main/io/swagger/api/RestApplication.class | Bin 0 -> 401 bytes .../main/io/swagger/api/StoreApi.class | Bin 0 -> 2045 bytes .../main/io/swagger/api/StoreApiService.class | Bin 0 -> 802 bytes .../main/io/swagger/api/StringUtil.class | Bin 0 -> 1220 bytes .../classes/main/io/swagger/api/UserApi.class | Bin 0 -> 3324 bytes .../main/io/swagger/api/UserApiService.class | Bin 0 -> 1292 bytes .../api/factories/PetApiServiceFactory.class | Bin 0 -> 593 bytes .../factories/StoreApiServiceFactory.class | Bin 0 -> 607 bytes .../api/factories/UserApiServiceFactory.class | Bin 0 -> 600 bytes .../swagger/api/impl/PetApiServiceImpl.class | Bin 0 -> 2914 bytes .../api/impl/StoreApiServiceImpl.class | Bin 0 -> 1730 bytes .../swagger/api/impl/UserApiServiceImpl.class | Bin 0 -> 2707 bytes .../main/io/swagger/model/Category.class | Bin 0 -> 2122 bytes .../io/swagger/model/ModelApiResponse.class | Bin 0 -> 2459 bytes .../io/swagger/model/Order$StatusEnum.class | Bin 0 -> 1570 bytes .../classes/main/io/swagger/model/Order.class | Bin 0 -> 3712 bytes .../io/swagger/model/Pet$StatusEnum.class | Bin 0 -> 1548 bytes .../classes/main/io/swagger/model/Pet.class | Bin 0 -> 4000 bytes .../classes/main/io/swagger/model/Tag.class | Bin 0 -> 2097 bytes .../classes/main/io/swagger/model/User.class | Bin 0 -> 3908 bytes .../petstore/jaxrs-resteasy/joda/pom.xml | 155 ++++++++++++++ .../jaxrs-resteasy/joda/settings.gradle | 1 + .../gen/java/io/swagger/api/ApiException.java | 10 + .../java/io/swagger/api/ApiOriginFilter.java | 22 ++ .../io/swagger/api/ApiResponseMessage.java | 69 ++++++ .../java/io/swagger/api/JacksonConfig.java | 46 ++++ .../io/swagger/api/JodaDateTimeProvider.java | 42 ++++ .../io/swagger/api/JodaLocalDateProvider.java | 42 ++++ .../io/swagger/api/NotFoundException.java | 10 + .../src/gen/java/io/swagger/api/PetApi.java | 93 ++++++++ .../java/io/swagger/api/PetApiService.java | 38 ++++ .../java/io/swagger/api/RestApplication.java | 9 + .../src/gen/java/io/swagger/api/StoreApi.java | 59 +++++ .../java/io/swagger/api/StoreApiService.java | 28 +++ .../gen/java/io/swagger/api/StringUtil.java | 42 ++++ .../src/gen/java/io/swagger/api/UserApi.java | 91 ++++++++ .../java/io/swagger/api/UserApiService.java | 36 ++++ .../gen/java/io/swagger/model/Category.java | 79 +++++++ .../io/swagger/model/ModelApiResponse.java | 93 ++++++++ .../src/gen/java/io/swagger/model/Order.java | 161 ++++++++++++++ .../src/gen/java/io/swagger/model/Pet.java | 163 ++++++++++++++ .../src/gen/java/io/swagger/model/Tag.java | 79 +++++++ .../src/gen/java/io/swagger/model/User.java | 164 ++++++++++++++ .../api/factories/PetApiServiceFactory.java | 15 ++ .../api/factories/StoreApiServiceFactory.java | 15 ++ .../api/factories/UserApiServiceFactory.java | 15 ++ .../swagger/api/impl/PetApiServiceImpl.java | 70 ++++++ .../swagger/api/impl/StoreApiServiceImpl.java | 44 ++++ .../swagger/api/impl/UserApiServiceImpl.java | 68 ++++++ .../src/main/webapp/WEB-INF/jboss-web.xml | 3 + .../joda/src/main/webapp/WEB-INF/web.xml | 14 ++ .../swagger/api/impl/PetApiServiceImpl.java | 93 -------- .../swagger/api/impl/StoreApiServiceImpl.java | 68 ------ .../swagger/api/impl/UserApiServiceImpl.java | 72 ------- 109 files changed, 2531 insertions(+), 262 deletions(-) create mode 100755 bin/jaxrs-resteasy-joda-petstore-server.json create mode 100755 bin/jaxrs-resteasy-joda-petstore-server.sh create mode 100644 samples/server/petstore/jaxrs-resteasy/default/.swagger-codegen-ignore create mode 100644 samples/server/petstore/jaxrs-resteasy/default/LICENSE rename samples/server/petstore/jaxrs-resteasy/{ => default}/README.md (100%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/build.gradle (86%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/pom.xml (98%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/settings.gradle (100%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/gen/java/io/swagger/api/ApiException.java (75%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/gen/java/io/swagger/api/ApiOriginFilter.java (91%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/gen/java/io/swagger/api/ApiResponseMessage.java (94%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/gen/java/io/swagger/api/NotFoundException.java (77%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/gen/java/io/swagger/api/PetApi.java (97%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/gen/java/io/swagger/api/PetApiService.java (95%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/gen/java/io/swagger/api/RestApplication.java (100%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/gen/java/io/swagger/api/StoreApi.java (95%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/gen/java/io/swagger/api/StoreApiService.java (92%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/gen/java/io/swagger/api/StringUtil.java (94%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/gen/java/io/swagger/api/UserApi.java (97%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/gen/java/io/swagger/api/UserApiService.java (94%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/gen/java/io/swagger/model/Category.java (95%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/gen/java/io/swagger/model/ModelApiResponse.java (96%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/gen/java/io/swagger/model/Order.java (97%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/gen/java/io/swagger/model/Pet.java (97%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/gen/java/io/swagger/model/Tag.java (95%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/gen/java/io/swagger/model/User.java (97%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java (82%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java (83%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java (83%) create mode 100644 samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java create mode 100644 samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java create mode 100644 samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/main/webapp/WEB-INF/jboss-web.xml (100%) rename samples/server/petstore/jaxrs-resteasy/{ => default}/src/main/webapp/WEB-INF/web.xml (100%) create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/.swagger-codegen-ignore create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/LICENSE create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/README.md create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build.gradle create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/ApiException.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/ApiOriginFilter.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/ApiResponseMessage.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JacksonConfig$1$1.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JacksonConfig$1$2.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JacksonConfig$1.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JacksonConfig.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JodaDateTimeProvider$JodaDateTimeConverter.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JodaDateTimeProvider.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JodaLocalDateProvider$JodaLocalDateConverter.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JodaLocalDateProvider.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/NotFoundException.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/PetApi.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/PetApiService.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/RestApplication.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/StoreApi.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/StoreApiService.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/StringUtil.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/UserApi.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/UserApiService.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/factories/PetApiServiceFactory.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/factories/StoreApiServiceFactory.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/factories/UserApiServiceFactory.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/impl/PetApiServiceImpl.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/impl/StoreApiServiceImpl.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/impl/UserApiServiceImpl.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/model/Category.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/model/ModelApiResponse.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/model/Order$StatusEnum.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/model/Order.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/model/Pet$StatusEnum.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/model/Pet.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/model/Tag.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/model/User.class create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/pom.xml create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/settings.gradle create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiException.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiOriginFilter.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiResponseMessage.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JacksonConfig.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JodaDateTimeProvider.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JodaLocalDateProvider.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/NotFoundException.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/PetApi.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/PetApiService.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/RestApplication.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StoreApi.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StoreApiService.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/StringUtil.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/UserApi.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/UserApiService.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Category.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/ModelApiResponse.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Order.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Pet.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/Tag.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/User.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/main/webapp/WEB-INF/jboss-web.xml create mode 100644 samples/server/petstore/jaxrs-resteasy/joda/src/main/webapp/WEB-INF/web.xml delete mode 100644 samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java delete mode 100644 samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java delete mode 100644 samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java diff --git a/.gitignore b/.gitignore index f91fa3af631..589e45f6934 100644 --- a/.gitignore +++ b/.gitignore @@ -54,7 +54,7 @@ samples/client/petstore/qt5cpp/PetStore/PetStore samples/client/petstore/qt5cpp/PetStore/Makefile #Java/Android -**/.gradle/ +**/.gradle samples/client/petstore/java/hello.txt samples/client/petstore/android/default/hello.txt samples/client/petstore/android/volley/.gradle/ diff --git a/bin/jaxrs-resteasy-joda-petstore-server.json b/bin/jaxrs-resteasy-joda-petstore-server.json new file mode 100755 index 00000000000..785c7acdc6a --- /dev/null +++ b/bin/jaxrs-resteasy-joda-petstore-server.json @@ -0,0 +1,3 @@ +{ + "dateLibrary": "joda" +} diff --git a/bin/jaxrs-resteasy-joda-petstore-server.sh b/bin/jaxrs-resteasy-joda-petstore-server.sh new file mode 100755 index 00000000000..c1bbf6d71bf --- /dev/null +++ b/bin/jaxrs-resteasy-joda-petstore-server.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +SCRIPT="$0" + +while [ -h "$SCRIPT" ] ; do + ls=`ls -ld "$SCRIPT"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + SCRIPT="$link" + else + SCRIPT=`dirname "$SCRIPT"`/"$link" + fi +done + +if [ ! -d "${APP_DIR}" ]; then + APP_DIR=`dirname "$SCRIPT"`/.. + APP_DIR=`cd "${APP_DIR}"; pwd` +fi + +executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar" + +if [ ! -f "$executable" ] +then + mvn clean package +fi + +# if you've executed sbt assembly previously it will use that instead. +export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties" +ags="$@ generate -t modules/swagger-codegen/src/main/resources/JavaJaxRS -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l jaxrs-resteasy -o samples/server/petstore/jaxrs-resteasy/joda -DhideGenerationTimestamp=true -c ./bin/jaxrs-resteasy-joda-petstore-server.json" + +java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jaxrs-resteasy-petstore-server.sh b/bin/jaxrs-resteasy-petstore-server.sh index a715ded67f9..8fb30411d64 100755 --- a/bin/jaxrs-resteasy-petstore-server.sh +++ b/bin/jaxrs-resteasy-petstore-server.sh @@ -26,6 +26,6 @@ fi # if you've executed sbt assembly previously it will use that instead. export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="$@ generate -t modules/swagger-codegen/src/main/resources/JavaJaxRS -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l jaxrs-resteasy -o samples/server/petstore/jaxrs-resteasy -DhideGenerationTimestamp=true" +ags="$@ generate -t modules/swagger-codegen/src/main/resources/JavaJaxRS -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l jaxrs-resteasy -o samples/server/petstore/jaxrs-resteasy/default -DhideGenerationTimestamp=true" java $JAVA_OPTS -jar $executable $ags diff --git a/pom.xml b/pom.xml index 37cd5602fb8..c502c48914d 100644 --- a/pom.xml +++ b/pom.xml @@ -423,7 +423,19 @@ - samples/server/petstore/jaxrs-resteasy + samples/server/petstore/jaxrs-resteasy/default + + + + jaxrs-resteasy-server-joda + + + env + java + + + + samples/server/petstore/jaxrs-resteasy/joda @@ -591,7 +603,8 @@ samples/server/petstore/spring-mvc samples/server/petstore/jaxrs/jersey1 samples/server/petstore/jaxrs/jersey2 - samples/server/petstore/jaxrs-resteasy + samples/server/petstore/jaxrs-resteasy/default + samples/server/petstore/jaxrs-resteasy/joda diff --git a/samples/server/petstore/jaxrs-resteasy/default/.swagger-codegen-ignore b/samples/server/petstore/jaxrs-resteasy/default/.swagger-codegen-ignore new file mode 100644 index 00000000000..c5fa491b4c5 --- /dev/null +++ b/samples/server/petstore/jaxrs-resteasy/default/.swagger-codegen-ignore @@ -0,0 +1,23 @@ +# Swagger Codegen Ignore +# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/samples/server/petstore/jaxrs-resteasy/default/LICENSE b/samples/server/petstore/jaxrs-resteasy/default/LICENSE new file mode 100644 index 00000000000..8dada3edaf5 --- /dev/null +++ b/samples/server/petstore/jaxrs-resteasy/default/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/samples/server/petstore/jaxrs-resteasy/README.md b/samples/server/petstore/jaxrs-resteasy/default/README.md similarity index 100% rename from samples/server/petstore/jaxrs-resteasy/README.md rename to samples/server/petstore/jaxrs-resteasy/default/README.md diff --git a/samples/server/petstore/jaxrs-resteasy/build.gradle b/samples/server/petstore/jaxrs-resteasy/default/build.gradle similarity index 86% rename from samples/server/petstore/jaxrs-resteasy/build.gradle rename to samples/server/petstore/jaxrs-resteasy/default/build.gradle index d7afa6c5222..879fe11de18 100644 --- a/samples/server/petstore/jaxrs-resteasy/build.gradle +++ b/samples/server/petstore/jaxrs-resteasy/default/build.gradle @@ -15,10 +15,6 @@ dependencies { providedCompile 'javax.annotation:javax.annotation-api:1.2' providedCompile 'org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:1.0.0.Final' compile 'org.jboss.resteasy:resteasy-jackson2-provider:3.0.11.Final' - -// compile 'com.fasterxml.jackson.datatype:jackson-datatype-joda:2.4.1' -// compile 'joda-time:joda-time:2.7' - testCompile 'junit:junit:4.12', 'org.hamcrest:hamcrest-core:1.3' } diff --git a/samples/server/petstore/jaxrs-resteasy/pom.xml b/samples/server/petstore/jaxrs-resteasy/default/pom.xml similarity index 98% rename from samples/server/petstore/jaxrs-resteasy/pom.xml rename to samples/server/petstore/jaxrs-resteasy/default/pom.xml index c87fa4ab30d..3fe937dbc9b 100644 --- a/samples/server/petstore/jaxrs-resteasy/pom.xml +++ b/samples/server/petstore/jaxrs-resteasy/default/pom.xml @@ -145,7 +145,7 @@ - 1.5.7 + 1.5.8 9.2.9.v20150224 3.0.11.Final 1.6.3 diff --git a/samples/server/petstore/jaxrs-resteasy/settings.gradle b/samples/server/petstore/jaxrs-resteasy/default/settings.gradle similarity index 100% rename from samples/server/petstore/jaxrs-resteasy/settings.gradle rename to samples/server/petstore/jaxrs-resteasy/default/settings.gradle diff --git a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/ApiException.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/ApiException.java similarity index 75% rename from samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/ApiException.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/ApiException.java index 269b2e95c5e..32c1e58df06 100644 --- a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/ApiException.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/ApiException.java @@ -1,6 +1,6 @@ package io.swagger.api; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-04-29T00:20:47.240+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:05.980+08:00") public class ApiException extends Exception{ private int code; public ApiException (int code, String msg) { diff --git a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/ApiOriginFilter.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/ApiOriginFilter.java similarity index 91% rename from samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/ApiOriginFilter.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/ApiOriginFilter.java index a12422230ec..eeb813c3a22 100644 --- a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/ApiOriginFilter.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/ApiOriginFilter.java @@ -5,7 +5,7 @@ import java.io.IOException; import javax.servlet.*; import javax.servlet.http.HttpServletResponse; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-04-29T00:20:47.240+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:05.980+08:00") public class ApiOriginFilter implements javax.servlet.Filter { public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { diff --git a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/ApiResponseMessage.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/ApiResponseMessage.java similarity index 94% rename from samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/ApiResponseMessage.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/ApiResponseMessage.java index 43cc54796d5..a9534f09f5d 100644 --- a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/ApiResponseMessage.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/ApiResponseMessage.java @@ -3,7 +3,7 @@ package io.swagger.api; import javax.xml.bind.annotation.XmlTransient; @javax.xml.bind.annotation.XmlRootElement -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-04-29T00:20:47.240+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:05.980+08:00") public class ApiResponseMessage { public static final int ERROR = 1; public static final int WARNING = 2; diff --git a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/NotFoundException.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/NotFoundException.java similarity index 77% rename from samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/NotFoundException.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/NotFoundException.java index a367cfec514..6379b2b4499 100644 --- a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/NotFoundException.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/NotFoundException.java @@ -1,6 +1,6 @@ package io.swagger.api; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-04-29T00:20:47.240+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:05.980+08:00") public class NotFoundException extends ApiException { private int code; public NotFoundException (int code, String msg) { diff --git a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/PetApi.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/PetApi.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/PetApi.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/PetApi.java index 6e360c1e23f..8b3ec467613 100644 --- a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/PetApi.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/PetApi.java @@ -22,7 +22,7 @@ import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput; @Path("/pet") -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-04-29T00:20:47.240+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:05.980+08:00") public class PetApi { private final PetApiService delegate = PetApiServiceFactory.getPetApi(); diff --git a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/PetApiService.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/PetApiService.java similarity index 95% rename from samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/PetApiService.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/PetApiService.java index f1a3e2465c2..0d3e9bb280a 100644 --- a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/PetApiService.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/PetApiService.java @@ -17,7 +17,7 @@ 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-04-29T00:20:47.240+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:05.980+08:00") public abstract class PetApiService { public abstract Response addPet(Pet body,SecurityContext securityContext) throws NotFoundException; diff --git a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/RestApplication.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/RestApplication.java similarity index 100% rename from samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/RestApplication.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/RestApplication.java diff --git a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/StoreApi.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/StoreApi.java similarity index 95% rename from samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/StoreApi.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/StoreApi.java index ed21293f466..2fdc2718271 100644 --- a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/StoreApi.java @@ -20,7 +20,7 @@ import javax.ws.rs.*; @Path("/store") -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-04-29T00:20:47.240+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:05.980+08:00") public class StoreApi { private final StoreApiService delegate = StoreApiServiceFactory.getStoreApi(); diff --git a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/StoreApiService.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/StoreApiService.java similarity index 92% rename from samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/StoreApiService.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/StoreApiService.java index 52ea6fba817..f4b9a5ad692 100644 --- a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/StoreApiService.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/StoreApiService.java @@ -15,7 +15,7 @@ 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-04-29T00:20:47.240+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:05.980+08:00") public abstract class StoreApiService { public abstract Response deleteOrder(String orderId,SecurityContext securityContext) throws NotFoundException; diff --git a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/StringUtil.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/StringUtil.java similarity index 94% rename from samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/StringUtil.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/StringUtil.java index 2fce17c06ce..2fb1f82f391 100644 --- a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/StringUtil.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/StringUtil.java @@ -1,6 +1,6 @@ package io.swagger.api; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-04-29T00:20:47.240+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:05.980+08:00") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/UserApi.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/UserApi.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/UserApi.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/UserApi.java index 55bd0c185d9..195e99f1a20 100644 --- a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/UserApi.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/UserApi.java @@ -20,7 +20,7 @@ import javax.ws.rs.*; @Path("/user") -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-04-29T00:20:47.240+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:05.980+08:00") public class UserApi { private final UserApiService delegate = UserApiServiceFactory.getUserApi(); diff --git a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/UserApiService.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/UserApiService.java similarity index 94% rename from samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/UserApiService.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/UserApiService.java index ea30abb522f..dc81bf13cb6 100644 --- a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/api/UserApiService.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/UserApiService.java @@ -15,7 +15,7 @@ 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-04-29T00:20:47.240+08:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:05.980+08:00") public abstract class UserApiService { public abstract Response createUser(User body,SecurityContext securityContext) throws NotFoundException; diff --git a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/model/Category.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Category.java similarity index 95% rename from samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/model/Category.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Category.java index fca6b39bfa8..172a2ce4436 100644 --- a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/model/Category.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Category.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-06-16T10:34:51.577+02:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:05.980+08:00") public class Category { private Long id = null; diff --git a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/ModelApiResponse.java similarity index 96% rename from samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/model/ModelApiResponse.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/ModelApiResponse.java index 8229b459bd0..c55816bd394 100644 --- a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/ModelApiResponse.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-06-16T10:34:51.577+02:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:05.980+08:00") public class ModelApiResponse { private Integer code = null; diff --git a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/model/Order.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Order.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/model/Order.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Order.java index fe59a870a06..3d62d7e86e0 100644 --- a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/model/Order.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Order.java @@ -9,7 +9,7 @@ import java.util.Date; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-06-16T10:34:51.577+02:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:05.980+08:00") public class Order { private Long id = null; diff --git a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/model/Pet.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Pet.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/model/Pet.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Pet.java index c56d0930366..8fa4e7486d8 100644 --- a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/model/Pet.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Pet.java @@ -11,7 +11,7 @@ import java.util.List; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-06-16T10:34:51.577+02:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:05.980+08:00") public class Pet { private Long id = null; diff --git a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/model/Tag.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Tag.java similarity index 95% rename from samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/model/Tag.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Tag.java index 952f4e39d24..7018295e7f9 100644 --- a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/model/Tag.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/Tag.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-06-16T10:34:51.577+02:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:05.980+08:00") public class Tag { private Long id = null; diff --git a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/model/User.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/User.java similarity index 97% rename from samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/model/User.java rename to samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/User.java index a3e69975601..abfecb310fd 100644 --- a/samples/server/petstore/jaxrs-resteasy/src/gen/java/io/swagger/model/User.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/model/User.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; -@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-06-16T10:34:51.577+02:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:05.980+08:00") public class User { private Long id = null; diff --git a/samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java similarity index 82% rename from samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java rename to samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java index 5b59c799d83..e191d6bbd95 100644 --- a/samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java @@ -3,7 +3,7 @@ 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-02-04T01:58:20.368+07:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:05.980+08:00") public class PetApiServiceFactory { private final static PetApiService service = new PetApiServiceImpl(); diff --git a/samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java similarity index 83% rename from samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java rename to samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java index d24f09ed8fc..3f8808798dd 100644 --- a/samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java @@ -3,7 +3,7 @@ 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-02-04T01:58:20.368+07:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:05.980+08:00") public class StoreApiServiceFactory { private final static StoreApiService service = new StoreApiServiceImpl(); diff --git a/samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java similarity index 83% rename from samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java rename to samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java index 8a976ccd354..1efe9e725df 100644 --- a/samples/server/petstore/jaxrs-resteasy/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java @@ -3,7 +3,7 @@ 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-02-04T01:58:20.368+07:00") +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:05.980+08:00") public class UserApiServiceFactory { private final static UserApiService service = new UserApiServiceImpl(); diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java new file mode 100644 index 00000000000..7bc1c47236d --- /dev/null +++ b/samples/server/petstore/jaxrs-resteasy/default/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:05.980+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/default/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/impl/StoreApiServiceImpl.java new file mode 100644 index 00000000000..942bb9cd4f1 --- /dev/null +++ b/samples/server/petstore/jaxrs-resteasy/default/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:05.980+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/default/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/io/swagger/api/impl/UserApiServiceImpl.java new file mode 100644 index 00000000000..23a17f2827e --- /dev/null +++ b/samples/server/petstore/jaxrs-resteasy/default/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:05.980+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/src/main/webapp/WEB-INF/jboss-web.xml b/samples/server/petstore/jaxrs-resteasy/default/src/main/webapp/WEB-INF/jboss-web.xml similarity index 100% rename from samples/server/petstore/jaxrs-resteasy/src/main/webapp/WEB-INF/jboss-web.xml rename to samples/server/petstore/jaxrs-resteasy/default/src/main/webapp/WEB-INF/jboss-web.xml diff --git a/samples/server/petstore/jaxrs-resteasy/src/main/webapp/WEB-INF/web.xml b/samples/server/petstore/jaxrs-resteasy/default/src/main/webapp/WEB-INF/web.xml similarity index 100% rename from samples/server/petstore/jaxrs-resteasy/src/main/webapp/WEB-INF/web.xml rename to samples/server/petstore/jaxrs-resteasy/default/src/main/webapp/WEB-INF/web.xml diff --git a/samples/server/petstore/jaxrs-resteasy/joda/.swagger-codegen-ignore b/samples/server/petstore/jaxrs-resteasy/joda/.swagger-codegen-ignore new file mode 100644 index 00000000000..c5fa491b4c5 --- /dev/null +++ b/samples/server/petstore/jaxrs-resteasy/joda/.swagger-codegen-ignore @@ -0,0 +1,23 @@ +# Swagger Codegen Ignore +# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/samples/server/petstore/jaxrs-resteasy/joda/LICENSE b/samples/server/petstore/jaxrs-resteasy/joda/LICENSE new file mode 100644 index 00000000000..8dada3edaf5 --- /dev/null +++ b/samples/server/petstore/jaxrs-resteasy/joda/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/samples/server/petstore/jaxrs-resteasy/joda/README.md b/samples/server/petstore/jaxrs-resteasy/joda/README.md new file mode 100644 index 00000000000..cc011c37ee5 --- /dev/null +++ b/samples/server/petstore/jaxrs-resteasy/joda/README.md @@ -0,0 +1,23 @@ +# Swagger generated server + +## Overview +This server was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the +[OpenAPI-Spec](https://github.com/swagger-api/swagger-core/wiki) from a remote server, you can easily generate a server stub. This +is an example of building a swagger-enabled JAX-RS server. + +This example uses the [JAX-RS](https://jax-rs-spec.java.net/) framework. + +To run the server, please execute the following: + +``` +mvn clean package jetty:run +``` + +You can then view the swagger listing here: + +``` +http://localhost:8080/v2/swagger.json +``` + +Note that if you have configured the `host` to be something other than localhost, the calls through +swagger-ui will be directed to that host and not localhost! \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build.gradle b/samples/server/petstore/jaxrs-resteasy/joda/build.gradle new file mode 100644 index 00000000000..ed888aecd20 --- /dev/null +++ b/samples/server/petstore/jaxrs-resteasy/joda/build.gradle @@ -0,0 +1,30 @@ +apply plugin: 'war' + +project.version = "1.0.0" +project.group = "io.swagger" + +repositories { + mavenCentral() +} + +dependencies { + providedCompile 'org.jboss.resteasy:resteasy-jaxrs:3.0.11.Final' + providedCompile 'org.jboss.resteasy:jaxrs-api:3.0.11.Final' + providedCompile 'org.jboss.resteasy:resteasy-validator-provider-11:3.0.11.Final' + providedCompile 'org.jboss.resteasy:resteasy-multipart-provider:3.0.11.Final' + providedCompile 'javax.annotation:javax.annotation-api:1.2' + providedCompile 'org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:1.0.0.Final' + compile 'org.jboss.resteasy:resteasy-jackson2-provider:3.0.11.Final' + compile 'com.fasterxml.jackson.datatype:jackson-datatype-joda:2.4.1' + compile 'joda-time:joda-time:2.7' + testCompile 'junit:junit:4.12', + 'org.hamcrest:hamcrest-core:1.3' +} + +sourceSets { + main { + java { + srcDir 'src/gen/java' + } + } +} diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/ApiException.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/ApiException.class new file mode 100644 index 0000000000000000000000000000000000000000..1a5809e012135694ca5f306a50d15786c8cd607f GIT binary patch literal 427 zcmaJ-O-sW-5Pg%xrb%OKTU!rB&|6!?96VM85rsk!q>}qKE^#GILXxU~%Yz6#^auE( z#7Ptt3SM^Ry?q}r?;oo*fD`Q5Fwn7}qibT#)aB2#fV8Tl-}sKhN##qxT&n9J-|%p{SE)A zCiI4zr6V7Qd>@1FMbOIZY9p?yGh;EjVP5Ci7$3cX#)DUAFAO!<{5GpElZ|!878=YQ Ye97Tpn-LqUSgN)rTI?k3Fw)Te1k$ftdH?_b literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/ApiOriginFilter.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/ApiOriginFilter.class new file mode 100644 index 0000000000000000000000000000000000000000..dd4fb4e630e0341ece4a96f983e20a58234dc55b GIT binary patch literal 1459 zcma)6+foxj5IsXeb_r1+T$GD|H!dMzQNRm9OA4b{6^&&gFFq~1Lo(F58+Vu6kN6)x zS@>Z2>_=Jl?5vRlV)-)D)7yPcpYBe6{`&SEz$%`kk-?&doQ@?O`F`}EpkrBwp<_kI zy?)%ss)jWU>lz*~q&9^s!lw+0g~eTl$aHlVPS?Y)s0~Ye@=* z$&SeL{M1B(Wat#w2*akaLq|(#3pQOkv3N5SBu&FZ4Ub5HODG4Z;_;%22JN6y$re;-MzW5U|-1S!4RFP$k~T1*)ov=FpLqp8TEOLqGa-CB*+h} z-NDy#i5^=w~c7MAj7NGI@@XM&g{LyAfpqOzu_uzA8Z=q0(= z6n@N2Ot^;YQ9Uad#{|_OeUp@zAdDPtV44KZkT*r&W=S~1t(Mp&@=Gljgbtq*N`sGu m-o~9+=sG1ystbvuQKIaJL{^E?x{EnFWgW8JvWoc#V&ONJS!dz^ literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/ApiResponseMessage.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/ApiResponseMessage.class new file mode 100644 index 0000000000000000000000000000000000000000..965310aed6b19e49ff845171e19c9541fc530ed2 GIT binary patch literal 1661 zcmaizZ*vn>6vm&MKg~9zR+qL|iy8zaT?&g7MQkbdFO#utoU{gc#oVN8Seoo+b~hG2 zku#1jV20|9FZ=+0C1=#<+>JEQpqbfw&e^^9oZorw$sd3H_B((@Y!xwqFUC>AZ3|x( zX_qW4TexFk#ll?+U&*&sS=I_zFJMC>I$l=FtHv6aiW8yp*wvq%bZG~aDTPF zTiv}UVMZZW-QB8*pH;}zz7{X1VC~mx57)lkdmwS1yISFaN0U75(b(IM^$*(Z=%DTH zC6OPrmzcNf#j$Sl^VqT<_{oYwwld$~p>=b1a@!BQ-F~;}Mf%5|+q$o1Qpic%Ya1!i={ix+_`6A)D)3RKX zyHRldo4+20$!5pvN(Uu;fDcP}50e}pFN(sbgimpUm`6Gac)PqqKlnc6fP{yfjU)`q z&3^op8~VXv5FQ03ypQuG%;CJkh5x-cg||=Ur`CMzwUSp}r6Yw49P0^=pM_bxg-LJ^ zqYU0*Y!Ag}8BYzx(~M_^;&Y7O9g1g}g}rix5F1N;T8lL(1=lhomsZi{onN7z)5#DC z7&9+zd_=#LZooxcVkCz@=31uzCwI$#$CJa(+%Yn9KQTm&k4Z`^8LsfT$>$EAEyvFO zg4~a|>ezYXTypF&KTgDl8>~T8I!ZC^hmo;!}Mx!a@FpY7lu)xl5u>a54 z=@NTfA>sx*yvN-;1o(#F4MIP_Wjus~0|E(FIfWlI#x{&%0`AFGv$;>`&!F%(OJobU ztO}@5K>6j_;5>6>j1VU(zCh+@9vW8B9igHqA{sByDqO`iu4VcwJeiSiM$MD^D4Ms6 z$Wuo_pGkMUL?0WVD_-dJL9St_GtYQv80yvtC?$W0Qy^E4aprZ9C4wx!0Ys)vW@>RH qNbz-$yCXqvjs`J9khYO3vQChVH-N|$^54v{kk&spQz)9>0{#I{{tIFN literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JacksonConfig$1$1.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JacksonConfig$1$1.class new file mode 100644 index 0000000000000000000000000000000000000000..82ef0b2dc842184d8a914ae43f3c67d7e52259ec GIT binary patch literal 1929 zcmbVN?Nbv+9DX(i4vwotP-=ZEwbUj7J$b3M2C)>ui4(v!4AZYmvYeYU%=(@V$^M z6D3vQ;V#$G{%#x7)?J3X7f2Tnf zM(oh0utJfK#)5ncD09eEJ_=*an+8tI3dR&fCWVRk19Ch?@gVDSUO2 z1XbLR4VA)FPpffmlelGdpetfSCN14HJ`e0TQ0K2ll~Bbp3O0p#t*RbeT=p=Irw&#; zJj2fpRz3WJH3!cZxPM!ExPhBAwdW7*428bbzbj8F+BZ;!JLfYqOeP~vsN(iX z`56}atM%5HTBYOA)y`%)y)W){hrX|Log2Sc-aekqjl{x`p-BOz}4DGd%&*plD zqAeGf6TE8gu3{7$9+^U}qZ7-94h1BW{cpKZnqlmX zmPWKrGF-b z&~unTpeCB6=M({fFX*$Ix%y$tX49;64KwyrnP{dcMk|NJI=53R3ye2Ob1M`@AmwXT0=2QsKM`*JO~I z$P>Vf45gW6m`?BKT&VC3?pJvj_%TC1v%-*^S7pI4T#%u7v0hsh`VC*Ll4Z1@O1!$l zwY2}6#-vS`;nF@-sY%K#v3Zl>@Geq@v3BH-^}p!3PUo3|(t%%5W$qhU6Mh`{gd35c zC4#|7P;yoIiL(8e?&(@6shYpWBO~-?t?E}AE%ZxD3;!84^QoYgbE9;=hi91^zAD4A zU;N9bUuv}>%R6RWZuU16K^eVecPXCdG)!686PAiWI`3 zb)GVbr6uTSt6X+2jjQdouPI&Q#$PHf+u3|Wle!pNNcL0=ooY6n>6ndXNV`8xD2;V@ z@Liq^eRVBEL&MQI`>zEr+e_;u*M=^Le5OTzMMFUW(WL*aA4)R}ebCZ~MkK?r)}A!s zGAp=1*ZLsc{%mB#s)u$5=o!WcUF(Nw_X>&FGL#+v0+!8vMdEYpG)nJ&asojdq4yX$ z0z){8W3<}c7><+e1ns@p&st8Bg;}Z5YT@4!c+z_0zTv?57Lr@&v-k;Ee3w?>GGV1+ zj%>qso5RByoQ<(PoWuFp+oOCg66z(2>?g}*q(9*Bq|XnxrCtgY=BjH@mmLfyVL&{gDQf literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JacksonConfig$1.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JacksonConfig$1.class new file mode 100644 index 0000000000000000000000000000000000000000..841c18a9358e1bb8ddfe3d1f0289607e9cee2fec GIT binary patch literal 941 zcmah|U2hUW6g>mT!j@X3+G>j})ztzf9Z=sezMv)&>I+Scj{`ew2X}YK?ovPgl@Cf{ z6Muj|%6MlnF^zFM$;`QP_s+SW`}5cL9{`@9U51UijWz6AxNBk0MgjXaDH|3JEZnnE z!oG$3790jJR9=UnjQYNaV;M6PlQR`N9frN3(mehkJWobk%oQJq$@^G`eH~7f*CWek zDpbjHhJ$9dY3r1s(ATbH*chr%zF7og8J&o+Pnz0LPlSIeB4zG>lm!z6LnD*d=~58( zNH3y^e5F#ZOCcW3#JM1sFT;tiV-@vwsH*kIVwk;iA+6+BUar=S?N1nr)yXaD`=v{uzi^&&B;(*P4k#4o$ZO?Xrco?6>%b?kAcr;t445FBqI4V zm#gpxl*6%h7p4&PEJlWW)3oGicH5}DLsLQSi_qigeDut-b>X@rN$v90XBjb^H~%pk z{y*Na3SB;+G5Sli-+lSZOl#SOw5NmCS&BkZ&v zeFbYTk!x=ve}Td~gG*fdhT>ZitqYWl%37jqRA1;#4x4n==+6Oeql_KY$sfldZjz>w kdg|a7w&<3}Hk~=LyF*wY+g+@av_oHPLbFOMNcl+o4J66-VgLXD literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JacksonConfig.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JacksonConfig.class new file mode 100644 index 0000000000000000000000000000000000000000..e85d8d3ded0485574496591eb5915d18e4c6753f GIT binary patch literal 1426 zcmb7EYflqF6g|_|%3668=x?3(nKMV z#2?^~GTzy(yqeUs$#nOgxpU5a?fm}p^A~`1JhfpXYawSNhHM}DkhidCBZ(!0EZc;v zSl|{`EvzwsA^pmAr7qNj?@OOduY4#g!H#G&q-IzyR=het5Pl$at6t-WqVn1ITwWD{ zC@Z(h-(7OwU`TB$R|Q)P@ocWdkSKUn$uLkV%-z1dT-Opf-R*VGmHQiYAZ(ySE| z7{kPF(+yNzmXxok-P^9~1tRPp!(>N5@3nWNs#0&HF^D0C#U4g5jeZQ!2z8sF`87kl zp2lN5Nn-+&3{&0w83wP{mtn?0UCPKXd~xV}UK!@H-KX1pHT_yT%6xGlqe~&pXynkQAy?eN6z$(7??}QR(}c_r62t7^HVMp;ZPIy0h!IHT7f*1*C`3U= n3PYC^Qs)XO+zS;FZN~eU56>;&fng%%hxEKf%ak%nPx}1@KqYNJ literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JodaDateTimeProvider$JodaDateTimeConverter.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JodaDateTimeProvider$JodaDateTimeConverter.class new file mode 100644 index 0000000000000000000000000000000000000000..7113adb510aeab802c202ab92b6b7d3825276727 GIT binary patch literal 2119 zcmbVOYg5}s6g>;JWh+W?4Iv?IzzHfUqDeQEvr&0l{5xPu>6jNnrhS$wA8a|K^y z@FnI{%%h}WL4_h;D!7}*qTH8M+{3b5R#YUgDh-zutf?5rx?Jun_)5V;1&wKba;QIdb;s4kp{H+ghqro_S?HI~MOm|o z)ply)z9BnkELz!axo=5A8b)zZ!`H|&3?DP><)2|vO1mVUiR!X#H;o#X#p!7&C~J6( zO$A#To}j{T@fa&ez)IU_Qjcla!BcvjZ?#=7UlsWS-Zbj@Zo_COU{}F24c}l-!?*ZO z68xTFG`@^dzo=mXc?CZ(%>C~!XUHBi4hqRI9u56${uz=scU;PEKB`!=9HDOu*S1Vo zOi_D!ZJNMT_i%1ydF`j|^(Rl)D?1F=PSiNglxjKF7v7(az`;=0WteG(&7hOJwTlH0 zIy+wF6rdbMZrj4FGu(_0Nlb^Is5u#qOvjE;p>JSQr<{{-VS0x58^co6_lW_0*D#V* z*^CTVLRPVM#CrTK2`tG^_T)SC8?Mr4e+2Y>qYEWTI}IGIm*`2Sok?l&2<#6!3}B4b zlrPNUGM%+R0UuzTo|x=(TBY&t1U5*!KJyX-8?!GqULmpfCz3CbdIe?g2AFbrBvHDGYqX|u1CyAdljI%H zk*AMvoe*!3lxROtFilT1lOf4D+NDL3xD36ZLo~t(-_2;C(1T23h8(i&GQrG-Fn38u z!eojw|03JL`=_CTWCc)}9#jT5am$CA@N+HGHXlNzibN^*Hk?!sCq+0i%0b-rL--h< f`1>7Pq5U$+hw%U(LjE_H$Hu)ey8q{~oyhzLl`9yK literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JodaDateTimeProvider.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JodaDateTimeProvider.class new file mode 100644 index 0000000000000000000000000000000000000000..3bbb134bccb4519e9b608c22e4022f4529cbe2b4 GIT binary patch literal 1233 zcma)5+fGwK6kS6PR7$xD2zVD-TQE+HPg+7^FeaL+L>dzHX((eIZ0F#dDd3Y|;0O2@ z_#%lWet;ikT<5ff(`W)|diKnoz1Lp*_WRF|UjXjoP7YZtX0a5@LKejwg7|(ri&7S4 zfthFFj(V)Tu9=oz5AD8oUOR#OQ){(bZ>lKLk-*TZvBs|nWJ={NfnYt{(E{UDWA%%6 zYg@aT+HO)aRSoN^xuu+m?_Fi!-y32SswR}tfoe3glWNb%bm$Ei?wcL$Dh%DwKEreT$DJ2L*VT6>uCd%3;K!c^A&DPIRGW!aa)*}TuHVUKHWGif2*Phgy<*qlbZO;U0{agi1=z-P*U za+->j@5p?`$WH{Xk1=>8j;Ifa5+h~!EfBXz-%^6P-0|yT5`n*&B+fKuaVcRijXBKI scY)p=4zbl`T3w+g12KiGJPhC(FV~aP4Q31G%iW>OC4X)sHNzPG3plMw9smFU literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JodaLocalDateProvider$JodaLocalDateConverter.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JodaLocalDateProvider$JodaLocalDateConverter.class new file mode 100644 index 0000000000000000000000000000000000000000..f6d4a45638501606116058d1ba65b019eb7939b3 GIT binary patch literal 2133 zcmbtW`*RXk6#i}kEUaroNg7RB6I7~!sB3FqhCIwms|6E7j7^_&fm^yM?C$I?G5t&W zZ`l4o9Gz+VbN?vEb9Z5Z1TxNan7NO0&-u=G9(OPQy?OOFfIIj}#RNW6k;LZ;zEJRG z0$<^-iUs5qEUHlCp@OA2mgT&n;vQDzu%;q{b!oVwU_-??Hsx?%!Pg2NDtN>YTQp3= zTV@!Y%kD8m)~%{w7%Ld2c-(B1g|o}cb&{kCR)yF1xMRqDTNv?vHC%?tM^=^l=NsG; z>y~*a98Wk5+C$S6&U&4@t{}aof??_Ib6%?nN9VSo_t|Yb)}c`qPNq*9qU9OXUmUAZ z@*KmgG2EOh9PmS~*ST5K17SW}u$-EHKx}l+Xb3&zM8=7_3_ucOm^wp`(fJ2G(3?jU zVS9#U5=P8zJ5Ti}w0$$2FL}K3Tanv-cBoPeanI`EJB(a*5E}CsuJy*aRXz|Ek77I( zHp9r#ZCRr3Nn7~@M3|-liiwg@Gr8AvDE{JUBwuo*KX-M<)y0vgZ*zw?!s;vz&FHc$ zT*+!W6>;B?oiyE7-%izUNlF?faY4g3NHdIgIff-*xGJR`8qY*|)wb(Kh0FScS_%pp z9%DCa53Fzx?Z|0(ucfmRMTPGXvktu!7~ltVqe2| z_+B#nfdGe;QX1qm%p$GeM~3|W=y!%>mvvB1hMC^*Pgj8B&T~7E0!bl9pT!R z>52?>sn?|280##~t*vhSytDb_>1Jt{;Ywen2boeqr-s7&mn3j7)^XX+Hp5oX&z<@W z1P}Uqu*wNQc_X=P3$r@xbI{FTU){-YVs79?$_@=IbHX|K7N%!-zcZ{1y{7LPMzky& zlHpRD)j&I9J#$6^^YZ(hd6$mEWqJfAK;JofUZOP9t)uZG?R1)%l;)1X{-nhSrf7`$ z!X&0?tpy7B5Hqx6ve{{r#(xmlD9!r(ON}4B10?5JD?+1 zALAM!UMDHhexP8Ec62S;)})Bb@c!Oa=-eWEAt{kR?|M=0+Q4iF71P zA~*jpk}bS{5-Lbm0F?-#61a(5KGdwAYnir%HdHJ}lu~Em#6p}H;m9aQaoZ2!6MX8= dcW{a3X_AlQ0X~BKr?7zHy(#)Puz;ON;w>la9i{*P literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JodaLocalDateProvider.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/JodaLocalDateProvider.class new file mode 100644 index 0000000000000000000000000000000000000000..cbd65fbdfa0c6d56f1d3453e08ff7c334cb7757f GIT binary patch literal 1240 zcma)5>rN9v6#j-T)RuCUyLSa_i*aK7=MoZwG0{{d(2%IVhBDT{b{A)-fWLeKAHcW3 zKayzT1NczJZ?~oFMiWTWJu_#{`ObH4zyJLB1>hm>6_LlCJQicQl*e)rUVOisM>&s* zz|8Y-SJlFXYCTa-uZO{bwoY4t(z77YcD<#dNJj!gt0pjRO(0jUYzuhn;jR`KtC>K* z?6h~Zt*f0DHIoU}wz4L^_mrM{Z-}v6Gog$QRkNwBRQpC|VsF^+!0c-4Gj>zE6qRB%+uP@JVfnM=B6zQ4GpPVc@YQtdxWGbxnm`HJ3T35HeB!o3|3Ddz9rA2{1#~jjB?k)I>MKCJEx}wUTJ1s^xJU97w2ma|RXyCuVcxG(C;kQ%IY}Pf=W`3J{ Z{ck>8Y%^kI?MrplL6?<;9YzLrzW{GOU5Eex literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/PetApi.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/PetApi.class new file mode 100644 index 0000000000000000000000000000000000000000..d79031aa47a005c0da5be2d69453e29838c4c1d8 GIT binary patch literal 3755 zcmb_eYjYGu6upz(WZ4(*R}e4+luck66+|V7fslmALIN9tf{LBl&Zgt+%+x%RY+3#d ze}`5nT7K{c_@gXOch5d%vJoU!D&0NZcW$41?zwmNufPBJlZdX;dV$KcT%aeklBW_q zEzlSAr5v8g;kg{XlEc?>_(l#d?qk{-&__ltCjmg(JdS24yM}D+Xm}+y-7dP!kS+7`0Zpzsy!`>>RGS7PD8FFXVH) znGM%PV9<%dmq_od(ZG!cJ*o8Dv~YJA=k|`b%GFP+@l4;$A3lOO7mqMjuB`C|Z0) z1OnmTb{sck>R2+b<#C+D`A@>u&P9-oXayz6Nl$RO_xk?VJC`;33PSdQpPE)5vKi5NF zbawWTs9}$X3k}4bzDkP36Zbi?sF_S$YtYd|6nAH9v&*yKF~vFy*Ri?J{9ax2gVbaq zD>zpq!Duvba*wkH_d91fKzZ?<#By*=I8wU7opv3mjv({Jn5HNcwpkOw-qkx2#I9pj zdY)zO69w1yIz@LuGuXAgsh?Hy;$+=InEASBIsooNY*rfiz;_b7yg@A=DcQ#a0F?OLh3r!v(EqB^dOr4CRgu4fs<|D6x#)%sY zO2)JFM8vOK(GAMZ6@<}K=LBt!dopn(12AxYZjq29cR&@=is*!JV$3mY4 zP03o2pgWuwBF}bNV@}8x|6`@*`b~3V)eX>&c@T0Iv`x>Bn!*W8&v!QkN+mE`ksS(; z`JwrsvywjVvXCt}UKE!_x|{4FDZ@g#HE8~S!iT2PX%wa=V4=mDVBknEG({q$!0<7s zyOD2kO;Qokzz6h->@JX~>G7~c2kB6b8YSYiR-*lMAVgR!F^?-|2v9an0yKPKb>-~*@%Bm&^i2CDdQ&$+Ownqt31|VN9_>Z zpdqY?N|V2lG5I?U{Ysgi@jOIFFcvTqouVwgMMtHTwxwfq98Zujoy6H;tnX0%m)>_Ofz3jY#80e76n8)vZ2V&^QqjnxI%k6}KCo$=>1 z6wvtqo9}cVFJOn>g+*RMHRz%mk>nUy9dj0YMGdU_l7`dBE-7S_+N_JLNRxC44)H2o zrmAA1s4!+y7|#OZ71)^)R6y?yLU$&E!}qnpB&HAa@+u~c7>cA}MddTNOHer?0cTV~ zG?iC(q4GL?1b;m$KgL?8tU%Z46P)$Py@9hKno=ao0B+(r4&c*40UVY(xrKj3cpZ~Q zjS|`obuNv1Y8TYg|AKn@^-|`LW)ARp}~FPVlt4$P6iOjQYR3sbvrvMTR^>mLyzLmI?Zv+t-;0 zxgLm!w~>U!F=7Nhw&q>?$d%^K?V!g7Y)G#S)rLk&a~krAGpbs zG&zC)b{O%@3Y^y91%WyS=9U+ntW|8KDU%5eluX8K<9TScxIq@+Z+sRqS7?q$p=H)# zQqCu|&We-;s-twDfce)_{@3FAE=v`QJ0kCcFRei7g!a11;AQ2;a%M&}OI;$Q zp_x_#5p%r6eV1C1F>UF)8!OlFhFNwhGdH;ne-2foa^YXv;0 z5ZL@%s}gABuH#dkcY8d-p4}cv|v#2AlH;+RqEFt=~yGhC~1W literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/RestApplication.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/RestApplication.class new file mode 100644 index 0000000000000000000000000000000000000000..ccb5a878805502ef820a16f5b5cc38b872706b62 GIT binary patch literal 401 zcmaKozfQw25XL{Z`2%U7P`V%if(;n(zz9OBkeDKb3d-&Vt38y)QS7w5784Q!55Pkq zE)he-fF*yv`|kWZ%U|Cgp8zf~j?l+$h*5|=f#8}7ayJ6~)3a2-yEV^RV3<&$@9X7E zS5In|volIert(x()a1XW=N4oIjuSG{uGM_5E2&D7Q*GU(EOW|~BU4-nM31JfGJQu4 zYy78v@uF5rV1HT{j+QzlOFUyz6vnmpdBkDT^t{Tom6eqp_JeW@=KCv^*Nhf2h6i8Z z=>I1P9CU%1sdSf$6ZH6(n#Ih9$Qp1a+Z^!E-yz=E=pkec*ak-%tZ^Ir*hJLU2d&1~ N;&Z^YZQetRogWxbV7~wW literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/StoreApi.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/StoreApi.class new file mode 100644 index 0000000000000000000000000000000000000000..3ec261898f7fde3a02a36e4c3b6300ce4074f385 GIT binary patch literal 2045 zcmb_dYi|=r6g}fOF?JS`P)MLaNa)KBlr2yw5MCiTEs~X_I7&bC(_}q06Rmfx-E~M* z@t>$v9^wN(fFFf8GwV%kr&iU1EX~f`xpVHh=iV8=|M2!5fNNMOp@a)3;V|4_M1fLu*Hi68Ge`kT%<)MlNOVhW>R3~Nr633s zX}1MV^Z`Dq)~Xv-5=-f1nXSv@DUG8$((h2uN!QYL|Ln4VE->8(vmS+wj;CUtnUL+a zuRR;i-EH|i-D}y7!+=@!6I_>(Y*F~AkLgT*2vV|sjPYgPjx9qbzkt(J$>U&01#F)^ zf%|C{v&{ZS&8GUI{aoE3gOaNcLYRoQXCCgE%C7bHO)dNkT{CGJq>X3+NucdZFYDCb z%Dqk9;;ryqOX!pPHNO=$DB`JM_=g&2t#0HQOB;qX>tQGI)QUFO@@RIWFPqjkUa`62 z4jddU;Gu(MJaSONcmY)hU*Lp;Z}FXj1zdFSJuVB(40$5hWCyotZEIV32_KXJ=hZM- z2|Gb!|FQ_U11^6^kBqd62OpmmyFn$!S?eqf_Hnt=tIR*YTC)Q|vg6%%4fA{?i+nk$ zrAeN%QO>Ce$75XGMvgPUS$GYx@CLb;82O9q940uH_ytZOkJFemUa2pph-NS;Blir> zFBsvECl>z3$i+*qkbl8diZW(T&0B=I)T@hNBAmpu-7jH=k#dX#V)7p13}>_SKg;hq zT4rOM$DEn`j$DlS7#Hvr_l}zszD^xZ^79RC!c@1*?JiMG9!1OT6-EcCRV=mX)M=ku z(Guc=$D;>?&X7=MdQ-)FrK0j{okaV}7)CAE&h|@%4{TlGGFc literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/StoreApiService.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/StoreApiService.class new file mode 100644 index 0000000000000000000000000000000000000000..97dc7ec75179175addd5688be834d14a52624c8b GIT binary patch literal 802 zcmb`F&rTaL5XL_zo1{%s5(xb-Rd5SE)CZ11pcWMgX_cr=MbFOeXmPaIE3Xrh$Kq6p zLm!|Ig*v-Xh*GJSum@}A=kb2_eDnL}`WJwGylbM0R}H*w;Eh22KpX831**NhGlAgP z#w5@VwV}cEVodJ48mCOQLK~^{OgUZTcQEkhIv3apwUzm$N)mEXWm=BBb@VCIBXTnx zQD5L$OeuL9x|p26*IqbLGbK}H5-xVyB>j@io;m-r!JxsUD&$4V%5jOmlgul1m6GORe{cfiNo=PBG03+a%N!t ziJhAG-ke|;6`sH1tAXdOT1UytFdCofl a?`$w>qr=fM*~Hcg>0*1CaQvcFd-(^X?%Xv1 literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/StringUtil.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/StringUtil.class new file mode 100644 index 0000000000000000000000000000000000000000..ef5d2e2e15f40b6cee62ad781ee8dde69cfd066d GIT binary patch literal 1220 zcma)5O-~b16g`ibX`z-63oTSY1p)g(DORlDC<{qUNB|coMqNG1qz=}ZI-O$N`zLhC z#tjSHK%za$hLyC+vm%tRL4f-J2_ z&sK3Gsrygtia`H@?Pe=4WU**@Sy{HT%f4qj#rwWpGTB*h9bei`WxnXRo;4>c9G6Hu zURakKGFy^Pu~Ba}XOfRdtm1nLzp0#TrRR+Zbe}SdFH4rgmttO^#inDhSiYp)kfkaq zv@iRz@N`j@>tce41(9Rdx@$WEGylo&G*-eEXscLd=}F%ub&W)Lx>a8w-qdirYM0h5 z&*T*egqGc^SFrBbYUQ0LYn)Kx!wBIFNrrj7Qvwj^{d*^kVPRZDK8)*_CgMNuMxg7Y z|L*F#RUpCNQb+JiSfdTq4=!a+x zVo-5)56~a(!dS|rwA>B?4|FAPU=y)S znqi76Rkp6?Yi0+*ZMGi?8YU@lw8p)MaES{WA+b?VkHFkob;B5MyGW6#|!;Z$aWG><$D~ literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/UserApi.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/UserApi.class new file mode 100644 index 0000000000000000000000000000000000000000..0d8e9d98a7f91aa8e2ae4e29d002c5d46a3ef9d3 GIT binary patch literal 3324 zcmcIlX;T|V5Pd5Ngrp^4f-yM32Im57vvKSkHed&1VUs9a0vyN5hh;SpLy2A09vqd* ze@dznlFEntfc&Ubx@UFlE|RH&N~x+fJJZws`t>pY{QKA60Pf?5Jo>Sc$5;3|2OXt6 zzQHPsH5ThEHdt)3D6`mNv7N? zKC7}Ryt-q197JZsV4j&U~xw5RF*JiK_jHJ z#U`~uf@J2h!SO&uo42X7xJjFhvC#;oX4+Mw?7PygUOEYV0ri|sh0-idBWhj4aEz8` z#ZqyrNO2X6pPCnc=8lRLHHEHw>G%$>b-aav zEWX!q4Wl|f!jz7WS$u-~Iv%o^!@Q0!v8ZDSRMzcJJ!>?F+Z+U~xvh?t3l?yBQ2 zJAqwk4O$Je36&pB%XeHUyu{THPCFOa4m-I)0e>DzZsk@l5@n%NRWv=YpjY>;|?s3HILq3-;c*V5wCoA02a?P3HJv z7qAcTX^h!6kDO!X@3S_4pLc>Z#AW(LNbm#t3$sog+zne_65Ha1u|2vFHX1AqY-Re- zkc~pv8+T8UOM+Wb;ATR#R&x~4B(8u3qL2%|pxPuIDa9s*5txrVQ8=C^-k!86Y%CXA zY|<2LAYLF>>@24cpCX^cyP@!ogi0;EIfX6SCLORn?Sw6>wNTI)ZlE~JTOo<#)w#U! iczH8##dFd-%)GTquQ_s3Sf+a^JXa&2Kq`&)fAJrFT*)H< literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/UserApiService.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/UserApiService.class new file mode 100644 index 0000000000000000000000000000000000000000..efc4546a763820a72805122a36eb123b1710077f GIT binary patch literal 1292 zcmb_cO>fgc5PjP^2{A1#4IeE~+QKE}z#e)`Ra7b}Az7)w5Y8KC=+s;i*`*vq4vyZ=xF!vgPSOL>*yNex87i?W>ew&r_PG*CGt1;UZD|dn(OoqI_wt zR3KXnZeXOaGRGM@%~|~c5k`eY%exd;V#u#kZc-j-Be^ew%qTlL)3KF9+d7(&lgaanu$A3cDWZP{rd{ z4i@q8`}DviMx7N-FnkzOE>l5S(wo-l?IYgtcc#+svvPf%nLwVayww_a+vk1W6>D%% zVc4CapKmmV&0Ke!;EV3145-leOD1h?&vh2}roG}EV1<5!eAGcd04g+B>BMPev{v5z z1iPWl3TiZ03$TF)v|k%5kf94W3=a!rog@xP9ucyEO|qLJcwF4GMUuus$rC&!>!}Ut aKAS_HW4olYgBK;_C0@-UwBIe*U;hIw9d7pk literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/factories/PetApiServiceFactory.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/factories/PetApiServiceFactory.class new file mode 100644 index 0000000000000000000000000000000000000000..959aad11df0fe97ee961ce0d0e67ff0b3813474d GIT binary patch literal 593 zcmaJ;%}T>S7@SSgq)Ag-t5sV>6cJiMbMR;pL?{SFg-XHWHm-3?+LR=%_*VWL3JN}e z4<&wSi?lhohuv>xzuB4H{r>s*0&s$=1s!D*8EhEXw4kDFV9P*-!H7gSmabsfY01Ee zp19|U(BVVr+=%#mDBH9BQwF^u2QofmP;2!LgLV|`SHg+KIS$|ST+n~84glUAp1jqIoKsJ3`eQH|8K!iOpF|#4?O3(+Y@e#J^Bot zK8K;2SW~4^O-X3Z5prl{v}O(`V6RjtuxZw(q=7uu_N)ObC=fDH#40g~cze17Xm3zn k2(txkp3F*rHv4pLGIF0#?|*Ae|C}@5Kb^1d_fG&Ps94ZZHj%-afprTi$_6$JY%&;;2uIQt3_DF3 zIME~bJP|s4Ae~kmgyMW4ThoqH2E8u(GCpHatF<+?*%kxf_PPYAt=ny!dA|TX+4LS*sNc zLsv9pVr?tcI)fZ_`H0&vVc9T{WjILv4A~p_X@i%fF*vEt|L((3Okj@B`<`>%=?XW- zEk literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/factories/UserApiServiceFactory.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/factories/UserApiServiceFactory.class new file mode 100644 index 0000000000000000000000000000000000000000..df26a6dc422fcca15f8aac140208312cd721f000 GIT binary patch literal 600 zcmah`O-sW-5PjRENt33wR_jL*qzKY_XatWIL4<-(^iVB$+{QI-Nt=?S75|kVhk}AX zz#k<}+8{L^+{5m?H#7U*?tFf|eE>K@)r5wMfh;z3Y?@F|(Xpjtn?VmnFqMvA*zHK) z4j;JdiooV$X53@v!ceO>(l`9^nQJ*-;?(T=lfV&e z8T+dKu1pk~13u*z444*l<@$!p++;& zXhvi%7Nz@90{z@lB7lR63%TZ;m$ph(C-39H1!%{%i9puQmU kM3^o07D%l8BeO^M#w-60u+@dH?_b literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/impl/PetApiServiceImpl.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/impl/PetApiServiceImpl.class new file mode 100644 index 0000000000000000000000000000000000000000..45937fc2b85b79632438d0530a5306241b2c92fc GIT binary patch literal 2914 zcmb_e?Q+vb6g_LpHa0FFX-Er&HiiIB_z zgl|g7;@c8xSk;&B3Ro-P7DIkjx>Bt%WUI?h8H^3j5)4Nh(iIP*PD=z&c*~)gxrW!~ z&Ql&p{hUl1>ZJ@BE;giRhOfA7i@@Z*G-bzk%pZli?aQVJc4S-BX{JVK+_Gq%;iu}L zO@}~ZgIZ&o@9GLlb#O~*9pCS z&$<#ry6O6T?JV`^?yX%NrN2f6EjFd?67hgE*iJJaYZLpKA=gLtQ}%@0lrTfZw~{Rs zWpcf%3(-$vs^~Mo79-!{iKLG2jenNv<(3z87{Y_f?7a%laCwI^Uy6LkD*c z!wYP4yXA$nO+}~#54)!CM7DH8(+|8IX$jiCoybwr=YcXG^hY|BO|E#|^`k_0>3uUp z3UgAsWw`sE_)*+VFACbC7xw~Hf4HMv)!nL$5)Kz|yNq?*VW^~fAzAeM(*qHP+@=iX zJKUD-iniP;;BFZ|pkBs3+-EqSG9TYc8BV9x4RK>wOuc^SsVy&Zt-U_RaB`&8_IWa7 zykDqS_Mg`y=}<)(%5~Qj!G^=bP|(J>Qk~L_mr~ZWmlvw_(M_&To#lyC(q1Tc!c}w} zFx(p45RY2hqCNF+NP8kaxt0!$;mou+YN+54ou&F$1W5vi=~|{IlkSY}xs^9yztbRt z59peYCr{uAjmy0SIErKR#BdyQv`QO4Mve|-VEzwe{zCRyVa|Ai+-u}tqwpKe5BfS4 z`&#U+PkfOjKBT`UFpm>hAd8P^Y|zZd^goGH3DR>yG7gBe7$dFp)(;?kg3}4o8GK59 z`gcThi7q>ksS6XLtKjTVbmz!#FQ4;Nk|lb#AMbg3m%#;^yZBBVE>GZ4 zox-6yk;5`plH9*dm9J0Wu%G+UDqnghJ>8suG)+&JaV3fA1=TjE6>tFMuEj_FS=IDm03BM670Gpt_8<+O-7zZPdIOqmQcjb6ii9rE@!8%^CWJ)|$G3O}dw8eT}}Q HH;m$c{Mfce literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/impl/StoreApiServiceImpl.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/impl/StoreApiServiceImpl.class new file mode 100644 index 0000000000000000000000000000000000000000..e6ec58a2ea95fd7691a7f394bce5226f8fcb8663 GIT binary patch literal 1730 zcmb_dZBG+H5Pr5TJ!nrsKrAXq5u`=oe1EIaNF%XHg-8v?kJszwT)f^kcULI?O22^7 z#2?^~GR|IGQV!av*yQ$hCp*tPGxJRE=dW)+0Ng_%g%K>Iu!tKPmWGi_A&z_s%ebkQ zTN+k0tTH5@30DNq8REJ8HbbH)Yn)-UEL^_PtXH}B&a66Q881uAbhb@TsB_1d2tEp* zAzv2K@b^sH=AL0Tgdyq;$EXC-<1ZVc!o6K#@e>{D_h)eNZ02SL6Zu*R8yQ!fKzJz zaWsbclW@_945?Qwi#Gy6K{OZ)y3K=#}hndSc z@ekT~;t)dzNFG4@O!i)^Oo%ntzTd$jPfXCG2u$K4rpV(G?Gt3l&@+w8ok*`KQtS^S z&4!T_mO^c_?&7m!_*ZbXga0>~EcDG}rf(**xb_c`mit7SqjsKNvl!+n>lm)nw+hr| MMjxd`+)a%92JQ^2NB{r; literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/impl/UserApiServiceImpl.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/api/impl/UserApiServiceImpl.class new file mode 100644 index 0000000000000000000000000000000000000000..9fa2e01da72230732c38bab843a04b548b2fcf41 GIT binary patch literal 2707 zcmb_eYg5xe6g}G(N<$Sy1bhRc78HWwy9ffx$V|o2DvmRLNz2rcaxT;!2(h{lh@|nbME8pO@ICV{u96)RuyERDwxHsG;a4`PC*iP6x_u*Xi+o4n?(ZJ917mQ=|q*BFMQaYf)MKerW+VSGPe zoRgw|wySg76GW57BZjlhY}|Lk+gx%St+r;`zQ^z~7a*#>Cn{<|xL(Iu^~V7jhFZH) zvm2cW>(eBkZ&Qi|s#c~b3{&%bhuXXukGj3%;RQRmNh7i1$r{ybr;rkOLnW{3AyqWf zP>Y@;Orzsc_V^?~Q>zBTmSR(*=nN+e?n#X<*VY50OvN&U8LC!q7f%aDr`74PHP_v- zoHD77$SpsJhhZ^f?_hH%zFpqif{lJh({Ce{PBT)9mhb3%RmgENENj_19cE-7vQW^Q zMm~#qEHaG61`ByKw)qS0x|%^y-BryH`k3^5lEzXN%UH?cDV{N0i@CR%OAHrdhON;t zjKX!GO{pKKdS9EGaKO^@d4p0Gj@zbtKW{lF<3N1}MTN-{Aj=0SPnF@_%c zG|68EByRN5IZIC}T^U`wroMuGrkey#(78KUJdKldpA8MrhkkluIE4YSlFqNuMc+4I z@Ea08kbIvWNPR`u7j%C?`V*~3u|@){(a^q*MV>fKhYVm4XD~z_!*rjbl@U75;vCsa zrt%?7$w<_f+A^JQVY)!LVQw;ti}bF^eTm*BaGBOdj}^nje~n=bTQbZeH0bl3z()t`-qB~Iprw3ghUJUl#KM0wkW3RoX?3f zusVWr=L1fuO^F)rf(Cw6GYmIyvyT5SIV~TWliVYJ&nbcFK&dlWpsPZCy-R;SAEz>Z E09-A1Y5)KL literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/model/Category.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/model/Category.class new file mode 100644 index 0000000000000000000000000000000000000000..88f5b8a208b4aa7524f48028a41217f4fbcded93 GIT binary patch literal 2122 zcmah}U31%16kJ)h$@*q2S=8r7mehff>aXj)E)&NiHx9 zKY~ZzfxhIS%s|p<2Zkq@;Wsf1dnF~2({xD2lI}V8?Ag0}q`&`t@;iX5_%sUzvpq;* zPF&{2azVjj7T2+)U|HPXQE(%R9?WL&uDHLKK{dK`nz-5napRrl{uqRu&)N zwuFS)lrUJ^)*tAarQ0p7=Gd)@gru#v4GFnertZ6DkW0^)w&~AFkS8YBxpm2Da_d0N zw2ie+d(&|5=$lqh>@;+1U3X2fj)F;l%k(6it(lJIeW|xvhO4y+U};ObZ?qiuYj#hy z48KZZxrxabfr#4Z?T+o6ZDZZ^OyVxuw&Ux*>DYwTY7M8YeWrW9;eOS&v~9idx#!rL zez-|n;rf>A>=>>ew0fXh9gO~Vy3Z4>>N|m&90F#ybZ;xPfPPdN@SU(N z-SsvljK&TWCa!l(t7*6tdeC>OcGIwZqj^v>9_N2R?->ZzX6sJJZ5TI9;dS4EdzZy1 zsW^*sDo$fW#VF3GsN)WaJlApsAF7xFRT?~+#IU!DySOLe^ijO)3=)PKmhO4QgZ{;D zvMM$}Ju^lAna$~CyyI0=P``zPe-V_M(YF>JmCQ*p@f^p*H~ z(Itp5^|)4?U)R{N^ahPuj)N_2>295KY1j>;5@XR7f3{TxFY()=@avS|KV1%ZM8T*<*oNj^kU-X(+_ zsC|Y4fJaa9@Cqpx*ldK>oX3@bR55IKDAzo5R{}B@@G31$;5F9wA*J+7|6okP)dj)$ zb-WQVUf?tcmkX)iplry3T74raIMp8`BZ$OpzZMg>5H*#=dmW*DM>@jg>QnS=>?2z% z=X&>`-Yw_)cq<9?ef0A&HxPygqp;i^9tyI1$Q`*GDp5fOGZ^4Fjbk3OSimypUJPTseMDG+jMOgx0{&Vpp4@W z@dqeh`T-p+jE;_14>7G_M$Wf1lnoe|)KQW1td83T7vItGk&e4MsygOm;A0*05`go9 zfki9{sI~fTWc0(+g|+!fb% z!>a7zror$eY z0(e$MjuQ>{t`juse&EQQ>rNP>_YaSxNVORc-fj7zyXnlkfy*QlzF!aR(B*yst6ZyZ zTA$lN=rq6H^sEPV?Teu9TlVfEYlilnX1(Dw!$-`QeQ0|vGS`BgyaU7gq?MVVykcTV4$HVFaPp;k z(eR0hi}+Nax2^4%kcrQ5U*JgF-*GUWx#rnHP}obV@Qq<&1vbeS_$RN<<${T;c%LmW z60f{7mkX@5T#{T8X^U@7jN?2nh~M%&iYvmz7916tE* zcy^6_y`Bb}+OV5dO4;#i&UlJNhyVFh<2cEena+2jf{YXcpE6Pp(M(BjJ_sST!m&VW zhH=69aPcWbQT&38927aIKhmEeB9Mp5@gT=896&e!d+-`PX1o`taGI9D8Jy*g0-r5f z5;t4?8JQ=1h=FpEb0D=jn`}PEHImveKO+IT3lve}SYY5Pw`Vx#iX}2^^D-juAhJBE z*%irbY+q*T zUS^{&XEsE%*Y{_Z>SbIri_FGez)b2yGP}rc*0}yZv33eiTPc=)Kvvx<{e|x0HnJst zzDHKsD*cIEMYejBpJ&j%!zo${EhV!0X{of-$kNouP?aqLDv`X7u~EQVr1Um4yvsIT z!co2fhHxdKScsGFwzYycxmqwj#vP|g?j7#$LRRY*|KcJcu1Wrva5>?BlggE99LoI; zeMyl-t4pe6SY46|Rjbc%K=MhebShQxpQyeUp^5!Bu>;I9}R)4YJUc-hK$4;9Q|7WZ&F z)y|cKug;$?SGa~>Q1acIFkeiV_m%!eF5mxzZ5+t==8tUSs7w|&rJFObz{)K$?Q#md VZ?_SBNh4(W6$p*^*Z7#h#Q)c`*(3k} literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/model/Order$StatusEnum.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/model/Order$StatusEnum.class new file mode 100644 index 0000000000000000000000000000000000000000..464b6e1b6961858c8c816e207222e15998c45567 GIT binary patch literal 1570 zcma)7TT|0e5dKb^Hfe}};Ue{lh}ae|-tYz@6$%!kFjPCk_!LU4!8Bpg6#ZF>*U{1O z*&pS&n+B=MjN~C_chBy(-(J%G`1$!8fU9_zfrM)+rf^-xDH%6a^x+o2Zu8BwiW%Hd z(63-tCH*cN=M)SnD6)7@K~}*$iwiPJ0_jz=IA2;2P%EJowwfic)ez9io@WR1uGMVX zO@VW!;~UMFR=sWqM#JB2#h{GRFZUrMx4fS`NKs>^F&yn$8_vws zphjDCk@rHwNnYnu8Wyo6}kimoLQD-{m6@5a} z9leS-zjI!kjsZL4Vz)B4x_6)1-oVE?ePc?Uka76jW%|zh=yxMEm*qA9bW-`zNmbKL zf;$KF9_RkECo(vVGY}XiZG=vK)Ln=VNPI`~HEA>(dZ(kiW8^=AbFu#v;c-M)AEd%3 zq`pJqfW#jGqh!(AZaB}$>7E8f?_rYfBT1ymqcDE*BhrP*_mJO2KAg0hZb9_YAJO#|TBIJ4^zKOQiPYYdel$|`^jGpu?n0}qOS|Z)tfzLN sSKdN!k?qdvQ3Hn1Lxr5CxlB@Fd*xil74l2aKfxfKDn&@Rfq}W~FOy_ntN;K2 literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/model/Order.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/model/Order.class new file mode 100644 index 0000000000000000000000000000000000000000..4e5b5a3c6c262e7c45507cc8fe51466f2b4693cf GIT binary patch literal 3712 zcma)8S##4?6#nE@F(L$qokBy|f(^Jp=|Wfn0ZPEErh%}ODvn4LY{^(MVJTfG-6+uQ ziRm(Zp?%?j&Xi@^X{S%^On*avO55poWW|<^Gr=>ySLfV&zw_ODzI&v<{`>hi02^>S z0S#x`kiZ+#=+X>Hlb2>V0Rv~{X+-9Y#$hHfhI4Tgq%X!{CD4vDDs1UXD$XZ3xvaub z;i{;pxS(QO#YGjDWX5F`R|JXun+aUSTXDRtAdz!*x8m%wDn$iazhxQazJl&JhNB>4 z4lC%$j_DWlOhLCsGFjUi=}{0Z8E!v^)bkbHa!vP=g3iFKe#Yk(yVD`oN;}Gt20G=*eGNUmWPe-9H17s z^2K5yGp6UyIkuJ2Ym+j2X&)-vC8O+Kl28})LWNADPBmm_cXLG9ph`lA{ETp-|2U1_ z!?pa(ZXjFF&@?Wn&zcj&pO_>e1T0s}2DK! zf6a>Sr&uz1!!N2u3lH5|soBms*V)O~>oogF-`gF|CR-tAd+LV;q7xa!x& zA7UPDk+Xv7+(7=^e!b+0jyIc09MzrCs!}Q2emYz`=ax-tM8T|v?N5~mcFh3Bd zIx*O-XpyaILJ=uof8&OR-GD za%omzrG{>-(vU(rj(0S?i)$KIV~vLQa9zQi)>)0?eGLcj0ckcf((oZZQZTpfZ`hfF z_Pms+E{|2$m4t?maf2t;#h*F6sY}C2oMIXh6t4KZa%^KUS~bT+krIa{GaOG| zweg91BM#-NhGRI+s$x|N1!goM3*z`h!%f^$u%z{70~Jic%=*53St*EnH~rvQ9#{8? zU_vH@SH0$5X=dGP5QOJsx~sSq*JRoB#7K#*Y?1F43ZQ5sB0vd$vc)*{7}HB7!(!E6 z6NL2j5@g(vD^X#6yVW7?wrrFNdY;PK83gMa)yp|vF2l+jJpmRC{wG8AU~#+0TR`f@b?Xtx>L1*sn-Ef|61mAS6v#nus(}X=17H zW5gdo{n5i&$96H|Y^NiF8E8WXU$!&Ri6rLnPAp=)^&Hiz$b9d=Kuf_!yvS%0RiaDO zXzC|~?(-o80gZXi^?}7vfALEkoyO6Z`G3XXjumV|4_iUo%H<(ho=TH{onylDZbX!E zh0mPoEFV(B$;k{WvWyr6(X z@-BJV!1(;otk@$>B2Htv#tj+ zwxL$=_}cVC{Y$P=qVE2J_Q6N|GEXNv9%AOPbTY{vBx-EdzdPsJOv8f0JK6w^-e7<0wAGIedm| z_#Aie1-`?V0e#)|4?x8?7-TZ|-6o$W{!twFkD@dECt}HG?la<|;3S99O) s<@PHk=xgTw+W>fHE#IAfz9q|HC~-zP&BqX4$8+oxjMv3>N$>ps0hXEEc>n+a literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/model/Pet$StatusEnum.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/model/Pet$StatusEnum.class new file mode 100644 index 0000000000000000000000000000000000000000..259e818d7c2fe0e1280c3e8a3573873c3fa2d09e GIT binary patch literal 1548 zcma)6Yg5xu5Iwg|n>0kg@X(?tV#T(A@r5rCseo9Gz!>ce@NV6_i-Ktstvlk;Nq$%L18FrBpUcw@s2&E3%_zxa>FU0$SPkoyMYP zhoKV+oHE_O2w&Q@n$s}q!ItA0>rRy0_m~xs*Oyn9%Bw2^lC@?o38Y@wUegiK%^mxN zZFsg{GpwlL`Zc!BRZ8aLWlLcE$pOIAF%~h&`J~LP*>f+rwCJKHK-fgb{IL0 zS9Qr)YkuOJGTTw0_Mmq* ziGvZ`aF^zmxxW4Tync0gqSLlbs1vdsW#Izd=mGjeq!zNAK0qtw9j}x#og}zuK>r9A zo-L8V37mw$7-{3Q@}urTd_ZCk$=9UOy{B(FJ{uwXahz`3&k!Da^b9~MenM&w5<4XR zaLCb))-uBx4o>IPAo`Axd>2U~O%}z;;~$YOPQQozCbr?Ay>!a7(iE}>IeLL%@?^w( zoDfT#QW6E)O`u4TCNb4UzepMrREqB)e}eKiyF!fEVyCnbr^%j^J;#19aGvBblAlqr z_*wY^X+zH>b@d~9-a?DjLz3Pbt9`NBpVAMD_hOn7`jyTFTqL^${qu)uRmnrbRSYd;e*ywgR`37- literal 0 HcmV?d00001 diff --git a/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/model/Pet.class b/samples/server/petstore/jaxrs-resteasy/joda/build/classes/main/io/swagger/model/Pet.class new file mode 100644 index 0000000000000000000000000000000000000000..fdb8183739fd4bbc79e81ee1028adf22a9dfbb24 GIT binary patch literal 4000 zcmai0S##S|6#nE*vZExe(*z2%1X@aJ(;6siQ_>|ANO4QR-NLRo!cpr;t}M3=W#4yb zfrmbn;id4>2bh7Dfq~%(X7~;K6kzy{B-`>5NXGZ-oO|y%-#zC$NBZNRAAbR`4d*f# zL?w*@EXrWXa7@MV43dGmDw-u3Y}x9lsAX^hu8O+Mo{B~W!>DLDDf1}}r!(BVtl@bL zXEeN^;YAHEX?R(~E3)HN4X=qM&aY?i2HsThmV!*lGrUH9uiaQupwHO0=}uRTdflum zh*=8?RuzvKCyheYuq%b4V^<~>Xl27QD~`LY;M$_)6zZppO2u>wOU{B>Elh`t+?cS9 zB~w8*Vxr`^mTx3oTXa0~2 z#wL1p_dq;oR3_y_s_tK2!419Fm^HnP?byiX9hPl*Qwrh}n-A05G;gb5xMZAXD2pCE*Hjo?PCqwvzE-mR^6h> z-L~xzx8>NhSSXgArNVPY-80?OOVz?LqkO#X*af4tsj!dotn1WF*IO1>Cyi=@IFt3j z^dM$Qs#+< zAw}GgsYm9InPqQs^WzE>r?UfuORS@s=_webzw+_@M$NAjb~*N!MWenLloxAlh6>LK z;>ey>oLKznUd3R%jN@?)Un3P zZk0spxE(T?-aTG&3WqYO3@C8JFJGXmEFU)rQ%~9pWv*5 z>-$|Y(m;ujZ1i6(j9ruce$VlhjQ;9&M1w$(RL$D*H-@Q;WG>VQ%@RTyR_VkOeb&jL zlu@ghHY2ko%7!4alhLNz5o{q;cOKZkT(ed+$|TACQDf7KhFfAen0DEmjG*Yy_qv+I z4SaDA^0Od?n9z(*F=3iNlWhJ>WKNaTJ(a_$OJ-$QLbYO<96)^~Cz$MsM-4kJOsX=E{k5&o~Cew47b;4ZG} zfeYM?dnhTm7uyL(+!rW``(*Ar#J=G}3}Q6pEANOLPKJjkxjMkr9sJ!_XDAd*VJAni zHpSyHIiAb&B5jNrUwb#do9^*Vjs?3ylj2T7DoA!=H`lt6#k-O1{C{MdXl)Os`yq>W zBiln{(<>m8Bnz_pv9}MhL^ra1|Bq~f)*irv{g5TPk?kk411lgC+6l6UFhde`$4u=; zcBl`sfUEn^mDL=rK8#{`-&xMBtg3=A?vo_Q>QN$`TLEEE5c_!|U|@>PcMEL?ZV&M3 zk-pfqZtTylh<&yj`&L?gv_E#O8+)197goR?6mJy!R=-*T?2pk)2?zTyBHfL>+6Q}A zylm)r=GqFFrNIazj^Jo$>rWz#GybP?`LB>nT+083q16v^)m+N;zScG%_TU+OLNlR5~aBmC$%)Ea?(n38mDyW z2Mh_yXy1D)lCf>ArpZ@p=<07`m4dkV6NcHJR~7Tw)t8YylFyEC%F%4>3fAy3I~u6R zLUp`TeO0JVbgHio)oQ1DZK&2d)z^gTbf@}Ss*fI-FrewrwG2|yZY-r+86dfdNnISfIL-he z{sd0`UYAe-lES&vsjJ(RCHKMK$ktGI$4f zB_yn-grVB5@zBt1!)fU?*J)KGBpst|O31}Bb>FjsTzb}WEPq~tJUO+=t;=qcTL){F zW3G4G+orc+Y}-Mx+c4}+!?VOX3MTy>t0SRMvs}INsnKegp57*at#25jajIqdRdUKr zPQ`jhtj6wk9p7r3n^wmn%jrssbyT0J!EE_tRpVaxpF>5k%f3JI+TVhs0CI+jCWdAMOD4iM!9MB4nMYuM!2 zv*GskuG#P_Q}0QT++L}p6czT3mV|-2&%>-4dx3_uUV^$~baq1F=|YtO-wiv`)6TYp zvDjI{#Lcc{H%*TRAM)L*(=;95Y#!B2#Hk-Kdjf*BnY!Ec8s;raIIPmMt73LEJcXw< zoX4n!F91em! z^0|Od*SBmvFDabjz)wCnBTwVf#@?RkaN?)qkm12A@pqs{3*q8v znK-MSxn~;ED=jQRk!`@|OSnuJ0jF~%;8LX@ zk$A+11O!Mr2#&;xQ&I6av;E9I&)-CcRA~?YHjS$h);DA*G+ro` zze6gyU;YEx(gBiX{=P*@-Y@@-)S3|V3V)B0{u(1($y~|7N=bf?q`XfEIZ*oo1ptqp z;^7riF0k1st+|M60jXlx?pUq`=B@=~F5yL5n!rn}A3#dUN`GTq!SzMK_+`8jF<#^} z2$u_~U!iQtf?9nmDLB<1Lls2gw%>?}TZo!U;=PX0z9Jpra`hMVZ5<+0E9d$TpxrCy z26!t8^h0F%m>UekLs3}n4WA3L2gsec8!AzOidhVDoF=etXQ7C!%mQ<B} zC|A@fUbK8rUwFVO1xicHC#ljZU-)Nyuq?mR-AOtjQ!`UJx6irvp8LD!o_jj^^S_^e z1F#OaqG-qI2-@(9h%+J#5u+lqBF03RBF@U-aSanuSU9KQytFwD`6xPZT8AxdLC0j2 zgD>bP>L}?b>!|3ssN<53%Q~*;cvZ$-)$yA6V|y)%*YSpefHkI|Yvi19(MaVCdptE# zu*U}#=#`RLw2i!}Anxl;my4FuA319kOXdB}06k|^A5}ANSUFCgG)kpQg(97+lM@A- zZldBbT{g;mThmFyk zLsZBbxuZtW65TU~$`ckn&l<4`snR85oGw#&I>@DtaAA5^$IbFEf#UrGzSX_`&N)=E z%U0ezYLzVd+-}k1fLOyktn>34;^SRVHBYVD7uv12DP--vrgT=z6Su9_X zr7jw|3PIJ9yJUBN^NO;+HUbHo8|Ik}ShYa6(M5ewkKd6uMqI_{YIpraVw~htWucMU z8HvZbrn7ICcWCVJ9%aVC+7Zf(x+XIYx@W3Ohx^!0t8i9NxTj$|^)qhg6#uwh|BkA| zWJ_W5LdD22{0)0PFnZ3+mInt;C{PNGx#@K=Zz|+a&`y->`F+NulOVi8Ov?$QG~s3y zQ*4-qa>0!vZ$fEQ!5rT?xg9$yR&LD6pRRIY*d8;Ptz*?W%lzvk%HXk9W`7I3pjOv<$wj$t!T)vn}NS=6YE z(eQo@AK)fAnRi3N&!WseP_`jNxClD<--&K?VK!!9KH^wRZ8>IQ zEl0)Nh4|K7PffuFJj2BWLSO_!P5g+!Jw5~=&clvzo^P`1O@5ZWZR~xHpXW;qh=Pq6 zq!e#kI6WZK6G?8T&Kh;B3!q}5QKd!{EFptoJE$->QKdr9`<6l8Kig=}|AGOd~H(DY;p zdfU^QOlu}PLb9V%kV(l9vKLyC>CI%PrYB3%+i+_#y_xI`$&4w;q=*UGUPkrFyBTRF zv!*9oL2o12N4dJWYWOOgTQzbd%TGZjWmU-b<%nyL25xqJ4r1>E#zo2Ql+Lk+E!{|YGFrPLrtTmIoc9x zIyK$VdZh#yPFyV)e@Ht+y5`55nU&ApyE*l3>RnL~}{*`8T#G|%zO;YRaZ�? z=Xqwm(fpKWjx?I*(|nBiv!I^nYxzb6Zt^R^ExvU>C529Uf6W}h2zLDZ~^&p=$+khFM!?2M+nCk-s8%B@t*ji`&cXhZU%KY i8S)j6`D + 4.0.0 + io.swagger + swagger-jaxrs-resteasy-server + war + swagger-jaxrs-resteasy-server + 1.0.0 + + src/main/java + + + org.apache.maven.plugins + maven-war-plugin + 2.1.1 + + + maven-failsafe-plugin + 2.6 + + + + integration-test + verify + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 1.9.1 + + + add-source + generate-sources + + add-source + + + + + src/gen/java + + + + + + + + + + org.slf4j + slf4j-log4j12 + ${slf4j-version} + + + javax.servlet + servlet-api + ${servlet-api-version} + provided + + + + org.jboss.resteasy + resteasy-jaxrs + ${resteasy-version} + provided + + + org.jboss.resteasy + jaxrs-api + ${resteasy-version} + provided + + + org.jboss.resteasy + resteasy-validator-provider-11 + ${resteasy-version} + provided + + + org.jboss.resteasy + resteasy-multipart-provider + ${resteasy-version} + provided + + + org.jboss.resteasy + resteasy-jackson2-provider + ${resteasy-version} + + + javax.annotation + javax.annotation-api + 1.2 + provided + + + + com.fasterxml.jackson.datatype + jackson-datatype-joda + 2.4.1 + + + joda-time + joda-time + 2.7 + + + + junit + junit + ${junit-version} + test + + + org.testng + testng + 6.8.8 + test + + + junit + junit + + + snakeyaml + org.yaml + + + bsh + org.beanshell + + + + + + + sonatype-snapshots + https://oss.sonatype.org/content/repositories/snapshots + + true + + + + + 1.5.8 + 9.2.9.v20150224 + 3.0.11.Final + 1.6.3 + 4.8.1 + 2.5 + + \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-resteasy/joda/settings.gradle b/samples/server/petstore/jaxrs-resteasy/joda/settings.gradle new file mode 100644 index 00000000000..6392b5011e0 --- /dev/null +++ b/samples/server/petstore/jaxrs-resteasy/joda/settings.gradle @@ -0,0 +1 @@ +rootProject.name = "swagger-jaxrs-resteasy-server" \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiException.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiException.java new file mode 100644 index 00000000000..9614941b59f --- /dev/null +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiException.java @@ -0,0 +1,10 @@ +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 ApiException extends Exception{ + private int code; + public ApiException (int code, String msg) { + super(msg); + this.code = code; + } +} diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiOriginFilter.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiOriginFilter.java new file mode 100644 index 00000000000..e3ed722543c --- /dev/null +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiOriginFilter.java @@ -0,0 +1,22 @@ +package io.swagger.api; + +import java.io.IOException; + +import javax.servlet.*; +import javax.servlet.http.HttpServletResponse; + +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:16.906+08:00") +public class ApiOriginFilter implements javax.servlet.Filter { + public void doFilter(ServletRequest request, ServletResponse response, + FilterChain chain) throws IOException, ServletException { + HttpServletResponse res = (HttpServletResponse) response; + res.addHeader("Access-Control-Allow-Origin", "*"); + res.addHeader("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT"); + res.addHeader("Access-Control-Allow-Headers", "Content-Type"); + chain.doFilter(request, response); + } + + public void destroy() {} + + public void init(FilterConfig filterConfig) throws ServletException {} +} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiResponseMessage.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiResponseMessage.java new file mode 100644 index 00000000000..fcaebb85946 --- /dev/null +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/ApiResponseMessage.java @@ -0,0 +1,69 @@ +package io.swagger.api; + +import javax.xml.bind.annotation.XmlTransient; + +@javax.xml.bind.annotation.XmlRootElement +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:16.906+08:00") +public class ApiResponseMessage { + public static final int ERROR = 1; + public static final int WARNING = 2; + public static final int INFO = 3; + public static final int OK = 4; + public static final int TOO_BUSY = 5; + + int code; + String type; + String message; + + public ApiResponseMessage(){} + + public ApiResponseMessage(int code, String message){ + this.code = code; + switch(code){ + case ERROR: + setType("error"); + break; + case WARNING: + setType("warning"); + break; + case INFO: + setType("info"); + break; + case OK: + setType("ok"); + break; + case TOO_BUSY: + setType("too busy"); + break; + default: + setType("unknown"); + break; + } + this.message = message; + } + + @XmlTransient + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } +} diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JacksonConfig.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JacksonConfig.java new file mode 100644 index 00000000000..a2360fcc82b --- /dev/null +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JacksonConfig.java @@ -0,0 +1,46 @@ +package io.swagger.api; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import com.fasterxml.jackson.datatype.joda.JodaModule; +import org.joda.time.DateTime; +import org.joda.time.LocalDate; +import org.joda.time.format.ISODateTimeFormat; + +import javax.ws.rs.ext.ContextResolver; +import javax.ws.rs.ext.Provider; +import java.io.IOException; + +@Provider +public class JacksonConfig implements ContextResolver { + private final ObjectMapper objectMapper; + + public JacksonConfig() throws Exception { + + objectMapper = new ObjectMapper(); + objectMapper.registerModule(new JodaModule() { + { + addSerializer(DateTime.class, new StdSerializer(DateTime.class) { + @Override + public void serialize(DateTime value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonGenerationException { + jgen.writeString(ISODateTimeFormat.dateTimeNoMillis().print(value)); + } + }); + addSerializer(LocalDate.class, new StdSerializer(LocalDate.class) { + @Override + public void serialize(LocalDate value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonGenerationException { + jgen.writeString(ISODateTimeFormat.date().print(value)); + } + }); + + } + }); + } + + public ObjectMapper getContext(Class arg0) { + return objectMapper; + } +} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JodaDateTimeProvider.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JodaDateTimeProvider.java new file mode 100644 index 00000000000..918d08ac95d --- /dev/null +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JodaDateTimeProvider.java @@ -0,0 +1,42 @@ +package io.swagger.api; + +import org.joda.time.DateTime; +import javax.ws.rs.ext.ParamConverter; +import javax.ws.rs.ext.ParamConverterProvider; +import javax.ws.rs.ext.Provider; +import java.lang.annotation.Annotation; +import java.lang.reflect.Type; +import javax.ws.rs.WebApplicationException; +import javax.ws.rs.core.Response; + + +@Provider +public class JodaDateTimeProvider implements ParamConverterProvider { + + public static class JodaDateTimeConverter implements ParamConverter { + + @Override + public DateTime fromString(String string) { + try { + DateTime dateTime = DateTime.parse(string); + return dateTime; + } catch (Exception e) { + throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST). + entity(string + " must be valid DateTime").build()); + } + } + + @Override + public String toString(DateTime t) { + return t.toString(); + } + } + + @Override + public ParamConverter getConverter(Class type, Type type1, Annotation[] antns) { + if (DateTime.class.equals(type)) { + return (ParamConverter) new JodaDateTimeConverter(); + } + return null; + } +} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JodaLocalDateProvider.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JodaLocalDateProvider.java new file mode 100644 index 00000000000..a4298e4f6ea --- /dev/null +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/JodaLocalDateProvider.java @@ -0,0 +1,42 @@ +package io.swagger.api; + +import org.joda.time.LocalDate; +import javax.ws.rs.ext.ParamConverter; +import javax.ws.rs.ext.ParamConverterProvider; +import javax.ws.rs.ext.Provider; +import java.lang.annotation.Annotation; +import java.lang.reflect.Type; +import javax.ws.rs.WebApplicationException; +import javax.ws.rs.core.Response; + + +@Provider +public class JodaLocalDateProvider implements ParamConverterProvider { + + public static class JodaLocalDateConverter implements ParamConverter { + + @Override + public LocalDate fromString(String string) { + try { + LocalDate localDate = LocalDate.parse(string); + return localDate; + } catch (Exception e) { + throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST). + entity(string + " must be valid LocalDate").build()); + } + } + + @Override + public String toString(LocalDate t) { + return t.toString(); + } + } + + @Override + public ParamConverter getConverter(Class type, Type type1, Annotation[] antns) { + if (LocalDate.class.equals(type)) { + return (ParamConverter) new JodaLocalDateConverter(); + } + return null; + } +} \ No newline at end of file diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/NotFoundException.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/NotFoundException.java new file mode 100644 index 00000000000..ddb41ff1ac0 --- /dev/null +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/NotFoundException.java @@ -0,0 +1,10 @@ +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 NotFoundException extends ApiException { + private int code; + public NotFoundException (int code, String msg) { + super(code, msg); + this.code = code; + } +} diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/PetApi.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/PetApi.java new file mode 100644 index 00000000000..b879a0f1a89 --- /dev/null +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/PetApi.java @@ -0,0 +1,93 @@ +package io.swagger.api; + +import io.swagger.model.*; +import io.swagger.api.PetApiService; +import io.swagger.api.factories.PetApiServiceFactory; + +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.Context; +import javax.ws.rs.core.Response; +import javax.ws.rs.core.SecurityContext; +import javax.ws.rs.*; +import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput; + +@Path("/pet") + + +@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-07-01T21:32:16.906+08:00") +public class PetApi { + private final PetApiService delegate = PetApiServiceFactory.getPetApi(); + + @POST + + @Consumes({ "application/json", "application/xml" }) + @Produces({ "application/xml", "application/json" }) + public Response addPet( Pet body,@Context SecurityContext securityContext) + throws NotFoundException { + return delegate.addPet(body,securityContext); + } + @DELETE + @Path("/{petId}") + + @Produces({ "application/xml", "application/json" }) + public Response deletePet( @PathParam("petId") Long petId,@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) + throws NotFoundException { + return delegate.deletePet(petId,apiKey,securityContext); + } + @GET + @Path("/findByStatus") + + @Produces({ "application/xml", "application/json" }) + public Response findPetsByStatus( @QueryParam("status") List status,@Context SecurityContext securityContext) + throws NotFoundException { + return delegate.findPetsByStatus(status,securityContext); + } + @GET + @Path("/findByTags") + + @Produces({ "application/xml", "application/json" }) + public Response findPetsByTags( @QueryParam("tags") List tags,@Context SecurityContext securityContext) + throws NotFoundException { + return delegate.findPetsByTags(tags,securityContext); + } + @GET + @Path("/{petId}") + + @Produces({ "application/xml", "application/json" }) + public Response getPetById( @PathParam("petId") Long petId,@Context SecurityContext securityContext) + throws NotFoundException { + return delegate.getPetById(petId,securityContext); + } + @PUT + + @Consumes({ "application/json", "application/xml" }) + @Produces({ "application/xml", "application/json" }) + public Response updatePet( Pet body,@Context SecurityContext securityContext) + throws NotFoundException { + return delegate.updatePet(body,securityContext); + } + @POST + @Path("/{petId}") + @Consumes({ "application/x-www-form-urlencoded" }) + @Produces({ "application/xml", "application/json" }) + public Response updatePetWithForm( @PathParam("petId") Long petId,@FormParam("name") String name,@FormParam("status") String status,@Context SecurityContext securityContext) + throws NotFoundException { + return delegate.updatePetWithForm(petId,name,status,securityContext); + } + @POST + @Path("/{petId}/uploadImage") + @Consumes({ "multipart/form-data" }) + @Produces({ "application/json" }) + public Response uploadFile(MultipartFormDataInput input, @PathParam("petId") Long petId,@Context SecurityContext securityContext) + throws NotFoundException { + return delegate.uploadFile(input,petId,securityContext); + } +} diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/PetApiService.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/PetApiService.java new file mode 100644 index 00000000000..1902d3d3a8e --- /dev/null +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/api/PetApiService.java @@ -0,0 +1,38 @@ +package io.swagger.api; + +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 abstract class PetApiService { + public abstract Response addPet(Pet body,SecurityContext securityContext) + throws NotFoundException; + public abstract Response deletePet(Long petId,String apiKey,SecurityContext securityContext) + throws NotFoundException; + public abstract Response findPetsByStatus(List status,SecurityContext securityContext) + throws NotFoundException; + public abstract Response findPetsByTags(List 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(); - } - -} -