diff --git a/bin/java-petstore-jersey2-java6.sh b/bin/java-petstore-jersey2-java6.sh
index 3ce176f263e..8ab7c2c7ef4 100755
--- a/bin/java-petstore-jersey2-java6.sh
+++ b/bin/java-petstore-jersey2-java6.sh
@@ -31,5 +31,4 @@ ags="$@ generate --artifact-id swagger-petstore-jersey2-java6 -i modules/swagger
echo "Removing files and folders under samples/client/petstore/java/jersey2/src/main"
rm -rf samples/client/petstore/java/jersey2-java6/src/main
find samples/client/petstore/java/jersey2-java6 -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
-# TODO: uncomment the java commmand when the issue with this script is fixed, see https://github.com/swagger-api/swagger-codegen-generators/issues/52
-# java $JAVA_OPTS -jar $executable $ags
+java $JAVA_OPTS -jar $executable $ags
diff --git a/bin/java-petstore-okhttp-gson-parcelable.sh b/bin/java-petstore-okhttp-gson-parcelable.sh
index 53fafacf06c..284f2e06fbc 100755
--- a/bin/java-petstore-okhttp-gson-parcelable.sh
+++ b/bin/java-petstore-okhttp-gson-parcelable.sh
@@ -30,5 +30,4 @@ ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore-with
rm -rf samples/client/petstore/java/okhttp-gson-parcelableModel/src/main
find samples/client/petstore/java/okhttp-gson-parcelableModel -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
-# TODO: uncomment the java commmand when the issue with this script is fixed, see https://github.com/swagger-api/swagger-codegen-generators/issues/52
-# java $JAVA_OPTS -jar $executable $ags
+java $JAVA_OPTS -jar $executable $ags
diff --git a/bin/java-petstore-okhttp-gson.sh b/bin/java-petstore-okhttp-gson.sh
index 48808cf7223..492cd5ff4a4 100755
--- a/bin/java-petstore-okhttp-gson.sh
+++ b/bin/java-petstore-okhttp-gson.sh
@@ -30,5 +30,4 @@ ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore-with
rm -rf samples/client/petstore/java/okhttp-gson/src/main
find samples/client/petstore/java/okhttp-gson -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
-# TODO: uncomment the java commmand when the issue with this script is fixed, see https://github.com/swagger-api/swagger-codegen-generators/issues/52
-# java $JAVA_OPTS -jar $executable $ags
+java $JAVA_OPTS -jar $executable $ags
diff --git a/samples/client/petstore/java/jersey2-java6/.swagger-codegen/VERSION b/samples/client/petstore/java/jersey2-java6/.swagger-codegen/VERSION
index 50794f17f1a..096bf47efe3 100644
--- a/samples/client/petstore/java/jersey2-java6/.swagger-codegen/VERSION
+++ b/samples/client/petstore/java/jersey2-java6/.swagger-codegen/VERSION
@@ -1 +1 @@
-2.3.1-SNAPSHOT
\ No newline at end of file
+3.0.0-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/java/jersey2-java6/README.md b/samples/client/petstore/java/jersey2-java6/README.md
index b53485ad7d9..20cfa47a516 100644
--- a/samples/client/petstore/java/jersey2-java6/README.md
+++ b/samples/client/petstore/java/jersey2-java6/README.md
@@ -69,11 +69,16 @@ import java.util.*;
public class AnotherFakeApiExample {
public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+
AnotherFakeApi apiInstance = new AnotherFakeApi();
- Client body = new Client(); // Client | client model
+
+ Client client = ; // Client | client model
+
try {
- Client result = apiInstance.testSpecialTags(body);
+ Client result = apiInstance.testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
@@ -127,14 +132,15 @@ Class | Method | HTTP request | Description
- [AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
- [Animal](docs/Animal.md)
- - [AnimalFarm](docs/AnimalFarm.md)
- [ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
- [ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
- [ArrayTest](docs/ArrayTest.md)
- [Capitalization](docs/Capitalization.md)
+ - [Cat](docs/Cat.md)
- [Category](docs/Category.md)
- [ClassModel](docs/ClassModel.md)
- [Client](docs/Client.md)
+ - [Dog](docs/Dog.md)
- [EnumArrays](docs/EnumArrays.md)
- [EnumClass](docs/EnumClass.md)
- [EnumTest](docs/EnumTest.md)
@@ -155,8 +161,6 @@ Class | Method | HTTP request | Description
- [SpecialModelName](docs/SpecialModelName.md)
- [Tag](docs/Tag.md)
- [User](docs/User.md)
- - [Cat](docs/Cat.md)
- - [Dog](docs/Dog.md)
## Documentation for Authorization
@@ -168,24 +172,37 @@ Authentication schemes defined for the API:
- **API key parameter name**: api_key
- **Location**: HTTP header
+
+
+
### api_key_query
- **Type**: API key
- **API key parameter name**: api_key_query
- **Location**: URL query string
+
+
+
### http_basic_test
+
- **Type**: HTTP basic authentication
+
+
### petstore_auth
+
+
- **Type**: OAuth
- **Flow**: implicit
- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog
- **Scopes**:
- - write:pets: modify pets in your account
- - read:pets: read your pets
+ - :
+
+
+
## Recommendation
diff --git a/samples/client/petstore/java/jersey2-java6/build.gradle b/samples/client/petstore/java/jersey2-java6/build.gradle
index c64dc492c46..1fdde25b53c 100644
--- a/samples/client/petstore/java/jersey2-java6/build.gradle
+++ b/samples/client/petstore/java/jersey2-java6/build.gradle
@@ -32,8 +32,11 @@ if(hasProperty('target') && target == 'android') {
targetSdkVersion 25
}
compileOptions {
+
+
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
+
}
// Rename the aar correctly
@@ -77,8 +80,11 @@ if(hasProperty('target') && target == 'android') {
apply plugin: 'java'
apply plugin: 'maven'
+
+
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
+
install {
repositories.mavenInstaller {
@@ -95,9 +101,11 @@ if(hasProperty('target') && target == 'android') {
ext {
swagger_annotations_version = "1.5.15"
jackson_version = "2.8.9"
- jersey_version = "2.6"
+ jersey_version = "2.25.1"
+
commons_io_version=2.5
commons_lang3_version=3.6
+
junit_version = "4.12"
}
@@ -109,9 +117,17 @@ dependencies {
compile "com.fasterxml.jackson.core:jackson-core:$jackson_version"
compile "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
compile "com.fasterxml.jackson.core:jackson-databind:$jackson_version"
+
+
+
compile "commons-io:commons-io:$commons_io_version"
compile "org.apache.commons:commons-lang3:$commons_lang3_version"
+
+
compile "com.github.joschi.jackson:jackson-datatype-threetenbp:$jackson_version",
+
+
compile "com.brsanthu:migbase64:2.2"
+
testCompile "junit:junit:$junit_version"
}
diff --git a/samples/client/petstore/java/jersey2-java6/build.sbt b/samples/client/petstore/java/jersey2-java6/build.sbt
index eecfab7a984..d06452d0ff8 100644
--- a/samples/client/petstore/java/jersey2-java6/build.sbt
+++ b/samples/client/petstore/java/jersey2-java6/build.sbt
@@ -10,16 +10,24 @@ lazy val root = (project in file(".")).
resolvers += Resolver.mavenLocal,
libraryDependencies ++= Seq(
"io.swagger" % "swagger-annotations" % "1.5.15",
- "org.glassfish.jersey.core" % "jersey-client" % "2.6",
- "org.glassfish.jersey.media" % "jersey-media-multipart" % "2.6",
- "org.glassfish.jersey.media" % "jersey-media-json-jackson" % "2.6",
+ "org.glassfish.jersey.core" % "jersey-client" % "2.25.1",
+ "org.glassfish.jersey.media" % "jersey-media-multipart" % "2.25.1",
+ "org.glassfish.jersey.media" % "jersey-media-json-jackson" % "2.25.1",
"com.fasterxml.jackson.core" % "jackson-core" % "2.6.4" % "compile",
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.6.4" % "compile",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.6.4" % "compile",
+
+
+
"com.github.joschi.jackson" % "jackson-datatype-threetenbp" % "2.6.4" % "compile",
+
+
"com.brsanthu" % "migbase64" % "2.2",
+
+
"org.apache.commons" % "commons-lang3" % "3.6",
"commons-io" % "commons-io" % "2.5",
+
"junit" % "junit" % "4.12" % "test",
"com.novocode" % "junit-interface" % "0.10" % "test"
)
diff --git a/samples/client/petstore/java/jersey2-java6/docs/AdditionalPropertiesClass.md b/samples/client/petstore/java/jersey2-java6/docs/AdditionalPropertiesClass.md
index 0437c4dd8cc..b37862da7cf 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/AdditionalPropertiesClass.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/AdditionalPropertiesClass.md
@@ -9,3 +9,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/Animal.md b/samples/client/petstore/java/jersey2-java6/docs/Animal.md
index b3f325c3524..346caaf63f4 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/Animal.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/Animal.md
@@ -9,3 +9,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/AnimalFarm.md b/samples/client/petstore/java/jersey2-java6/docs/AnimalFarm.md
deleted file mode 100644
index c7c7f1ddcce..00000000000
--- a/samples/client/petstore/java/jersey2-java6/docs/AnimalFarm.md
+++ /dev/null
@@ -1,9 +0,0 @@
-
-# AnimalFarm
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-
-
-
diff --git a/samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md b/samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md
index 7a04619aaba..fb5c988e6cc 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md
@@ -7,9 +7,11 @@ Method | HTTP request | Description
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
+
+
# **testSpecialTags**
-> Client testSpecialTags(body)
+> Client testSpecialTags(client)
To test special tags
@@ -22,10 +24,13 @@ To test special tags
//import io.swagger.client.api.AnotherFakeApi;
+
AnotherFakeApi apiInstance = new AnotherFakeApi();
-Client body = new Client(); // Client | client model
+
+Client client = ; // Client | client model
+
try {
- Client result = apiInstance.testSpecialTags(body);
+ Client result = apiInstance.testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
@@ -37,7 +42,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Client**](Client.md)| client model |
+ **client** | [**Client**](.md)| client model |
+
### Return type
@@ -52,3 +58,5 @@ No authorization required
- **Content-Type**: application/json
- **Accept**: application/json
+
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/java/jersey2-java6/docs/ArrayOfArrayOfNumberOnly.md
index 77292549927..3671a5e9190 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/ArrayOfArrayOfNumberOnly.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/ArrayOfArrayOfNumberOnly.md
@@ -8,3 +8,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/ArrayOfNumberOnly.md b/samples/client/petstore/java/jersey2-java6/docs/ArrayOfNumberOnly.md
index e8cc4cd36dc..30b9b6648f4 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/ArrayOfNumberOnly.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/ArrayOfNumberOnly.md
@@ -8,3 +8,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/ArrayTest.md b/samples/client/petstore/java/jersey2-java6/docs/ArrayTest.md
index 9feee16427f..4ab76343030 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/ArrayTest.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/ArrayTest.md
@@ -10,3 +10,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/Capitalization.md b/samples/client/petstore/java/jersey2-java6/docs/Capitalization.md
index 0f3064c1996..9af7864f97e 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/Capitalization.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/Capitalization.md
@@ -13,3 +13,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/Cat.md b/samples/client/petstore/java/jersey2-java6/docs/Cat.md
index 6e9f71ce7dd..5e408344021 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/Cat.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/Cat.md
@@ -4,7 +4,10 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**className** | **String** | |
+**color** | **String** | | [optional]
**declawed** | **Boolean** | | [optional]
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/Category.md b/samples/client/petstore/java/jersey2-java6/docs/Category.md
index e2df0803278..deb5a3e2a52 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/Category.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/Category.md
@@ -9,3 +9,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/ClassModel.md b/samples/client/petstore/java/jersey2-java6/docs/ClassModel.md
index 64f880c8786..49c281cc0ed 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/ClassModel.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/ClassModel.md
@@ -8,3 +8,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/Client.md b/samples/client/petstore/java/jersey2-java6/docs/Client.md
index 5c490ea166c..52b2f72c79c 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/Client.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/Client.md
@@ -8,3 +8,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/Dog.md b/samples/client/petstore/java/jersey2-java6/docs/Dog.md
index ac7cea323ff..00e6446e9f5 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/Dog.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/Dog.md
@@ -4,7 +4,10 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**className** | **String** | |
+**color** | **String** | | [optional]
**breed** | **String** | | [optional]
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/EnumArrays.md b/samples/client/petstore/java/jersey2-java6/docs/EnumArrays.md
index 4dddc0bfd27..939a0e69587 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/EnumArrays.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/EnumArrays.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
**arrayEnum** | [**List<ArrayEnumEnum>**](#List<ArrayEnumEnum>) | | [optional]
+
## Enum: JustSymbolEnum
Name | Value
@@ -20,8 +21,6 @@ DOLLAR | "$"
## Enum: List<ArrayEnumEnum>
Name | Value
---- | -----
-FISH | "fish"
-CRAB | "crab"
diff --git a/samples/client/petstore/java/jersey2-java6/docs/EnumTest.md b/samples/client/petstore/java/jersey2-java6/docs/EnumTest.md
index 08fee344882..9722c621962 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/EnumTest.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/EnumTest.md
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
+
## Enum: EnumStringEnum
Name | Value
diff --git a/samples/client/petstore/java/jersey2-java6/docs/FakeApi.md b/samples/client/petstore/java/jersey2-java6/docs/FakeApi.md
index 737ccc28293..6690b870e4e 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/FakeApi.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/FakeApi.md
@@ -15,6 +15,8 @@ Method | HTTP request | Description
[**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
+
+
# **fakeOuterBooleanSerialize**
> Boolean fakeOuterBooleanSerialize(body)
@@ -30,8 +32,11 @@ Test serialization of outer boolean types
//import io.swagger.client.api.FakeApi;
+
FakeApi apiInstance = new FakeApi();
-Boolean body = true; // Boolean | Input boolean as post body
+
+Boolean body = ; // Boolean | Input boolean as post body
+
try {
Boolean result = apiInstance.fakeOuterBooleanSerialize(body);
System.out.println(result);
@@ -47,6 +52,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**Boolean**](Boolean.md)| Input boolean as post body | [optional]
+
### Return type
**Boolean**
@@ -57,12 +63,13 @@ No authorization required
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Content-Type**: */*
+ - **Accept**: */*
+
# **fakeOuterCompositeSerialize**
-> OuterComposite fakeOuterCompositeSerialize(body)
+> OuterComposite fakeOuterCompositeSerialize(outercomposite)
@@ -75,10 +82,13 @@ Test serialization of object with outer number type
//import io.swagger.client.api.FakeApi;
+
FakeApi apiInstance = new FakeApi();
-OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body
+
+OuterComposite outercomposite = ; // OuterComposite | Input composite as post body
+
try {
- OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body);
+ OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outercomposite);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
@@ -90,7 +100,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
+ **outercomposite** | [**OuterComposite**](.md)| Input composite as post body | [optional]
+
### Return type
@@ -102,8 +113,9 @@ No authorization required
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Content-Type**: */*
+ - **Accept**: */*
+
# **fakeOuterNumberSerialize**
@@ -120,8 +132,11 @@ Test serialization of outer number types
//import io.swagger.client.api.FakeApi;
+
FakeApi apiInstance = new FakeApi();
-BigDecimal body = new BigDecimal(); // BigDecimal | Input number as post body
+
+BigDecimal body = ; // BigDecimal | Input number as post body
+
try {
BigDecimal result = apiInstance.fakeOuterNumberSerialize(body);
System.out.println(result);
@@ -137,6 +152,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**BigDecimal**](BigDecimal.md)| Input number as post body | [optional]
+
### Return type
[**BigDecimal**](BigDecimal.md)
@@ -147,8 +163,9 @@ No authorization required
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Content-Type**: */*
+ - **Accept**: */*
+
# **fakeOuterStringSerialize**
@@ -165,8 +182,11 @@ Test serialization of outer string types
//import io.swagger.client.api.FakeApi;
+
FakeApi apiInstance = new FakeApi();
-String body = "body_example"; // String | Input string as post body
+
+String body = ; // String | Input string as post body
+
try {
String result = apiInstance.fakeOuterStringSerialize(body);
System.out.println(result);
@@ -182,6 +202,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**String**](String.md)| Input string as post body | [optional]
+
### Return type
**String**
@@ -192,12 +213,13 @@ No authorization required
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Content-Type**: */*
+ - **Accept**: */*
+
# **testClientModel**
-> Client testClientModel(body)
+> Client testClientModel(client)
To test \"client\" model
@@ -210,10 +232,13 @@ To test \"client\" model
//import io.swagger.client.api.FakeApi;
+
FakeApi apiInstance = new FakeApi();
-Client body = new Client(); // Client | client model
+
+Client client = ; // Client | client model
+
try {
- Client result = apiInstance.testClientModel(body);
+ Client result = apiInstance.testClientModel(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testClientModel");
@@ -225,7 +250,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Client**](Client.md)| client model |
+ **client** | [**Client**](.md)| client model |
+
### Return type
@@ -240,9 +266,10 @@ No authorization required
- **Content-Type**: application/json
- **Accept**: application/json
+
# **testEndpointParameters**
-> testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback)
+> testEndpointParameters(body)
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@@ -251,36 +278,17 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.FakeApi;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure HTTP basic authorization: http_basic_test
-HttpBasicAuth http_basic_test = (HttpBasicAuth) defaultClient.getAuthentication("http_basic_test");
-http_basic_test.setUsername("YOUR USERNAME");
-http_basic_test.setPassword("YOUR PASSWORD");
FakeApi apiInstance = new FakeApi();
-BigDecimal number = new BigDecimal(); // BigDecimal | None
-Double _double = 3.4D; // Double | None
-String patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None
-byte[] _byte = B; // byte[] | None
-Integer integer = 56; // Integer | None
-Integer int32 = 56; // Integer | None
-Long int64 = 789L; // Long | None
-Float _float = 3.4F; // Float | None
-String string = "string_example"; // String | None
-byte[] binary = B; // byte[] | None
-LocalDate date = new LocalDate(); // LocalDate | None
-OffsetDateTime dateTime = new OffsetDateTime(); // OffsetDateTime | None
-String password = "password_example"; // String | None
-String paramCallback = "paramCallback_example"; // String | None
+
+Object body = ; // Object |
+
try {
- apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
+ apiInstance.testEndpointParameters(body);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testEndpointParameters");
e.printStackTrace();
@@ -291,20 +299,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **number** | **BigDecimal**| None |
- **_double** | **Double**| None |
- **patternWithoutDelimiter** | **String**| None |
- **_byte** | **byte[]**| None |
- **integer** | **Integer**| None | [optional]
- **int32** | **Integer**| None | [optional]
- **int64** | **Long**| None | [optional]
- **_float** | **Float**| None | [optional]
- **string** | **String**| None | [optional]
- **binary** | **byte[]**| None | [optional]
- **date** | **LocalDate**| None | [optional]
- **dateTime** | **OffsetDateTime**| None | [optional]
- **password** | **String**| None | [optional]
- **paramCallback** | **String**| None | [optional]
+ **body** | [**Object**](Object.md)| |
+
### Return type
@@ -317,11 +313,12 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/xml; charset=utf-8, application/json; charset=utf-8
- - **Accept**: application/xml; charset=utf-8, application/json; charset=utf-8
+ - **Accept**: Not defined
+
# **testEnumParameters**
-> testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble)
+> testEnumParameters(body, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger)
To test enum parameters
@@ -334,17 +331,23 @@ To test enum parameters
//import io.swagger.client.api.FakeApi;
+
FakeApi apiInstance = new FakeApi();
-List enumFormStringArray = Arrays.asList("enumFormStringArray_example"); // List | Form parameter enum test (string array)
-String enumFormString = "-efg"; // String | Form parameter enum test (string)
+
+Object body = ; // Object |
+
List enumHeaderStringArray = Arrays.asList("enumHeaderStringArray_example"); // List | Header parameter enum test (string array)
-String enumHeaderString = "-efg"; // String | Header parameter enum test (string)
+
+String enumHeaderString = Arrays.asList("enumHeaderString_example"); // String | Header parameter enum test (string)
+
List enumQueryStringArray = Arrays.asList("enumQueryStringArray_example"); // List | Query parameter enum test (string array)
-String enumQueryString = "-efg"; // String | Query parameter enum test (string)
-Integer enumQueryInteger = 56; // Integer | Query parameter enum test (double)
-Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
+
+String enumQueryString = Arrays.asList("enumQueryString_example"); // String | Query parameter enum test (string)
+
+Integer enumQueryInteger = Arrays.asList(56); // Integer | Query parameter enum test (double)
+
try {
- apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
+ apiInstance.testEnumParameters(body, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testEnumParameters");
e.printStackTrace();
@@ -355,14 +358,13 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $]
- **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
- **enumHeaderStringArray** | [**List<String>**](String.md)| Header parameter enum test (string array) | [optional] [enum: >, $]
- **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
- **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $]
- **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
- **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2]
- **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2]
+ **body** | [**Object**](Object.md)| | [optional]
+ **enumHeaderStringArray** | [**List<String>**](String.md)| Header parameter enum test (string array) | [optional] [enum: ]
+ **enumHeaderString** | [**String**](.md)| Header parameter enum test (string) | [optional]
+ **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: ]
+ **enumQueryString** | [**String**](.md)| Query parameter enum test (string) | [optional]
+ **enumQueryInteger** | [**Integer**](.md)| Query parameter enum test (double) | [optional]
+
### Return type
@@ -375,16 +377,15 @@ No authorization required
### HTTP request headers
- **Content-Type**: */*
- - **Accept**: */*
+ - **Accept**: Not defined
+
# **testInlineAdditionalProperties**
-> testInlineAdditionalProperties(param)
+> testInlineAdditionalProperties(body)
test inline additionalProperties
-
-
### Example
```java
// Import classes:
@@ -392,10 +393,13 @@ test inline additionalProperties
//import io.swagger.client.api.FakeApi;
+
FakeApi apiInstance = new FakeApi();
-Object param = null; // Object | request body
+
+Map body = ; // Map | request body
+
try {
- apiInstance.testInlineAdditionalProperties(param);
+ apiInstance.testInlineAdditionalProperties(body);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
e.printStackTrace();
@@ -406,7 +410,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **param** | **Object**| request body |
+ **body** | [**Map<String, String>**](Map.md)| request body |
+
### Return type
@@ -421,14 +426,13 @@ No authorization required
- **Content-Type**: application/json
- **Accept**: Not defined
+
# **testJsonFormData**
-> testJsonFormData(param, param2)
+> testJsonFormData(body)
test json serialization of form data
-
-
### Example
```java
// Import classes:
@@ -436,11 +440,13 @@ test json serialization of form data
//import io.swagger.client.api.FakeApi;
+
FakeApi apiInstance = new FakeApi();
-String param = "param_example"; // String | field1
-String param2 = "param2_example"; // String | field2
+
+Object body = ; // Object |
+
try {
- apiInstance.testJsonFormData(param, param2);
+ apiInstance.testJsonFormData(body);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testJsonFormData");
e.printStackTrace();
@@ -451,8 +457,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **param** | **String**| field1 |
- **param2** | **String**| field2 |
+ **body** | [**Object**](Object.md)| |
+
### Return type
@@ -467,3 +473,5 @@ No authorization required
- **Content-Type**: application/json
- **Accept**: Not defined
+
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/jersey2-java6/docs/FakeClassnameTags123Api.md
index bc728bfce5b..2bcbbb7908f 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/FakeClassnameTags123Api.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/FakeClassnameTags123Api.md
@@ -7,33 +7,28 @@ Method | HTTP request | Description
[**testClassname**](FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
+
+
# **testClassname**
-> Client testClassname(body)
+> Client testClassname(client)
To test class name in snake case
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.FakeClassnameTags123Api;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure API key authorization: api_key_query
-ApiKeyAuth api_key_query = (ApiKeyAuth) defaultClient.getAuthentication("api_key_query");
-api_key_query.setApiKey("YOUR API KEY");
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//api_key_query.setApiKeyPrefix("Token");
FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api();
-Client body = new Client(); // Client | client model
+
+Client client = ; // Client | client model
+
try {
- Client result = apiInstance.testClassname(body);
+ Client result = apiInstance.testClassname(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
@@ -45,7 +40,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Client**](Client.md)| client model |
+ **client** | [**Client**](.md)| client model |
+
### Return type
@@ -60,3 +56,5 @@ Name | Type | Description | Notes
- **Content-Type**: application/json
- **Accept**: application/json
+
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/FormatTest.md b/samples/client/petstore/java/jersey2-java6/docs/FormatTest.md
index c7a3acb3cb7..bc11b93cb26 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/FormatTest.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/FormatTest.md
@@ -11,8 +11,8 @@ Name | Type | Description | Notes
**_float** | **Float** | | [optional]
**_double** | **Double** | | [optional]
**string** | **String** | | [optional]
-**_byte** | **byte[]** | |
-**binary** | **byte[]** | | [optional]
+**_byte** | **String** | |
+**binary** | **String** | | [optional]
**date** | [**LocalDate**](LocalDate.md) | |
**dateTime** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
**uuid** | [**UUID**](UUID.md) | | [optional]
@@ -20,3 +20,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/HasOnlyReadOnly.md b/samples/client/petstore/java/jersey2-java6/docs/HasOnlyReadOnly.md
index c1d0aac5672..5564ddcf28a 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/HasOnlyReadOnly.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/HasOnlyReadOnly.md
@@ -9,3 +9,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/MapTest.md b/samples/client/petstore/java/jersey2-java6/docs/MapTest.md
index 714a97a40d9..74a6fe8ae70 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/MapTest.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/MapTest.md
@@ -8,12 +8,11 @@ Name | Type | Description | Notes
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
+
## Enum: Map<String, InnerEnum>
Name | Value
---- | -----
-UPPER | "UPPER"
-LOWER | "lower"
diff --git a/samples/client/petstore/java/jersey2-java6/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/java/jersey2-java6/docs/MixedPropertiesAndAdditionalPropertiesClass.md
index b12e2cd70e6..4507481b5a9 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/MixedPropertiesAndAdditionalPropertiesClass.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/MixedPropertiesAndAdditionalPropertiesClass.md
@@ -10,3 +10,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/Model200Response.md b/samples/client/petstore/java/jersey2-java6/docs/Model200Response.md
index 5b3a9a0e46d..8d2cc50bb83 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/Model200Response.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/Model200Response.md
@@ -9,3 +9,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/ModelApiResponse.md b/samples/client/petstore/java/jersey2-java6/docs/ModelApiResponse.md
index 3eec8686cc9..06052b202f1 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/ModelApiResponse.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/ModelApiResponse.md
@@ -10,3 +10,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/ModelReturn.md b/samples/client/petstore/java/jersey2-java6/docs/ModelReturn.md
index a679b04953e..a7845ba254b 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/ModelReturn.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/ModelReturn.md
@@ -8,3 +8,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/Name.md b/samples/client/petstore/java/jersey2-java6/docs/Name.md
index ce2fb4dee50..a8d6fec9714 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/Name.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/Name.md
@@ -11,3 +11,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/NumberOnly.md b/samples/client/petstore/java/jersey2-java6/docs/NumberOnly.md
index a3feac7fadc..adfb36a95bb 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/NumberOnly.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/NumberOnly.md
@@ -8,3 +8,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/Order.md b/samples/client/petstore/java/jersey2-java6/docs/Order.md
index 268c617d1ff..7e4beff6df1 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/Order.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/Order.md
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
**complete** | **Boolean** | | [optional]
+
## Enum: StatusEnum
Name | Value
diff --git a/samples/client/petstore/java/jersey2-java6/docs/OuterComposite.md b/samples/client/petstore/java/jersey2-java6/docs/OuterComposite.md
index 3f5a633c998..1963c7a0f73 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/OuterComposite.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/OuterComposite.md
@@ -10,3 +10,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/Pet.md b/samples/client/petstore/java/jersey2-java6/docs/Pet.md
index 5b63109ef92..1492195a58d 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/Pet.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/Pet.md
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
**status** | [**StatusEnum**](#StatusEnum) | pet status in the store | [optional]
+
## Enum: StatusEnum
Name | Value
diff --git a/samples/client/petstore/java/jersey2-java6/docs/PetApi.md b/samples/client/petstore/java/jersey2-java6/docs/PetApi.md
index b5fa395947d..4758743434a 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/PetApi.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/PetApi.md
@@ -14,33 +14,28 @@ Method | HTTP request | Description
[**uploadFile**](PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
+
+
# **addPet**
-> addPet(body)
+> addPet(pet)
Add a new pet to the store
-
-
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.PetApi;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi();
-Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
+
+Pet pet = ; // Pet | Pet object that needs to be added to the store
+
try {
- apiInstance.addPet(body);
+ apiInstance.addPet(pet);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#addPet");
e.printStackTrace();
@@ -51,7 +46,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
+ **pet** | [**Pet**](.md)| Pet object that needs to be added to the store |
+
### Return type
@@ -64,7 +60,8 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
+
# **deletePet**
@@ -72,26 +69,20 @@ null (empty response body)
Deletes a pet
-
-
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.PetApi;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi();
-Long petId = 789L; // Long | Pet id to delete
-String apiKey = "apiKey_example"; // String |
+
+Integer petId = Arrays.asList(56); // Integer | Pet id to delete
+
+String apiKey = Arrays.asList("apiKey_example"); // String |
+
try {
apiInstance.deletePet(petId, apiKey);
} catch (ApiException e) {
@@ -104,8 +95,9 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **petId** | **Long**| Pet id to delete |
- **apiKey** | **String**| | [optional]
+ **petId** | [**Integer**](.md)| Pet id to delete |
+ **apiKey** | [**String**](.md)| | [optional]
+
### Return type
@@ -118,7 +110,8 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
+
# **findPetsByStatus**
@@ -131,20 +124,15 @@ Multiple status values can be provided with comma separated strings
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.PetApi;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi();
+
List status = Arrays.asList("status_example"); // List | Status values that need to be considered for filter
+
try {
List result = apiInstance.findPetsByStatus(status);
System.out.println(result);
@@ -158,7 +146,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **status** | [**List<String>**](String.md)| Status values that need to be considered for filter | [enum: available, pending, sold]
+ **status** | [**List<String>**](String.md)| Status values that need to be considered for filter | [enum: ]
+
### Return type
@@ -173,6 +162,7 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
+
# **findPetsByTags**
> List<Pet> findPetsByTags(tags)
@@ -184,20 +174,15 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.PetApi;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi();
+
List tags = Arrays.asList("tags_example"); // List | Tags to filter by
+
try {
List result = apiInstance.findPetsByTags(tags);
System.out.println(result);
@@ -213,6 +198,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**tags** | [**List<String>**](String.md)| Tags to filter by |
+
### Return type
[**List<Pet>**](Pet.md)
@@ -226,6 +212,7 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
+
# **getPetById**
> Pet getPetById(petId)
@@ -237,22 +224,15 @@ Returns a single pet
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.PetApi;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure API key authorization: api_key
-ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
-api_key.setApiKey("YOUR API KEY");
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//api_key.setApiKeyPrefix("Token");
PetApi apiInstance = new PetApi();
-Long petId = 789L; // Long | ID of pet to return
+
+Integer petId = Arrays.asList(56); // Integer | ID of pet to return
+
try {
Pet result = apiInstance.getPetById(petId);
System.out.println(result);
@@ -266,7 +246,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **petId** | **Long**| ID of pet to return |
+ **petId** | [**Integer**](.md)| ID of pet to return |
+
### Return type
@@ -281,33 +262,27 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
+
# **updatePet**
-> updatePet(body)
+> updatePet(pet)
Update an existing pet
-
-
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.PetApi;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi();
-Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
+
+Pet pet = ; // Pet | Pet object that needs to be added to the store
+
try {
- apiInstance.updatePet(body);
+ apiInstance.updatePet(pet);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#updatePet");
e.printStackTrace();
@@ -318,7 +293,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
+ **pet** | [**Pet**](.md)| Pet object that needs to be added to the store |
+
### Return type
@@ -331,37 +307,31 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
+
# **updatePetWithForm**
-> updatePetWithForm(petId, name, status)
+> updatePetWithForm(petId, body)
Updates a pet in the store with form data
-
-
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.PetApi;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi();
-Long petId = 789L; // Long | ID of pet that needs to be updated
-String name = "name_example"; // String | Updated name of the pet
-String status = "status_example"; // String | Updated status of the pet
+
+Integer petId = Arrays.asList(56); // Integer | ID of pet that needs to be updated
+
+Object body = ; // Object |
+
try {
- apiInstance.updatePetWithForm(petId, name, status);
+ apiInstance.updatePetWithForm(petId, body);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#updatePetWithForm");
e.printStackTrace();
@@ -372,9 +342,9 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **petId** | **Long**| ID of pet that needs to be updated |
- **name** | **String**| Updated name of the pet | [optional]
- **status** | **String**| Updated status of the pet | [optional]
+ **petId** | [**Integer**](.md)| ID of pet that needs to be updated |
+ **body** | [**Object**](Object.md)| | [optional]
+
### Return type
@@ -387,37 +357,31 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/x-www-form-urlencoded
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
+
# **uploadFile**
-> ModelApiResponse uploadFile(petId, additionalMetadata, file)
+> ModelApiResponse uploadFile(petId, body)
uploads an image
-
-
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.PetApi;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure OAuth2 access token for authorization: petstore_auth
-OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
-petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi();
-Long petId = 789L; // Long | ID of pet to update
-String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server
-File file = new File("/path/to/file.txt"); // File | file to upload
+
+Integer petId = Arrays.asList(56); // Integer | ID of pet to update
+
+Object body = ; // Object |
+
try {
- ModelApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, file);
+ ModelApiResponse result = apiInstance.uploadFile(petId, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#uploadFile");
@@ -429,9 +393,9 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **petId** | **Long**| ID of pet to update |
- **additionalMetadata** | **String**| Additional data to pass to server | [optional]
- **file** | **File**| file to upload | [optional]
+ **petId** | [**Integer**](.md)| ID of pet to update |
+ **body** | [**Object**](Object.md)| | [optional]
+
### Return type
@@ -446,3 +410,5 @@ Name | Type | Description | Notes
- **Content-Type**: multipart/form-data
- **Accept**: application/json
+
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/ReadOnlyFirst.md b/samples/client/petstore/java/jersey2-java6/docs/ReadOnlyFirst.md
index 426b7cde95a..57655e5b49e 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/ReadOnlyFirst.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/ReadOnlyFirst.md
@@ -9,3 +9,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/SpecialModelName.md b/samples/client/petstore/java/jersey2-java6/docs/SpecialModelName.md
index c2c6117c552..f4259d2a73c 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/SpecialModelName.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/SpecialModelName.md
@@ -4,7 +4,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**specialPropertyName** | **Long** | | [optional]
+**$specialPropertyName** | **Long** | | [optional]
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/StoreApi.md b/samples/client/petstore/java/jersey2-java6/docs/StoreApi.md
index 7aed6450e6a..a4678ee745c 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/StoreApi.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/StoreApi.md
@@ -10,6 +10,8 @@ Method | HTTP request | Description
[**placeOrder**](StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet
+
+
# **deleteOrder**
> deleteOrder(orderId)
@@ -25,8 +27,11 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or
//import io.swagger.client.api.StoreApi;
+
StoreApi apiInstance = new StoreApi();
-String orderId = "orderId_example"; // String | ID of the order that needs to be deleted
+
+String orderId = Arrays.asList("orderId_example"); // String | ID of the order that needs to be deleted
+
try {
apiInstance.deleteOrder(orderId);
} catch (ApiException e) {
@@ -39,7 +44,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **orderId** | **String**| ID of the order that needs to be deleted |
+ **orderId** | [**String**](.md)| ID of the order that needs to be deleted |
+
### Return type
@@ -52,7 +58,8 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
+
# **getInventory**
@@ -65,21 +72,13 @@ Returns a map of status codes to quantities
### Example
```java
// Import classes:
-//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
-//import io.swagger.client.Configuration;
-//import io.swagger.client.auth.*;
//import io.swagger.client.api.StoreApi;
-ApiClient defaultClient = Configuration.getDefaultApiClient();
-// Configure API key authorization: api_key
-ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
-api_key.setApiKey("YOUR API KEY");
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//api_key.setApiKeyPrefix("Token");
StoreApi apiInstance = new StoreApi();
+
try {
Map result = apiInstance.getInventory();
System.out.println(result);
@@ -92,6 +91,7 @@ try {
### Parameters
This endpoint does not need any parameter.
+
### Return type
**Map<String, Integer>**
@@ -105,6 +105,7 @@ This endpoint does not need any parameter.
- **Content-Type**: Not defined
- **Accept**: application/json
+
# **getOrderById**
> Order getOrderById(orderId)
@@ -120,8 +121,11 @@ For valid response try integer IDs with value <= 5 or > 10. Other val
//import io.swagger.client.api.StoreApi;
+
StoreApi apiInstance = new StoreApi();
-Long orderId = 789L; // Long | ID of pet that needs to be fetched
+
+Integer orderId = Arrays.asList(56); // Integer | ID of pet that needs to be fetched
+
try {
Order result = apiInstance.getOrderById(orderId);
System.out.println(result);
@@ -135,7 +139,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **orderId** | **Long**| ID of pet that needs to be fetched |
+ **orderId** | [**Integer**](.md)| ID of pet that needs to be fetched |
+
### Return type
@@ -150,14 +155,13 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
+
# **placeOrder**
-> Order placeOrder(body)
+> Order placeOrder(order)
Place an order for a pet
-
-
### Example
```java
// Import classes:
@@ -165,10 +169,13 @@ Place an order for a pet
//import io.swagger.client.api.StoreApi;
+
StoreApi apiInstance = new StoreApi();
-Order body = new Order(); // Order | order placed for purchasing the pet
+
+Order order = ; // Order | order placed for purchasing the pet
+
try {
- Order result = apiInstance.placeOrder(body);
+ Order result = apiInstance.placeOrder(order);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling StoreApi#placeOrder");
@@ -180,7 +187,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Order**](Order.md)| order placed for purchasing the pet |
+ **order** | [**Order**](.md)| order placed for purchasing the pet |
+
### Return type
@@ -192,6 +200,8 @@ No authorization required
### HTTP request headers
- - **Content-Type**: Not defined
+ - **Content-Type**: */*
- **Accept**: application/xml, application/json
+
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/Tag.md b/samples/client/petstore/java/jersey2-java6/docs/Tag.md
index de6814b55d5..7a97d4c6812 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/Tag.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/Tag.md
@@ -9,3 +9,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/User.md b/samples/client/petstore/java/jersey2-java6/docs/User.md
index 8b6753dd284..cf7f9ce1312 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/User.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/User.md
@@ -15,3 +15,4 @@ Name | Type | Description | Notes
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/UserApi.md b/samples/client/petstore/java/jersey2-java6/docs/UserApi.md
index 2e6987951c8..e421376ce79 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/UserApi.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/UserApi.md
@@ -14,9 +14,11 @@ Method | HTTP request | Description
[**updateUser**](UserApi.md#updateUser) | **PUT** /user/{username} | Updated user
+
+
# **createUser**
-> createUser(body)
+> createUser(user)
Create user
@@ -29,10 +31,13 @@ This can only be done by the logged in user.
//import io.swagger.client.api.UserApi;
+
UserApi apiInstance = new UserApi();
-User body = new User(); // User | Created user object
+
+User user = ; // User | Created user object
+
try {
- apiInstance.createUser(body);
+ apiInstance.createUser(user);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUser");
e.printStackTrace();
@@ -43,7 +48,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**User**](User.md)| Created user object |
+ **user** | [**User**](.md)| Created user object |
+
### Return type
@@ -55,8 +61,9 @@ No authorization required
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Content-Type**: */*
+ - **Accept**: Not defined
+
# **createUsersWithArrayInput**
@@ -64,8 +71,6 @@ No authorization required
Creates list of users with given input array
-
-
### Example
```java
// Import classes:
@@ -73,8 +78,11 @@ Creates list of users with given input array
//import io.swagger.client.api.UserApi;
+
UserApi apiInstance = new UserApi();
-List body = Arrays.asList(new User()); // List | List of user object
+
+List body = ; // List | List of user object
+
try {
apiInstance.createUsersWithArrayInput(body);
} catch (ApiException e) {
@@ -89,6 +97,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**List<User>**](User.md)| List of user object |
+
### Return type
null (empty response body)
@@ -99,8 +108,9 @@ No authorization required
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Content-Type**: */*
+ - **Accept**: Not defined
+
# **createUsersWithListInput**
@@ -108,8 +118,6 @@ No authorization required
Creates list of users with given input array
-
-
### Example
```java
// Import classes:
@@ -117,8 +125,11 @@ Creates list of users with given input array
//import io.swagger.client.api.UserApi;
+
UserApi apiInstance = new UserApi();
-List body = Arrays.asList(new User()); // List | List of user object
+
+List body = ; // List | List of user object
+
try {
apiInstance.createUsersWithListInput(body);
} catch (ApiException e) {
@@ -133,6 +144,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**List<User>**](User.md)| List of user object |
+
### Return type
null (empty response body)
@@ -143,8 +155,9 @@ No authorization required
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Content-Type**: */*
+ - **Accept**: Not defined
+
# **deleteUser**
@@ -161,8 +174,11 @@ This can only be done by the logged in user.
//import io.swagger.client.api.UserApi;
+
UserApi apiInstance = new UserApi();
-String username = "username_example"; // String | The name that needs to be deleted
+
+String username = Arrays.asList("username_example"); // String | The name that needs to be deleted
+
try {
apiInstance.deleteUser(username);
} catch (ApiException e) {
@@ -175,7 +191,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **username** | **String**| The name that needs to be deleted |
+ **username** | [**String**](.md)| The name that needs to be deleted |
+
### Return type
@@ -188,7 +205,8 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
+
# **getUserByName**
@@ -196,8 +214,6 @@ No authorization required
Get user by user name
-
-
### Example
```java
// Import classes:
@@ -205,8 +221,11 @@ Get user by user name
//import io.swagger.client.api.UserApi;
+
UserApi apiInstance = new UserApi();
-String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
+
+String username = Arrays.asList("username_example"); // String | The name that needs to be fetched. Use user1 for testing.
+
try {
User result = apiInstance.getUserByName(username);
System.out.println(result);
@@ -220,7 +239,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **username** | **String**| The name that needs to be fetched. Use user1 for testing. |
+ **username** | [**String**](.md)| The name that needs to be fetched. Use user1 for testing. |
+
### Return type
@@ -235,14 +255,13 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
+
# **loginUser**
> String loginUser(username, password)
Logs user into the system
-
-
### Example
```java
// Import classes:
@@ -250,9 +269,13 @@ Logs user into the system
//import io.swagger.client.api.UserApi;
+
UserApi apiInstance = new UserApi();
-String username = "username_example"; // String | The user name for login
-String password = "password_example"; // String | The password for login in clear text
+
+String username = Arrays.asList("username_example"); // String | The user name for login
+
+String password = Arrays.asList("password_example"); // String | The password for login in clear text
+
try {
String result = apiInstance.loginUser(username, password);
System.out.println(result);
@@ -266,8 +289,9 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **username** | **String**| The user name for login |
- **password** | **String**| The password for login in clear text |
+ **username** | [**String**](.md)| The user name for login |
+ **password** | [**String**](.md)| The password for login in clear text |
+
### Return type
@@ -282,14 +306,13 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
+
# **logoutUser**
> logoutUser()
Logs out current logged in user session
-
-
### Example
```java
// Import classes:
@@ -297,7 +320,9 @@ Logs out current logged in user session
//import io.swagger.client.api.UserApi;
+
UserApi apiInstance = new UserApi();
+
try {
apiInstance.logoutUser();
} catch (ApiException e) {
@@ -309,6 +334,7 @@ try {
### Parameters
This endpoint does not need any parameter.
+
### Return type
null (empty response body)
@@ -320,11 +346,12 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
+
# **updateUser**
-> updateUser(username, body)
+> updateUser(user, username)
Updated user
@@ -337,11 +364,15 @@ This can only be done by the logged in user.
//import io.swagger.client.api.UserApi;
+
UserApi apiInstance = new UserApi();
-String username = "username_example"; // String | name that need to be deleted
-User body = new User(); // User | Updated user object
+
+User user = ; // User | Updated user object
+
+String username = Arrays.asList("username_example"); // String | name that need to be deleted
+
try {
- apiInstance.updateUser(username, body);
+ apiInstance.updateUser(user, username);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#updateUser");
e.printStackTrace();
@@ -352,8 +383,9 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **username** | **String**| name that need to be deleted |
- **body** | [**User**](User.md)| Updated user object |
+ **user** | [**User**](.md)| Updated user object |
+ **username** | [**String**](.md)| name that need to be deleted |
+
### Return type
@@ -365,6 +397,8 @@ No authorization required
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Content-Type**: */*
+ - **Accept**: Not defined
+
+
diff --git a/samples/client/petstore/java/jersey2-java6/git_push.sh b/samples/client/petstore/java/jersey2-java6/git_push.sh
index ae01b182ae9..ed374619b13 100644
--- a/samples/client/petstore/java/jersey2-java6/git_push.sh
+++ b/samples/client/petstore/java/jersey2-java6/git_push.sh
@@ -36,7 +36,7 @@ git_remote=`git remote`
if [ "$git_remote" = "" ]; then # git remote not defined
if [ "$GIT_TOKEN" = "" ]; then
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
else
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
diff --git a/samples/client/petstore/java/jersey2-java6/gradle/wrapper/gradle-wrapper.jar b/samples/client/petstore/java/jersey2-java6/gradle/wrapper/gradle-wrapper.jar
index 2c6137b8789..e69de29bb2d 100644
Binary files a/samples/client/petstore/java/jersey2-java6/gradle/wrapper/gradle-wrapper.jar and b/samples/client/petstore/java/jersey2-java6/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/samples/client/petstore/java/jersey2-java6/pom.xml b/samples/client/petstore/java/jersey2-java6/pom.xml
index e77db066489..fb9d298b382 100644
--- a/samples/client/petstore/java/jersey2-java6/pom.xml
+++ b/samples/client/petstore/java/jersey2-java6/pom.xml
@@ -1,278 +1,273 @@
- 4.0.0
- io.swagger
- swagger-petstore-jersey2-java6
- jar
- swagger-petstore-jersey2-java6
- 1.0.0
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ 4.0.0
+ io.swagger
+ swagger-petstore-jersey2-java6
+ jar
+ swagger-petstore-jersey2-java6
+ 1.0.0
+ https://github.com/swagger-api/swagger-codegen
+ Swagger Java
+
+ scm:git:git@github.com:swagger-api/swagger-codegen.git
+ scm:git:git@github.com:swagger-api/swagger-codegen.git
https://github.com/swagger-api/swagger-codegen
- Swagger Java
-
- scm:git:git@github.com:swagger-api/swagger-codegen.git
- scm:git:git@github.com:swagger-api/swagger-codegen.git
- https://github.com/swagger-api/swagger-codegen
-
+
+
+ 2.2.0
+
-
-
- Unlicense
- http://www.apache.org/licenses/LICENSE-2.0.html
- repo
-
-
+
+
+ Unlicense
+ http://www.apache.org/licenses/LICENSE-2.0.html
+ repo
+
+
-
-
- Swagger
- apiteam@swagger.io
- Swagger
- http://swagger.io
-
-
+
+
+ Swagger
+ apiteam@swagger.io
+ Swagger
+ http://swagger.io
+
+
-
-
-
- org.apache.maven.plugins
- maven-enforcer-plugin
- 3.0.0-M1
-
-
- enforce-maven
-
- enforce
-
-
-
-
- 2.2.0
-
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
- 2.12
-
-
-
- loggerPath
- conf/log4j.properties
-
-
- -Xms512m -Xmx1500m
- methods
- pertest
-
-
-
- maven-dependency-plugin
-
-
- package
-
- copy-dependencies
-
-
- ${project.build.directory}/lib
-
-
-
-
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 2.12
+
+
+
+ loggerPath
+ conf/log4j.properties
+
+
+ -Xms512m -Xmx1500m
+ methods
+ pertest
+
+
+
+ maven-dependency-plugin
+
+
+ package
+
+ copy-dependencies
+
+
+ ${project.build.directory}/lib
+
+
+
+
-
-
- org.apache.maven.plugins
- maven-jar-plugin
- 2.6
-
-
-
- jar
- test-jar
-
-
-
-
-
-
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ 2.6
+
+
+
+ jar
+ test-jar
+
+
+
+
+
+
-
- org.codehaus.mojo
- build-helper-maven-plugin
-
-
- add_sources
- generate-sources
-
- add-source
-
-
-
-
- src/main/java
-
-
-
-
- add_test_sources
- generate-test-sources
-
- add-test-source
-
-
-
-
- src/test/java
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.6.1
-
-
- 1.7
- 1.7
-
-
-
- org.apache.maven.plugins
- maven-javadoc-plugin
- 2.10.4
-
-
- attach-javadocs
-
- jar
-
-
-
-
-
- org.apache.maven.plugins
- maven-source-plugin
- 2.2.1
-
-
- attach-sources
-
- jar-no-fork
-
-
-
-
-
-
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ add_sources
+ generate-sources
+
+ add-source
+
+
+
+ src/main/java
+
+
+
+
+ add_test_sources
+ generate-test-sources
+
+ add-test-source
+
+
+
+ src/test/java
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.6.1
+
+
+
+ 1.7
+ 1.7
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.10.4
+
+
+ attach-javadocs
+
+ jar
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+ 2.2.1
+
+
+ attach-sources
+
+ jar-no-fork
+
+
+
+
+
+
-
-
- sign-artifacts
-
-
-
- org.apache.maven.plugins
- maven-gpg-plugin
- 1.5
-
-
- sign-artifacts
- verify
-
- sign
-
-
-
-
-
-
-
-
+
+
+ sign-artifacts
+
+
+
+ org.apache.maven.plugins
+ maven-gpg-plugin
+ 1.5
+
+
+ sign-artifacts
+ verify
+
+ sign
+
+
+
+
+
+
+
+
-
-
- io.swagger
- swagger-annotations
- ${swagger-core-version}
-
+
+
+ io.swagger
+ swagger-annotations
+ ${swagger-core-version}
+
-
-
- org.glassfish.jersey.core
- jersey-client
- ${jersey-version}
-
-
- org.glassfish.jersey.media
- jersey-media-multipart
- ${jersey-version}
-
-
- org.glassfish.jersey.media
- jersey-media-json-jackson
- ${jersey-version}
-
+
+
+ org.glassfish.jersey.core
+ jersey-client
+ ${jersey-version}
+
+
+ org.glassfish.jersey.media
+ jersey-media-multipart
+ ${jersey-version}
+
+
+ org.glassfish.jersey.media
+ jersey-media-json-jackson
+ ${jersey-version}
+
-
-
- com.fasterxml.jackson.core
- jackson-core
- ${jackson-version}
-
-
- com.fasterxml.jackson.core
- jackson-annotations
- ${jackson-version}
-
-
- com.fasterxml.jackson.core
- jackson-databind
- ${jackson-version}
-
-
- com.github.joschi.jackson
- jackson-datatype-threetenbp
- ${jackson-version}
-
-
-
- com.brsanthu
- migbase64
- 2.2
-
-
- org.apache.commons
- commons-lang3
- ${commons_lang3_version}
-
-
- commons-io
- commons-io
- ${commons_io_version}
-
-
-
- junit
- junit
- ${junit-version}
- test
-
-
-
- UTF-8
- 1.5.15
- 2.6
- 2.5
- 3.6
- 2.6.4
- 1.0.0
- 4.12
-
+
+
+ com.fasterxml.jackson.core
+ jackson-core
+ ${jackson-version}
+
+
+ com.fasterxml.jackson.core
+ jackson-annotations
+ ${jackson-version}
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+ ${jackson-version}
+
+
+
+
+
+
+ com.github.joschi.jackson
+ jackson-datatype-threetenbp
+ ${jackson-version}
+
+
+
+
+
+ com.brsanthu
+ migbase64
+ 2.2
+
+
+
+
+ org.apache.commons
+ commons-lang3
+ ${commons_lang3_version}
+
+
+ commons-io
+ commons-io
+ ${commons_io_version}
+
+
+
+
+
+ junit
+ junit
+ ${junit-version}
+ test
+
+
+
+ 1.5.15
+
+
+ 2.6
+ 2.5
+ 3.6
+
+ 2.6.4
+ 1.0.0
+ 4.12
+
diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/ApiClient.java b/samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/ApiClient.java
index 56486db2a14..1290ae29484 100644
--- a/samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/ApiClient.java
+++ b/samples/client/petstore/java/jersey2-java6/src/main/java/io/swagger/client/ApiClient.java
@@ -15,6 +15,7 @@
import org.glassfish.jersey.client.ClientProperties;
import org.glassfish.jersey.client.HttpUrlConnectorProvider;
import org.glassfish.jersey.jackson.JacksonFeature;
+
import org.glassfish.jersey.media.multipart.FormDataBodyPart;
import org.glassfish.jersey.media.multipart.FormDataContentDisposition;
import org.glassfish.jersey.media.multipart.MultiPart;
@@ -23,8 +24,10 @@
import java.io.IOException;
import java.io.InputStream;
+
+
import org.apache.commons.io.FileUtils;
-import org.glassfish.jersey.filter.LoggingFilter;
+
import java.util.Collection;
import java.util.Collections;
import java.util.Map;
@@ -55,7 +58,6 @@ public class ApiClient {
protected String basePath = "http://petstore.swagger.io:80/v2";
protected boolean debugging = false;
protected int connectionTimeout = 0;
- private int readTimeout = 0;
protected Client httpClient;
protected JSON json;
@@ -302,27 +304,6 @@ public ApiClient setConnectTimeout(int connectionTimeout) {
return this;
}
- /**
- * read timeout (in milliseconds).
- * @return Read timeout
- */
- public int getReadTimeout() {
- return readTimeout;
- }
-
- /**
- * Set the read timeout (in milliseconds).
- * A value of 0 means no timeout, otherwise values must be between 1 and
- * {@link Integer#MAX_VALUE}.
- * @param readTimeout Read timeout in milliseconds
- * @return API client
- */
- public ApiClient setReadTimeout(int readTimeout) {
- this.readTimeout = readTimeout;
- httpClient.property(ClientProperties.READ_TIMEOUT, readTimeout);
- return this;
- }
-
/**
* Get the date format used to parse/format date parameters.
* @return Date format
@@ -585,6 +566,8 @@ public T deserialize(Response response, GenericType returnType) throws Ap
List