forked from loafle/openapi-generator-original
remove generation timestamp
This commit is contained in:
parent
870c745e6f
commit
131cbeb350
@ -26,7 +26,7 @@ fi
|
|||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# 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"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -c bin/java-petstore-retrofit2-play24.json -o samples/client/petstore/java/retrofit2-play24"
|
ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -c bin/java-petstore-retrofit2-play24.json -o samples/client/petstore/java/retrofit2-play24 -DhideGenerationTimestamp=true"
|
||||||
|
|
||||||
echo "Removing files and folders under samples/client/petstore/java/retrofit2-play24/src/main"
|
echo "Removing files and folders under samples/client/petstore/java/retrofit2-play24/src/main"
|
||||||
rm -rf samples/client/petstore/java/retrofit2-play24/src/main
|
rm -rf samples/client/petstore/java/retrofit2-play24/src/main
|
||||||
|
@ -52,8 +52,8 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
|
|||||||
protected String groupId = "io.swagger";
|
protected String groupId = "io.swagger";
|
||||||
protected String artifactId = "swagger-java";
|
protected String artifactId = "swagger-java";
|
||||||
protected String artifactVersion = "1.0.0";
|
protected String artifactVersion = "1.0.0";
|
||||||
protected String licenseName = "Apache License, Version 2.0";
|
protected String licenseName = "Unlicense";
|
||||||
protected String licenseUrl = "http://www.apache.org/licenses/LICENSE-2.0";
|
protected String licenseUrl = "http://unlicense.org";
|
||||||
protected String projectFolder = "src" + File.separator + "main";
|
protected String projectFolder = "src" + File.separator + "main";
|
||||||
protected String projectTestFolder = "src" + File.separator + "test";
|
protected String projectTestFolder = "src" + File.separator + "test";
|
||||||
protected String sourceFolder = projectFolder + File.separator + "java";
|
protected String sourceFolder = projectFolder + File.separator + "java";
|
||||||
|
@ -15,6 +15,14 @@
|
|||||||
<maven>2.2.0</maven>
|
<maven>2.2.0</maven>
|
||||||
</prerequisites>
|
</prerequisites>
|
||||||
|
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>Unlicense</name>
|
||||||
|
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
@ -19,7 +19,7 @@ public interface FakeApi extends ApiClient.Api {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
*
|
* To test \"client\" model
|
||||||
* @param body client model (required)
|
* @param body client model (required)
|
||||||
* @return Client
|
* @return Client
|
||||||
*/
|
*/
|
||||||
@ -58,7 +58,7 @@ public interface FakeApi extends ApiClient.Api {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* To test enum parameters
|
* To test enum parameters
|
||||||
*
|
* To test enum parameters
|
||||||
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
||||||
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
||||||
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
||||||
@ -77,5 +77,5 @@ public interface FakeApi extends ApiClient.Api {
|
|||||||
|
|
||||||
"enum_header_string: {enumHeaderString}"
|
"enum_header_string: {enumHeaderString}"
|
||||||
})
|
})
|
||||||
void testEnumParameters(@Param("enumFormStringArray") List<String> enumFormStringArray, @Param("enumFormString") String enumFormString, @Param("enumHeaderStringArray") List<String> enumHeaderStringArray, @Param("enumHeaderString") String enumHeaderString, @Param("enumQueryStringArray") List<String> enumQueryStringArray, @Param("enumQueryString") String enumQueryString, @Param("enumQueryInteger") BigDecimal enumQueryInteger, @Param("enumQueryDouble") Double enumQueryDouble);
|
void testEnumParameters(@Param("enumFormStringArray") List<String> enumFormStringArray, @Param("enumFormString") String enumFormString, @Param("enumHeaderStringArray") List<String> enumHeaderStringArray, @Param("enumHeaderString") String enumHeaderString, @Param("enumQueryStringArray") List<String> enumQueryStringArray, @Param("enumQueryString") String enumQueryString, @Param("enumQueryInteger") Integer enumQueryInteger, @Param("enumQueryDouble") Double enumQueryDouble);
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ public class AnimalFarm extends ArrayList<Animal> {
|
|||||||
if (o == null || getClass() != o.getClass()) {
|
if (o == null || getClass() != o.getClass()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return super.equals(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -73,8 +73,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get integer
|
* Get integer
|
||||||
* minimum: 10.0
|
* minimum: 10
|
||||||
* maximum: 100.0
|
* maximum: 100
|
||||||
* @return integer
|
* @return integer
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@ -93,8 +93,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get int32
|
* Get int32
|
||||||
* minimum: 20.0
|
* minimum: 20
|
||||||
* maximum: 200.0
|
* maximum: 200
|
||||||
* @return int32
|
* @return int32
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
|
@ -15,6 +15,8 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
To test \"client\" model
|
To test \"client\" model
|
||||||
|
|
||||||
|
To test \"client\" model
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```java
|
```java
|
||||||
// Import classes:
|
// Import classes:
|
||||||
@ -137,6 +139,8 @@ null (empty response body)
|
|||||||
|
|
||||||
To test enum parameters
|
To test enum parameters
|
||||||
|
|
||||||
|
To test enum parameters
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```java
|
```java
|
||||||
// Import classes:
|
// Import classes:
|
||||||
@ -151,7 +155,7 @@ List<String> enumHeaderStringArray = Arrays.asList("enumHeaderStringArray_exampl
|
|||||||
String enumHeaderString = "-efg"; // String | Header parameter enum test (string)
|
String enumHeaderString = "-efg"; // String | Header parameter enum test (string)
|
||||||
List<String> enumQueryStringArray = Arrays.asList("enumQueryStringArray_example"); // List<String> | Query parameter enum test (string array)
|
List<String> enumQueryStringArray = Arrays.asList("enumQueryStringArray_example"); // List<String> | Query parameter enum test (string array)
|
||||||
String enumQueryString = "-efg"; // String | Query parameter enum test (string)
|
String enumQueryString = "-efg"; // String | Query parameter enum test (string)
|
||||||
BigDecimal enumQueryInteger = new BigDecimal(); // BigDecimal | Query parameter enum test (double)
|
Integer enumQueryInteger = 56; // Integer | Query parameter enum test (double)
|
||||||
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
||||||
try {
|
try {
|
||||||
apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
||||||
@ -171,7 +175,7 @@ Name | Type | Description | Notes
|
|||||||
**enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
|
**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: >, $]
|
**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)]
|
**enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
|
||||||
**enumQueryInteger** | **BigDecimal**| Query parameter enum test (double) | [optional]
|
**enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional]
|
||||||
**enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional]
|
**enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
@ -11,6 +11,14 @@
|
|||||||
<maven>2.2.0</maven>
|
<maven>2.2.0</maven>
|
||||||
</prerequisites>
|
</prerequisites>
|
||||||
|
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>Unlicense</name>
|
||||||
|
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
@ -53,7 +53,7 @@ public class FakeApi {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
*
|
* To test \"client\" model
|
||||||
* @param body client model (required)
|
* @param body client model (required)
|
||||||
* @return Client
|
* @return Client
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
@ -190,7 +190,7 @@ if (paramCallback != null)
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* To test enum parameters
|
* To test enum parameters
|
||||||
*
|
* To test enum parameters
|
||||||
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
||||||
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
||||||
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
||||||
@ -201,7 +201,7 @@ if (paramCallback != null)
|
|||||||
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void testEnumParameters(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, BigDecimal enumQueryInteger, Double enumQueryDouble) throws ApiException {
|
public void testEnumParameters(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble) throws ApiException {
|
||||||
Object localVarPostBody = null;
|
Object localVarPostBody = null;
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
|
@ -32,7 +32,7 @@ public class AnimalFarm extends ArrayList<Animal> {
|
|||||||
if (o == null || getClass() != o.getClass()) {
|
if (o == null || getClass() != o.getClass()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return super.equals(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -73,8 +73,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get integer
|
* Get integer
|
||||||
* minimum: 10.0
|
* minimum: 10
|
||||||
* maximum: 100.0
|
* maximum: 100
|
||||||
* @return integer
|
* @return integer
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@ -93,8 +93,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get int32
|
* Get int32
|
||||||
* minimum: 20.0
|
* minimum: 20
|
||||||
* maximum: 200.0
|
* maximum: 200
|
||||||
* @return int32
|
* @return int32
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
|
@ -15,6 +15,8 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
To test \"client\" model
|
To test \"client\" model
|
||||||
|
|
||||||
|
To test \"client\" model
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```java
|
```java
|
||||||
// Import classes:
|
// Import classes:
|
||||||
@ -137,6 +139,8 @@ null (empty response body)
|
|||||||
|
|
||||||
To test enum parameters
|
To test enum parameters
|
||||||
|
|
||||||
|
To test enum parameters
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```java
|
```java
|
||||||
// Import classes:
|
// Import classes:
|
||||||
@ -151,7 +155,7 @@ List<String> enumHeaderStringArray = Arrays.asList("enumHeaderStringArray_exampl
|
|||||||
String enumHeaderString = "-efg"; // String | Header parameter enum test (string)
|
String enumHeaderString = "-efg"; // String | Header parameter enum test (string)
|
||||||
List<String> enumQueryStringArray = Arrays.asList("enumQueryStringArray_example"); // List<String> | Query parameter enum test (string array)
|
List<String> enumQueryStringArray = Arrays.asList("enumQueryStringArray_example"); // List<String> | Query parameter enum test (string array)
|
||||||
String enumQueryString = "-efg"; // String | Query parameter enum test (string)
|
String enumQueryString = "-efg"; // String | Query parameter enum test (string)
|
||||||
BigDecimal enumQueryInteger = new BigDecimal(); // BigDecimal | Query parameter enum test (double)
|
Integer enumQueryInteger = 56; // Integer | Query parameter enum test (double)
|
||||||
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
||||||
try {
|
try {
|
||||||
apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
||||||
@ -171,7 +175,7 @@ Name | Type | Description | Notes
|
|||||||
**enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
|
**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: >, $]
|
**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)]
|
**enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
|
||||||
**enumQueryInteger** | **BigDecimal**| Query parameter enum test (double) | [optional]
|
**enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional]
|
||||||
**enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional]
|
**enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
@ -15,6 +15,14 @@
|
|||||||
<maven>2.2.0</maven>
|
<maven>2.2.0</maven>
|
||||||
</prerequisites>
|
</prerequisites>
|
||||||
|
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>Unlicense</name>
|
||||||
|
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
@ -39,7 +39,7 @@ public class FakeApi {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
*
|
* To test \"client\" model
|
||||||
* @param body client model (required)
|
* @param body client model (required)
|
||||||
* @return Client
|
* @return Client
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
@ -176,7 +176,7 @@ if (paramCallback != null)
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* To test enum parameters
|
* To test enum parameters
|
||||||
*
|
* To test enum parameters
|
||||||
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
||||||
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
||||||
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
||||||
@ -187,7 +187,7 @@ if (paramCallback != null)
|
|||||||
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void testEnumParameters(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, BigDecimal enumQueryInteger, Double enumQueryDouble) throws ApiException {
|
public void testEnumParameters(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble) throws ApiException {
|
||||||
Object localVarPostBody = null;
|
Object localVarPostBody = null;
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
|
@ -32,7 +32,7 @@ public class AnimalFarm extends ArrayList<Animal> {
|
|||||||
if (o == null || getClass() != o.getClass()) {
|
if (o == null || getClass() != o.getClass()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return super.equals(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -73,8 +73,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get integer
|
* Get integer
|
||||||
* minimum: 10.0
|
* minimum: 10
|
||||||
* maximum: 100.0
|
* maximum: 100
|
||||||
* @return integer
|
* @return integer
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@ -93,8 +93,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get int32
|
* Get int32
|
||||||
* minimum: 20.0
|
* minimum: 20
|
||||||
* maximum: 200.0
|
* maximum: 200
|
||||||
* @return int32
|
* @return int32
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
|
@ -15,6 +15,8 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
To test \"client\" model
|
To test \"client\" model
|
||||||
|
|
||||||
|
To test \"client\" model
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```java
|
```java
|
||||||
// Import classes:
|
// Import classes:
|
||||||
@ -137,6 +139,8 @@ null (empty response body)
|
|||||||
|
|
||||||
To test enum parameters
|
To test enum parameters
|
||||||
|
|
||||||
|
To test enum parameters
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```java
|
```java
|
||||||
// Import classes:
|
// Import classes:
|
||||||
@ -151,7 +155,7 @@ List<String> enumHeaderStringArray = Arrays.asList("enumHeaderStringArray_exampl
|
|||||||
String enumHeaderString = "-efg"; // String | Header parameter enum test (string)
|
String enumHeaderString = "-efg"; // String | Header parameter enum test (string)
|
||||||
List<String> enumQueryStringArray = Arrays.asList("enumQueryStringArray_example"); // List<String> | Query parameter enum test (string array)
|
List<String> enumQueryStringArray = Arrays.asList("enumQueryStringArray_example"); // List<String> | Query parameter enum test (string array)
|
||||||
String enumQueryString = "-efg"; // String | Query parameter enum test (string)
|
String enumQueryString = "-efg"; // String | Query parameter enum test (string)
|
||||||
BigDecimal enumQueryInteger = new BigDecimal(); // BigDecimal | Query parameter enum test (double)
|
Integer enumQueryInteger = 56; // Integer | Query parameter enum test (double)
|
||||||
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
||||||
try {
|
try {
|
||||||
apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
||||||
@ -171,7 +175,7 @@ Name | Type | Description | Notes
|
|||||||
**enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
|
**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: >, $]
|
**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)]
|
**enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
|
||||||
**enumQueryInteger** | **BigDecimal**| Query parameter enum test (double) | [optional]
|
**enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional]
|
||||||
**enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional]
|
**enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
@ -15,6 +15,14 @@
|
|||||||
<maven>2.2.0</maven>
|
<maven>2.2.0</maven>
|
||||||
</prerequisites>
|
</prerequisites>
|
||||||
|
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>Unlicense</name>
|
||||||
|
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
@ -39,7 +39,7 @@ public class FakeApi {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
*
|
* To test \"client\" model
|
||||||
* @param body client model (required)
|
* @param body client model (required)
|
||||||
* @return Client
|
* @return Client
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
@ -176,7 +176,7 @@ if (paramCallback != null)
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* To test enum parameters
|
* To test enum parameters
|
||||||
*
|
* To test enum parameters
|
||||||
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
||||||
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
||||||
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
||||||
@ -187,7 +187,7 @@ if (paramCallback != null)
|
|||||||
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void testEnumParameters(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, BigDecimal enumQueryInteger, Double enumQueryDouble) throws ApiException {
|
public void testEnumParameters(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble) throws ApiException {
|
||||||
Object localVarPostBody = null;
|
Object localVarPostBody = null;
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
|
@ -32,7 +32,7 @@ public class AnimalFarm extends ArrayList<Animal> {
|
|||||||
if (o == null || getClass() != o.getClass()) {
|
if (o == null || getClass() != o.getClass()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return super.equals(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -73,8 +73,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get integer
|
* Get integer
|
||||||
* minimum: 10.0
|
* minimum: 10
|
||||||
* maximum: 100.0
|
* maximum: 100
|
||||||
* @return integer
|
* @return integer
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@ -93,8 +93,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get int32
|
* Get int32
|
||||||
* minimum: 20.0
|
* minimum: 20
|
||||||
* maximum: 200.0
|
* maximum: 200
|
||||||
* @return int32
|
* @return int32
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
|
@ -15,6 +15,14 @@
|
|||||||
<maven>2.2.0</maven>
|
<maven>2.2.0</maven>
|
||||||
</prerequisites>
|
</prerequisites>
|
||||||
|
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>Unlicense</name>
|
||||||
|
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
@ -129,7 +137,6 @@
|
|||||||
<artifactId>joda-time</artifactId>
|
<artifactId>joda-time</artifactId>
|
||||||
<version>${jodatime-version}</version>
|
<version>${jodatime-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- test dependencies -->
|
<!-- test dependencies -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
|
@ -15,6 +15,14 @@
|
|||||||
<maven>2.2.0</maven>
|
<maven>2.2.0</maven>
|
||||||
</prerequisites>
|
</prerequisites>
|
||||||
|
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>Unlicense</name>
|
||||||
|
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
@ -20,7 +20,7 @@ public interface FakeApi {
|
|||||||
/**
|
/**
|
||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
* Sync method
|
* Sync method
|
||||||
*
|
* To test \"client\" model
|
||||||
* @param body client model (required)
|
* @param body client model (required)
|
||||||
* @return Client
|
* @return Client
|
||||||
*/
|
*/
|
||||||
@ -98,7 +98,7 @@ public interface FakeApi {
|
|||||||
/**
|
/**
|
||||||
* To test enum parameters
|
* To test enum parameters
|
||||||
* Sync method
|
* Sync method
|
||||||
*
|
* To test enum parameters
|
||||||
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
||||||
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
||||||
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
||||||
@ -113,7 +113,7 @@ public interface FakeApi {
|
|||||||
@retrofit.http.FormUrlEncoded
|
@retrofit.http.FormUrlEncoded
|
||||||
@GET("/fake")
|
@GET("/fake")
|
||||||
Void testEnumParameters(
|
Void testEnumParameters(
|
||||||
@retrofit.http.Field("enum_form_string_array") List<String> enumFormStringArray, @retrofit.http.Field("enum_form_string") String enumFormString, @retrofit.http.Header("enum_header_string_array") List<String> enumHeaderStringArray, @retrofit.http.Header("enum_header_string") String enumHeaderString, @retrofit.http.Query("enum_query_string_array") CSVParams enumQueryStringArray, @retrofit.http.Query("enum_query_string") String enumQueryString, @retrofit.http.Query("enum_query_integer") BigDecimal enumQueryInteger, @retrofit.http.Field("enum_query_double") Double enumQueryDouble
|
@retrofit.http.Field("enum_form_string_array") List<String> enumFormStringArray, @retrofit.http.Field("enum_form_string") String enumFormString, @retrofit.http.Header("enum_header_string_array") List<String> enumHeaderStringArray, @retrofit.http.Header("enum_header_string") String enumHeaderString, @retrofit.http.Query("enum_query_string_array") CSVParams enumQueryStringArray, @retrofit.http.Query("enum_query_string") String enumQueryString, @retrofit.http.Query("enum_query_integer") Integer enumQueryInteger, @retrofit.http.Field("enum_query_double") Double enumQueryDouble
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -134,6 +134,6 @@ public interface FakeApi {
|
|||||||
@retrofit.http.FormUrlEncoded
|
@retrofit.http.FormUrlEncoded
|
||||||
@GET("/fake")
|
@GET("/fake")
|
||||||
void testEnumParameters(
|
void testEnumParameters(
|
||||||
@retrofit.http.Field("enum_form_string_array") List<String> enumFormStringArray, @retrofit.http.Field("enum_form_string") String enumFormString, @retrofit.http.Header("enum_header_string_array") List<String> enumHeaderStringArray, @retrofit.http.Header("enum_header_string") String enumHeaderString, @retrofit.http.Query("enum_query_string_array") CSVParams enumQueryStringArray, @retrofit.http.Query("enum_query_string") String enumQueryString, @retrofit.http.Query("enum_query_integer") BigDecimal enumQueryInteger, @retrofit.http.Field("enum_query_double") Double enumQueryDouble, Callback<Void> cb
|
@retrofit.http.Field("enum_form_string_array") List<String> enumFormStringArray, @retrofit.http.Field("enum_form_string") String enumFormString, @retrofit.http.Header("enum_header_string_array") List<String> enumHeaderStringArray, @retrofit.http.Header("enum_header_string") String enumHeaderString, @retrofit.http.Query("enum_query_string_array") CSVParams enumQueryStringArray, @retrofit.http.Query("enum_query_string") String enumQueryString, @retrofit.http.Query("enum_query_integer") Integer enumQueryInteger, @retrofit.http.Field("enum_query_double") Double enumQueryDouble, Callback<Void> cb
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ public class AnimalFarm extends ArrayList<Animal> {
|
|||||||
if (o == null || getClass() != o.getClass()) {
|
if (o == null || getClass() != o.getClass()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return super.equals(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -72,8 +72,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get integer
|
* Get integer
|
||||||
* minimum: 10.0
|
* minimum: 10
|
||||||
* maximum: 100.0
|
* maximum: 100
|
||||||
* @return integer
|
* @return integer
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@ -92,8 +92,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get int32
|
* Get int32
|
||||||
* minimum: 20.0
|
* minimum: 20
|
||||||
* maximum: 200.0
|
* maximum: 200
|
||||||
* @return int32
|
* @return int32
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
|
@ -15,6 +15,14 @@
|
|||||||
<maven>2.2.0</maven>
|
<maven>2.2.0</maven>
|
||||||
</prerequisites>
|
</prerequisites>
|
||||||
|
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>Unlicense</name>
|
||||||
|
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
package io.swagger.client;
|
package io.swagger.client;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class Pair {
|
public class Pair {
|
||||||
private String name = "";
|
private String name = "";
|
||||||
private String value = "";
|
private String value = "";
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
package io.swagger.client;
|
package io.swagger.client;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class StringUtil {
|
public class StringUtil {
|
||||||
/**
|
/**
|
||||||
* Check if the given array contains the given value (with case-insensitive comparison).
|
* Check if the given array contains the given value (with case-insensitive comparison).
|
||||||
|
@ -21,7 +21,7 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* Holds ApiKey auth info
|
* Holds ApiKey auth info
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class ApiKeyAuth implements Authentication {
|
public class ApiKeyAuth implements Authentication {
|
||||||
private final String location;
|
private final String location;
|
||||||
private final String paramName;
|
private final String paramName;
|
||||||
|
@ -26,7 +26,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* AdditionalPropertiesClass
|
* AdditionalPropertiesClass
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class AdditionalPropertiesClass {
|
public class AdditionalPropertiesClass {
|
||||||
@JsonProperty("map_property")
|
@JsonProperty("map_property")
|
||||||
private Map<String, String> mapProperty = new HashMap<String, String>();
|
private Map<String, String> mapProperty = new HashMap<String, String>();
|
||||||
|
@ -25,7 +25,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* Animal
|
* Animal
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className" )
|
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className" )
|
||||||
@JsonSubTypes({
|
@JsonSubTypes({
|
||||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||||
})
|
})
|
||||||
|
@ -22,7 +22,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* AnimalFarm
|
* AnimalFarm
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class AnimalFarm extends ArrayList<Animal> {
|
public class AnimalFarm extends ArrayList<Animal> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -26,7 +26,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* ArrayOfArrayOfNumberOnly
|
* ArrayOfArrayOfNumberOnly
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class ArrayOfArrayOfNumberOnly {
|
public class ArrayOfArrayOfNumberOnly {
|
||||||
@JsonProperty("ArrayArrayNumber")
|
@JsonProperty("ArrayArrayNumber")
|
||||||
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
||||||
|
@ -26,7 +26,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* ArrayOfNumberOnly
|
* ArrayOfNumberOnly
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class ArrayOfNumberOnly {
|
public class ArrayOfNumberOnly {
|
||||||
@JsonProperty("ArrayNumber")
|
@JsonProperty("ArrayNumber")
|
||||||
private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>();
|
private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>();
|
||||||
|
@ -26,7 +26,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* ArrayTest
|
* ArrayTest
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class ArrayTest {
|
public class ArrayTest {
|
||||||
@JsonProperty("array_of_string")
|
@JsonProperty("array_of_string")
|
||||||
private List<String> arrayOfString = new ArrayList<String>();
|
private List<String> arrayOfString = new ArrayList<String>();
|
||||||
|
@ -24,7 +24,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* Cat
|
* Cat
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class Cat extends Animal {
|
public class Cat extends Animal {
|
||||||
@JsonProperty("declawed")
|
@JsonProperty("declawed")
|
||||||
private Boolean declawed = null;
|
private Boolean declawed = null;
|
||||||
|
@ -23,7 +23,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* Category
|
* Category
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class Category {
|
public class Category {
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
@ -24,7 +24,7 @@ import javax.validation.constraints.*;
|
|||||||
* Model for testing model with \"_class\" property
|
* Model for testing model with \"_class\" property
|
||||||
*/
|
*/
|
||||||
@ApiModel(description = "Model for testing model with \"_class\" property")
|
@ApiModel(description = "Model for testing model with \"_class\" property")
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class ClassModel {
|
public class ClassModel {
|
||||||
@JsonProperty("_class")
|
@JsonProperty("_class")
|
||||||
private String propertyClass = null;
|
private String propertyClass = null;
|
||||||
|
@ -23,7 +23,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* Client
|
* Client
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class Client {
|
public class Client {
|
||||||
@JsonProperty("client")
|
@JsonProperty("client")
|
||||||
private String client = null;
|
private String client = null;
|
||||||
|
@ -24,7 +24,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* Dog
|
* Dog
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class Dog extends Animal {
|
public class Dog extends Animal {
|
||||||
@JsonProperty("breed")
|
@JsonProperty("breed")
|
||||||
private String breed = null;
|
private String breed = null;
|
||||||
|
@ -25,7 +25,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* EnumArrays
|
* EnumArrays
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class EnumArrays {
|
public class EnumArrays {
|
||||||
/**
|
/**
|
||||||
* Gets or Sets justSymbol
|
* Gets or Sets justSymbol
|
||||||
|
@ -24,7 +24,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* EnumTest
|
* EnumTest
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class EnumTest {
|
public class EnumTest {
|
||||||
/**
|
/**
|
||||||
* Gets or Sets enumString
|
* Gets or Sets enumString
|
||||||
|
@ -26,7 +26,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* FormatTest
|
* FormatTest
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class FormatTest {
|
public class FormatTest {
|
||||||
@JsonProperty("integer")
|
@JsonProperty("integer")
|
||||||
private Integer integer = null;
|
private Integer integer = null;
|
||||||
|
@ -23,7 +23,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* HasOnlyReadOnly
|
* HasOnlyReadOnly
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class HasOnlyReadOnly {
|
public class HasOnlyReadOnly {
|
||||||
@JsonProperty("bar")
|
@JsonProperty("bar")
|
||||||
private String bar = null;
|
private String bar = null;
|
||||||
|
@ -26,7 +26,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class MapTest {
|
public class MapTest {
|
||||||
@JsonProperty("map_map_of_string")
|
@JsonProperty("map_map_of_string")
|
||||||
private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>();
|
private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>();
|
||||||
|
@ -28,7 +28,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* MixedPropertiesAndAdditionalPropertiesClass
|
* MixedPropertiesAndAdditionalPropertiesClass
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class MixedPropertiesAndAdditionalPropertiesClass {
|
public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||||
@JsonProperty("uuid")
|
@JsonProperty("uuid")
|
||||||
private String uuid = null;
|
private String uuid = null;
|
||||||
|
@ -24,7 +24,7 @@ import javax.validation.constraints.*;
|
|||||||
* Model for testing model name starting with number
|
* Model for testing model name starting with number
|
||||||
*/
|
*/
|
||||||
@ApiModel(description = "Model for testing model name starting with number")
|
@ApiModel(description = "Model for testing model name starting with number")
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class Model200Response {
|
public class Model200Response {
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
private Integer name = null;
|
private Integer name = null;
|
||||||
|
@ -23,7 +23,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* ModelApiResponse
|
* ModelApiResponse
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class ModelApiResponse {
|
public class ModelApiResponse {
|
||||||
@JsonProperty("code")
|
@JsonProperty("code")
|
||||||
private Integer code = null;
|
private Integer code = null;
|
||||||
|
@ -24,7 +24,7 @@ import javax.validation.constraints.*;
|
|||||||
* Model for testing reserved words
|
* Model for testing reserved words
|
||||||
*/
|
*/
|
||||||
@ApiModel(description = "Model for testing reserved words")
|
@ApiModel(description = "Model for testing reserved words")
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class ModelReturn {
|
public class ModelReturn {
|
||||||
@JsonProperty("return")
|
@JsonProperty("return")
|
||||||
private Integer _return = null;
|
private Integer _return = null;
|
||||||
|
@ -24,7 +24,7 @@ import javax.validation.constraints.*;
|
|||||||
* Model for testing model name same as property name
|
* Model for testing model name same as property name
|
||||||
*/
|
*/
|
||||||
@ApiModel(description = "Model for testing model name same as property name")
|
@ApiModel(description = "Model for testing model name same as property name")
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class Name {
|
public class Name {
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
private Integer name = null;
|
private Integer name = null;
|
||||||
|
@ -24,7 +24,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* NumberOnly
|
* NumberOnly
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class NumberOnly {
|
public class NumberOnly {
|
||||||
@JsonProperty("JustNumber")
|
@JsonProperty("JustNumber")
|
||||||
private BigDecimal justNumber = null;
|
private BigDecimal justNumber = null;
|
||||||
|
@ -24,7 +24,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* Order
|
* Order
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class Order {
|
public class Order {
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
@ -27,7 +27,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* Pet
|
* Pet
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class Pet {
|
public class Pet {
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
@ -23,7 +23,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* ReadOnlyFirst
|
* ReadOnlyFirst
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class ReadOnlyFirst {
|
public class ReadOnlyFirst {
|
||||||
@JsonProperty("bar")
|
@JsonProperty("bar")
|
||||||
private String bar = null;
|
private String bar = null;
|
||||||
|
@ -23,7 +23,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* SpecialModelName
|
* SpecialModelName
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class SpecialModelName {
|
public class SpecialModelName {
|
||||||
@JsonProperty("$special[property.name]")
|
@JsonProperty("$special[property.name]")
|
||||||
private Long specialPropertyName = null;
|
private Long specialPropertyName = null;
|
||||||
|
@ -23,7 +23,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* Tag
|
* Tag
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class Tag {
|
public class Tag {
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
@ -23,7 +23,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* User
|
* User
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
|
||||||
public class User {
|
public class User {
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
@ -15,6 +15,8 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
To test \"client\" model
|
To test \"client\" model
|
||||||
|
|
||||||
|
To test \"client\" model
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```java
|
```java
|
||||||
// Import classes:
|
// Import classes:
|
||||||
@ -138,6 +140,8 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
To test enum parameters
|
To test enum parameters
|
||||||
|
|
||||||
|
To test enum parameters
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```java
|
```java
|
||||||
// Import classes:
|
// Import classes:
|
||||||
@ -152,7 +156,7 @@ List<String> enumHeaderStringArray = Arrays.asList("enumHeaderStringArray_exampl
|
|||||||
String enumHeaderString = "-efg"; // String | Header parameter enum test (string)
|
String enumHeaderString = "-efg"; // String | Header parameter enum test (string)
|
||||||
List<String> enumQueryStringArray = Arrays.asList("enumQueryStringArray_example"); // List<String> | Query parameter enum test (string array)
|
List<String> enumQueryStringArray = Arrays.asList("enumQueryStringArray_example"); // List<String> | Query parameter enum test (string array)
|
||||||
String enumQueryString = "-efg"; // String | Query parameter enum test (string)
|
String enumQueryString = "-efg"; // String | Query parameter enum test (string)
|
||||||
BigDecimal enumQueryInteger = new BigDecimal(); // BigDecimal | Query parameter enum test (double)
|
Integer enumQueryInteger = 56; // Integer | Query parameter enum test (double)
|
||||||
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
Void result = apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
||||||
@ -173,7 +177,7 @@ Name | Type | Description | Notes
|
|||||||
**enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
|
**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: >, $]
|
**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)]
|
**enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
|
||||||
**enumQueryInteger** | **BigDecimal**| Query parameter enum test (double) | [optional]
|
**enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional]
|
||||||
**enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional]
|
**enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
@ -15,6 +15,14 @@
|
|||||||
<maven>2.2.0</maven>
|
<maven>2.2.0</maven>
|
||||||
</prerequisites>
|
</prerequisites>
|
||||||
|
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>Unlicense</name>
|
||||||
|
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
@ -135,6 +143,7 @@
|
|||||||
<version>${jodatime-version}</version>
|
<version>${jodatime-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<!-- test dependencies -->
|
<!-- test dependencies -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
|
@ -18,10 +18,11 @@ import java.util.HashMap;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
public interface FakeApi {
|
public interface FakeApi {
|
||||||
/**
|
/**
|
||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
*
|
* To test \"client\" model
|
||||||
* @param body client model (required)
|
* @param body client model (required)
|
||||||
* @return Call<Client>
|
* @return Call<Client>
|
||||||
*/
|
*/
|
||||||
@ -62,7 +63,7 @@ public interface FakeApi {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* To test enum parameters
|
* To test enum parameters
|
||||||
*
|
* To test enum parameters
|
||||||
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
||||||
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
||||||
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
||||||
@ -77,7 +78,7 @@ public interface FakeApi {
|
|||||||
@retrofit2.http.FormUrlEncoded
|
@retrofit2.http.FormUrlEncoded
|
||||||
@GET("fake")
|
@GET("fake")
|
||||||
Call<Void> testEnumParameters(
|
Call<Void> testEnumParameters(
|
||||||
@retrofit2.http.Field("enum_form_string_array") List<String> enumFormStringArray, @retrofit2.http.Field("enum_form_string") String enumFormString, @retrofit2.http.Header("enum_header_string_array") List<String> enumHeaderStringArray, @retrofit2.http.Header("enum_header_string") String enumHeaderString, @retrofit2.http.Query("enum_query_string_array") CSVParams enumQueryStringArray, @retrofit2.http.Query("enum_query_string") String enumQueryString, @retrofit2.http.Query("enum_query_integer") BigDecimal enumQueryInteger, @retrofit2.http.Field("enum_query_double") Double enumQueryDouble
|
@retrofit2.http.Field("enum_form_string_array") List<String> enumFormStringArray, @retrofit2.http.Field("enum_form_string") String enumFormString, @retrofit2.http.Header("enum_header_string_array") List<String> enumHeaderStringArray, @retrofit2.http.Header("enum_header_string") String enumHeaderString, @retrofit2.http.Query("enum_query_string_array") CSVParams enumQueryStringArray, @retrofit2.http.Query("enum_query_string") String enumQueryString, @retrofit2.http.Query("enum_query_integer") Integer enumQueryInteger, @retrofit2.http.Field("enum_query_double") Double enumQueryDouble
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,7 @@ import java.util.HashMap;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
public interface PetApi {
|
public interface PetApi {
|
||||||
/**
|
/**
|
||||||
* Add a new pet to the store
|
* Add a new pet to the store
|
||||||
|
@ -15,6 +15,7 @@ import java.util.HashMap;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
public interface StoreApi {
|
public interface StoreApi {
|
||||||
/**
|
/**
|
||||||
* Delete purchase order by ID
|
* Delete purchase order by ID
|
||||||
|
@ -15,6 +15,7 @@ import java.util.HashMap;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
public interface UserApi {
|
public interface UserApi {
|
||||||
/**
|
/**
|
||||||
* Create user
|
* Create user
|
||||||
|
@ -32,7 +32,7 @@ public class AnimalFarm extends ArrayList<Animal> {
|
|||||||
if (o == null || getClass() != o.getClass()) {
|
if (o == null || getClass() != o.getClass()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return super.equals(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -72,8 +72,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get integer
|
* Get integer
|
||||||
* minimum: 10.0
|
* minimum: 10
|
||||||
* maximum: 100.0
|
* maximum: 100
|
||||||
* @return integer
|
* @return integer
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@ -92,8 +92,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get int32
|
* Get int32
|
||||||
* minimum: 20.0
|
* minimum: 20
|
||||||
* maximum: 200.0
|
* maximum: 200
|
||||||
* @return int32
|
* @return int32
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
|
@ -15,6 +15,8 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
To test \"client\" model
|
To test \"client\" model
|
||||||
|
|
||||||
|
To test \"client\" model
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```java
|
```java
|
||||||
// Import classes:
|
// Import classes:
|
||||||
@ -138,6 +140,8 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
To test enum parameters
|
To test enum parameters
|
||||||
|
|
||||||
|
To test enum parameters
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```java
|
```java
|
||||||
// Import classes:
|
// Import classes:
|
||||||
@ -152,7 +156,7 @@ List<String> enumHeaderStringArray = Arrays.asList("enumHeaderStringArray_exampl
|
|||||||
String enumHeaderString = "-efg"; // String | Header parameter enum test (string)
|
String enumHeaderString = "-efg"; // String | Header parameter enum test (string)
|
||||||
List<String> enumQueryStringArray = Arrays.asList("enumQueryStringArray_example"); // List<String> | Query parameter enum test (string array)
|
List<String> enumQueryStringArray = Arrays.asList("enumQueryStringArray_example"); // List<String> | Query parameter enum test (string array)
|
||||||
String enumQueryString = "-efg"; // String | Query parameter enum test (string)
|
String enumQueryString = "-efg"; // String | Query parameter enum test (string)
|
||||||
BigDecimal enumQueryInteger = new BigDecimal(); // BigDecimal | Query parameter enum test (double)
|
Integer enumQueryInteger = 56; // Integer | Query parameter enum test (double)
|
||||||
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
Void result = apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
||||||
@ -173,7 +177,7 @@ Name | Type | Description | Notes
|
|||||||
**enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
|
**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: >, $]
|
**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)]
|
**enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
|
||||||
**enumQueryInteger** | **BigDecimal**| Query parameter enum test (double) | [optional]
|
**enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional]
|
||||||
**enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional]
|
**enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
@ -15,6 +15,14 @@
|
|||||||
<maven>2.2.0</maven>
|
<maven>2.2.0</maven>
|
||||||
</prerequisites>
|
</prerequisites>
|
||||||
|
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>Unlicense</name>
|
||||||
|
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
@ -145,6 +153,7 @@
|
|||||||
<version>${retrofit-version}</version>
|
<version>${retrofit-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<!-- test dependencies -->
|
<!-- test dependencies -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
|
@ -18,10 +18,11 @@ import java.util.HashMap;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
public interface FakeApi {
|
public interface FakeApi {
|
||||||
/**
|
/**
|
||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
*
|
* To test \"client\" model
|
||||||
* @param body client model (required)
|
* @param body client model (required)
|
||||||
* @return Call<Client>
|
* @return Call<Client>
|
||||||
*/
|
*/
|
||||||
@ -62,7 +63,7 @@ public interface FakeApi {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* To test enum parameters
|
* To test enum parameters
|
||||||
*
|
* To test enum parameters
|
||||||
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
||||||
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
||||||
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
||||||
@ -77,7 +78,7 @@ public interface FakeApi {
|
|||||||
@retrofit2.http.FormUrlEncoded
|
@retrofit2.http.FormUrlEncoded
|
||||||
@GET("fake")
|
@GET("fake")
|
||||||
Observable<Void> testEnumParameters(
|
Observable<Void> testEnumParameters(
|
||||||
@retrofit2.http.Field("enum_form_string_array") List<String> enumFormStringArray, @retrofit2.http.Field("enum_form_string") String enumFormString, @retrofit2.http.Header("enum_header_string_array") List<String> enumHeaderStringArray, @retrofit2.http.Header("enum_header_string") String enumHeaderString, @retrofit2.http.Query("enum_query_string_array") CSVParams enumQueryStringArray, @retrofit2.http.Query("enum_query_string") String enumQueryString, @retrofit2.http.Query("enum_query_integer") BigDecimal enumQueryInteger, @retrofit2.http.Field("enum_query_double") Double enumQueryDouble
|
@retrofit2.http.Field("enum_form_string_array") List<String> enumFormStringArray, @retrofit2.http.Field("enum_form_string") String enumFormString, @retrofit2.http.Header("enum_header_string_array") List<String> enumHeaderStringArray, @retrofit2.http.Header("enum_header_string") String enumHeaderString, @retrofit2.http.Query("enum_query_string_array") CSVParams enumQueryStringArray, @retrofit2.http.Query("enum_query_string") String enumQueryString, @retrofit2.http.Query("enum_query_integer") Integer enumQueryInteger, @retrofit2.http.Field("enum_query_double") Double enumQueryDouble
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,7 @@ import java.util.HashMap;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
public interface PetApi {
|
public interface PetApi {
|
||||||
/**
|
/**
|
||||||
* Add a new pet to the store
|
* Add a new pet to the store
|
||||||
|
@ -15,6 +15,7 @@ import java.util.HashMap;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
public interface StoreApi {
|
public interface StoreApi {
|
||||||
/**
|
/**
|
||||||
* Delete purchase order by ID
|
* Delete purchase order by ID
|
||||||
|
@ -15,6 +15,7 @@ import java.util.HashMap;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
public interface UserApi {
|
public interface UserApi {
|
||||||
/**
|
/**
|
||||||
* Create user
|
* Create user
|
||||||
|
@ -32,7 +32,7 @@ public class AnimalFarm extends ArrayList<Animal> {
|
|||||||
if (o == null || getClass() != o.getClass()) {
|
if (o == null || getClass() != o.getClass()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return super.equals(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -72,8 +72,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get integer
|
* Get integer
|
||||||
* minimum: 10.0
|
* minimum: 10
|
||||||
* maximum: 100.0
|
* maximum: 100
|
||||||
* @return integer
|
* @return integer
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@ -92,8 +92,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get int32
|
* Get int32
|
||||||
* minimum: 20.0
|
* minimum: 20
|
||||||
* maximum: 200.0
|
* maximum: 200
|
||||||
* @return int32
|
* @return int32
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user