update java okhttp petstore sample

This commit is contained in:
wing328 2017-03-13 00:23:55 +08:00
parent 7733dba002
commit 01eba1872e
41 changed files with 660 additions and 631 deletions

View File

@ -28,6 +28,6 @@ fi
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 -t modules/swagger-codegen/src/main/resources/Java/libraries/okhttp-gson -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -c bin/java-petstore-okhttp-gson.json -o samples/client/petstore/java/okhttp-gson-parcelableModel -DhideGenerationTimestamp=true,parcelableModel=true" ags="$@ generate -t modules/swagger-codegen/src/main/resources/Java/libraries/okhttp-gson -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -c bin/java-petstore-okhttp-gson.json -o samples/client/petstore/java/okhttp-gson-parcelableModel -DhideGenerationTimestamp=true,parcelableModel=true"
rm -rf samples/client/petstore/java/okhttp-gson/src/main rm -rf samples/client/petstore/java/okhttp-gson-parcelableModel/src/main
find samples/client/petstore/java/okhttp-gson -maxdepth 1 -type f ! -name "README.md" -exec rm {} + find samples/client/petstore/java/okhttp-gson-parcelableModel -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
java $JAVA_OPTS -jar $executable $ags java $JAVA_OPTS -jar $executable $ags

View File

@ -175,8 +175,8 @@ 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** | **Integer**| Query parameter enum test (double) | [optional] **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2]
**enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2]
### Return type ### Return type

View File

@ -15,7 +15,7 @@ Name | Type | Description | Notes
**binary** | **byte[]** | | [optional] **binary** | **byte[]** | | [optional]
**date** | [**LocalDate**](LocalDate.md) | | **date** | [**LocalDate**](LocalDate.md) | |
**dateTime** | [**DateTime**](DateTime.md) | | [optional] **dateTime** | [**DateTime**](DateTime.md) | | [optional]
**uuid** | **String** | | [optional] **uuid** | [**UUID**](UUID.md) | | [optional]
**password** | **String** | | **password** | **String** | |

View File

@ -4,7 +4,7 @@
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**uuid** | **String** | | [optional] **uuid** | [**UUID**](UUID.md) | | [optional]
**dateTime** | [**DateTime**](DateTime.md) | | [optional] **dateTime** | [**DateTime**](DateTime.md) | | [optional]
**map** | [**Map<String, Animal>**](Animal.md) | | [optional] **map** | [**Map<String, Animal>**](Animal.md) | | [optional]

View File

@ -1,395 +0,0 @@
<!-- ====================================================================== -->
<!-- -->
<!-- Generated by Maven Help Plugin on 2017-01-21T07:16:46 -->
<!-- See: http://maven.apache.org/plugins/maven-help-plugin/ -->
<!-- -->
<!-- ====================================================================== -->
<!-- ====================================================================== -->
<!-- -->
<!-- Effective POM for project -->
<!-- 'io.swagger:petstore-okhttp-gson-parcelable:jar:1.0.0' -->
<!-- -->
<!-- ====================================================================== -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.swagger</groupId>
<artifactId>petstore-okhttp-gson-parcelable</artifactId>
<version>1.0.0</version>
<name>petstore-okhttp-gson-parcelable</name>
<prerequisites>
<maven>2.2.0</maven>
</prerequisites>
<scm>
<connection>scm:git:git@github.com:swagger-api/swagger-mustache.git</connection>
<developerConnection>scm:git:git@github.com:swagger-api/swagger-codegen.git</developerConnection>
<url>https://github.com/swagger-api/swagger-codegen</url>
</scm>
<properties>
<gson-version>2.6.2</gson-version>
<java.version>1.7</java.version>
<jodatime-version>2.9.3</jodatime-version>
<junit-version>4.12</junit-version>
<maven-plugin-version>1.0.0</maven-plugin-version>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<okhttp-version>2.7.5</okhttp-version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<swagger-core-version>1.5.9</swagger-core-version>
</properties>
<dependencies>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<version>1.5.9</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.squareup.okhttp</groupId>
<artifactId>okhttp</artifactId>
<version>2.7.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.squareup.okhttp</groupId>
<artifactId>logging-interceptor</artifactId>
<version>2.7.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.6.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.9.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
</pluginRepository>
</pluginRepositories>
<build>
<sourceDirectory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java</sourceDirectory>
<scriptSourceDirectory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/scripts</scriptSourceDirectory>
<testSourceDirectory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/java</testSourceDirectory>
<outputDirectory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/okhttp-gson-parcelableModel/target/classes</outputDirectory>
<testOutputDirectory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/okhttp-gson-parcelableModel/target/test-classes</testOutputDirectory>
<resources>
<resource>
<directory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/resources</directory>
</resource>
</resources>
<testResources>
<testResource>
<directory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/okhttp-gson-parcelableModel/src/test/resources</directory>
</testResource>
</testResources>
<directory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/okhttp-gson-parcelableModel/target</directory>
<finalName>petstore-okhttp-gson-parcelable-1.0.0</finalName>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.3</version>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.3.2</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<executions>
<execution>
<id>default-test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<systemProperties>
<property>
<name>loggerPath</name>
<value>conf/log4j.properties</value>
</property>
</systemProperties>
<argLine>-Xms512m -Xmx1500m</argLine>
<parallel>methods</parallel>
<forkMode>pertest</forkMode>
</configuration>
</execution>
</executions>
<configuration>
<systemProperties>
<property>
<name>loggerPath</name>
<value>conf/log4j.properties</value>
</property>
</systemProperties>
<argLine>-Xms512m -Xmx1500m</argLine>
<parallel>methods</parallel>
<forkMode>pertest</forkMode>
</configuration>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/okhttp-gson-parcelableModel/target/lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<id>default-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration />
</execution>
<execution>
<goals>
<goal>jar</goal>
<goal>test-jar</goal>
</goals>
<configuration />
</execution>
</executions>
<configuration />
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.10</version>
<executions>
<execution>
<id>add_sources</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/java</source>
</sources>
</configuration>
</execution>
<execution>
<id>add_test_sources</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>src/test/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<id>gradle-test</id>
<phase>integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>gradle</executable>
<arguments>
<argument>test</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>default-clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>default-testResources</id>
<phase>process-test-resources</phase>
<goals>
<goal>testResources</goal>
</goals>
</execution>
<execution>
<id>default-resources</id>
<phase>process-resources</phase>
<goals>
<goal>resources</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<executions>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>default-testCompile</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>default-install</id>
<phase>install</phase>
<goals>
<goal>install</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
<executions>
<execution>
<id>default-site</id>
<phase>site</phase>
<goals>
<goal>site</goal>
</goals>
<configuration>
<outputDirectory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/okhttp-gson-parcelableModel/target/site</outputDirectory>
<reportPlugins>
<reportPlugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</reportPlugin>
</reportPlugins>
</configuration>
</execution>
<execution>
<id>default-deploy</id>
<phase>site-deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
<configuration>
<outputDirectory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/okhttp-gson-parcelableModel/target/site</outputDirectory>
<reportPlugins>
<reportPlugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</reportPlugin>
</reportPlugins>
</configuration>
</execution>
</executions>
<configuration>
<outputDirectory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/okhttp-gson-parcelableModel/target/site</outputDirectory>
<reportPlugins>
<reportPlugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</reportPlugin>
</reportPlugins>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<outputDirectory>/Users/williamcheng/Code/jan2017/swagger-codegen/samples/client/petstore/java/okhttp-gson-parcelableModel/target/site</outputDirectory>
</reporting>
</project>

View File

@ -2,12 +2,14 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>io.swagger</groupId> <groupId>io.swagger</groupId>
<artifactId>petstore-okhttp-gson-parcelable</artifactId> <artifactId>swagger-petstore-okhttp-gson</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>petstore-okhttp-gson-parcelable</name> <name>swagger-petstore-okhttp-gson</name>
<version>1.0.0</version> <version>1.0.0</version>
<url>https://github.com/swagger-api/swagger-codegen</url>
<description>Swagger Java</description>
<scm> <scm>
<connection>scm:git:git@github.com:swagger-api/swagger-mustache.git</connection> <connection>scm:git:git@github.com:swagger-api/swagger-codegen.git</connection>
<developerConnection>scm:git:git@github.com:swagger-api/swagger-codegen.git</developerConnection> <developerConnection>scm:git:git@github.com:swagger-api/swagger-codegen.git</developerConnection>
<url>https://github.com/swagger-api/swagger-codegen</url> <url>https://github.com/swagger-api/swagger-codegen</url>
</scm> </scm>
@ -15,6 +17,23 @@
<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>
<developers>
<developer>
<name>Swagger</name>
<email>apiteam@swagger.io</email>
<organization>Swagger</organization>
<organizationUrl>http://swagger.io</organizationUrl>
</developer>
</developers>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
@ -97,27 +116,58 @@
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>exec-maven-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<version>1.2.1</version> <version>2.10.4</version>
<executions> <executions>
<execution> <execution>
<id>gradle-test</id> <id>attach-javadocs</id>
<phase>integration-test</phase> <goals>
<goals> <goal>jar</goal>
<goal>exec</goal> </goals>
</goals> </execution>
<configuration> </executions>
<executable>gradle</executable> </plugin>
<arguments> <plugin>
<argument>test</argument> <groupId>org.apache.maven.plugins</groupId>
</arguments> <artifactId>maven-source-plugin</artifactId>
</configuration> <version>2.2.1</version>
</execution> <executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions> </executions>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<profiles>
<profile>
<id>sign-artifacts</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>io.swagger</groupId> <groupId>io.swagger</groupId>
@ -144,7 +194,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>
@ -157,7 +206,7 @@
<java.version>1.7</java.version> <java.version>1.7</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source> <maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target> <maven.compiler.target>${java.version}</maven.compiler.target>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<okhttp-version>2.7.5</okhttp-version> <okhttp-version>2.7.5</okhttp-version>
<gson-version>2.6.2</gson-version> <gson-version>2.6.2</gson-version>
<jodatime-version>2.9.3</jodatime-version> <jodatime-version>2.9.3</jodatime-version>

View File

@ -139,6 +139,7 @@ public class ApiClient {
public ApiClient() { public ApiClient() {
httpClient = new OkHttpClient(); httpClient = new OkHttpClient();
verifyingSsl = true; verifyingSsl = true;
json = new JSON(this); json = new JSON(this);

View File

@ -57,12 +57,19 @@ public class FakeApi {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/* Build call for testClientModel */ /**
private com.squareup.okhttp.Call testClientModelCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for testClientModel
* @param body client model (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testClientModelCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body; Object localVarPostBody = body;
// create path and map variables // create path and map variables
String localVarPath = "/fake".replaceAll("\\{format\\}","json"); String localVarPath = "/fake";
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -175,12 +182,32 @@ public class FakeApi {
apiClient.executeAsync(call, localVarReturnType, callback); apiClient.executeAsync(call, localVarReturnType, callback);
return call; return call;
} }
/* Build call for testEndpointParameters */ /**
private com.squareup.okhttp.Call testEndpointParametersCall(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, LocalDate date, DateTime dateTime, String password, String paramCallback, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for testEndpointParameters
* @param number None (required)
* @param _double None (required)
* @param patternWithoutDelimiter None (required)
* @param _byte None (required)
* @param integer None (optional)
* @param int32 None (optional)
* @param int64 None (optional)
* @param _float None (optional)
* @param string None (optional)
* @param binary None (optional)
* @param date None (optional)
* @param dateTime None (optional)
* @param password None (optional)
* @param paramCallback None (optional)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testEndpointParametersCall(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, LocalDate date, DateTime dateTime, String password, String paramCallback, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
String localVarPath = "/fake".replaceAll("\\{format\\}","json"); String localVarPath = "/fake";
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -371,12 +398,26 @@ public class FakeApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for testEnumParameters */ /**
private com.squareup.okhttp.Call testEnumParametersCall(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for testEnumParameters
* @param enumFormStringArray Form parameter enum test (string array) (optional)
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
* @param enumHeaderString Header parameter enum test (string) (optional, default to -efg)
* @param enumQueryStringArray Query parameter enum test (string array) (optional)
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
* @param enumQueryInteger Query parameter enum test (double) (optional)
* @param enumQueryDouble Query parameter enum test (double) (optional)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testEnumParametersCall(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
String localVarPath = "/fake".replaceAll("\\{format\\}","json"); String localVarPath = "/fake";
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
if (enumQueryStringArray != null) if (enumQueryStringArray != null)

View File

@ -56,12 +56,19 @@ public class PetApi {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/* Build call for addPet */ /**
private com.squareup.okhttp.Call addPetCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for addPet
* @param body Pet object that needs to be added to the store (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call addPetCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body; Object localVarPostBody = body;
// create path and map variables // create path and map variables
String localVarPath = "/pet".replaceAll("\\{format\\}","json"); String localVarPath = "/pet";
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -170,13 +177,21 @@ public class PetApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for deletePet */ /**
private com.squareup.okhttp.Call deletePetCall(Long petId, String apiKey, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for deletePet
* @param petId Pet id to delete (required)
* @param apiKey (optional)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call deletePetCall(Long petId, String apiKey, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
String localVarPath = "/pet/{petId}".replaceAll("\\{format\\}","json") String localVarPath = "/pet/{petId}"
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -290,12 +305,19 @@ public class PetApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for findPetsByStatus */ /**
private com.squareup.okhttp.Call findPetsByStatusCall(List<String> status, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for findPetsByStatus
* @param status Status values that need to be considered for filter (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call findPetsByStatusCall(List<String> status, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
String localVarPath = "/pet/findByStatus".replaceAll("\\{format\\}","json"); String localVarPath = "/pet/findByStatus";
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
if (status != null) if (status != null)
@ -410,12 +432,19 @@ public class PetApi {
apiClient.executeAsync(call, localVarReturnType, callback); apiClient.executeAsync(call, localVarReturnType, callback);
return call; return call;
} }
/* Build call for findPetsByTags */ /**
private com.squareup.okhttp.Call findPetsByTagsCall(List<String> tags, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for findPetsByTags
* @param tags Tags to filter by (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call findPetsByTagsCall(List<String> tags, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
String localVarPath = "/pet/findByTags".replaceAll("\\{format\\}","json"); String localVarPath = "/pet/findByTags";
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
if (tags != null) if (tags != null)
@ -530,13 +559,20 @@ public class PetApi {
apiClient.executeAsync(call, localVarReturnType, callback); apiClient.executeAsync(call, localVarReturnType, callback);
return call; return call;
} }
/* Build call for getPetById */ /**
private com.squareup.okhttp.Call getPetByIdCall(Long petId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for getPetById
* @param petId ID of pet to return (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call getPetByIdCall(Long petId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
String localVarPath = "/pet/{petId}".replaceAll("\\{format\\}","json") String localVarPath = "/pet/{petId}"
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -649,12 +685,19 @@ public class PetApi {
apiClient.executeAsync(call, localVarReturnType, callback); apiClient.executeAsync(call, localVarReturnType, callback);
return call; return call;
} }
/* Build call for updatePet */ /**
private com.squareup.okhttp.Call updatePetCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for updatePet
* @param body Pet object that needs to be added to the store (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call updatePetCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body; Object localVarPostBody = body;
// create path and map variables // create path and map variables
String localVarPath = "/pet".replaceAll("\\{format\\}","json"); String localVarPath = "/pet";
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -763,13 +806,22 @@ public class PetApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for updatePetWithForm */ /**
private com.squareup.okhttp.Call updatePetWithFormCall(Long petId, String name, String status, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for updatePetWithForm
* @param petId ID of pet that needs to be updated (required)
* @param name Updated name of the pet (optional)
* @param status Updated status of the pet (optional)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call updatePetWithFormCall(Long petId, String name, String status, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
String localVarPath = "/pet/{petId}".replaceAll("\\{format\\}","json") String localVarPath = "/pet/{petId}"
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -888,13 +940,22 @@ public class PetApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for uploadFile */ /**
private com.squareup.okhttp.Call uploadFileCall(Long petId, String additionalMetadata, File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for uploadFile
* @param petId ID of pet to update (required)
* @param additionalMetadata Additional data to pass to server (optional)
* @param file file to upload (optional)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call uploadFileCall(Long petId, String additionalMetadata, File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
String localVarPath = "/pet/{petId}/uploadImage".replaceAll("\\{format\\}","json") String localVarPath = "/pet/{petId}/uploadImage"
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString())); .replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();

View File

@ -54,13 +54,20 @@ public class StoreApi {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/* Build call for deleteOrder */ /**
private com.squareup.okhttp.Call deleteOrderCall(String orderId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for deleteOrder
* @param orderId ID of the order that needs to be deleted (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call deleteOrderCall(String orderId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
String localVarPath = "/store/order/{orderId}".replaceAll("\\{format\\}","json") String localVarPath = "/store/order/{orderId}"
.replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString())); .replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString()));
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -169,12 +176,18 @@ public class StoreApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for getInventory */ /**
private com.squareup.okhttp.Call getInventoryCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for getInventory
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call getInventoryCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
String localVarPath = "/store/inventory".replaceAll("\\{format\\}","json"); String localVarPath = "/store/inventory";
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -279,13 +292,20 @@ public class StoreApi {
apiClient.executeAsync(call, localVarReturnType, callback); apiClient.executeAsync(call, localVarReturnType, callback);
return call; return call;
} }
/* Build call for getOrderById */ /**
private com.squareup.okhttp.Call getOrderByIdCall(Long orderId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for getOrderById
* @param orderId ID of pet that needs to be fetched (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call getOrderByIdCall(Long orderId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
String localVarPath = "/store/order/{orderId}".replaceAll("\\{format\\}","json") String localVarPath = "/store/order/{orderId}"
.replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString())); .replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString()));
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -398,12 +418,19 @@ public class StoreApi {
apiClient.executeAsync(call, localVarReturnType, callback); apiClient.executeAsync(call, localVarReturnType, callback);
return call; return call;
} }
/* Build call for placeOrder */ /**
private com.squareup.okhttp.Call placeOrderCall(Order body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for placeOrder
* @param body order placed for purchasing the pet (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call placeOrderCall(Order body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body; Object localVarPostBody = body;
// create path and map variables // create path and map variables
String localVarPath = "/store/order".replaceAll("\\{format\\}","json"); String localVarPath = "/store/order";
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();

View File

@ -54,12 +54,19 @@ public class UserApi {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/* Build call for createUser */ /**
private com.squareup.okhttp.Call createUserCall(User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for createUser
* @param body Created user object (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createUserCall(User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body; Object localVarPostBody = body;
// create path and map variables // create path and map variables
String localVarPath = "/user".replaceAll("\\{format\\}","json"); String localVarPath = "/user";
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -168,12 +175,19 @@ public class UserApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for createUsersWithArrayInput */ /**
private com.squareup.okhttp.Call createUsersWithArrayInputCall(List<User> body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for createUsersWithArrayInput
* @param body List of user object (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createUsersWithArrayInputCall(List<User> body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body; Object localVarPostBody = body;
// create path and map variables // create path and map variables
String localVarPath = "/user/createWithArray".replaceAll("\\{format\\}","json"); String localVarPath = "/user/createWithArray";
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -282,12 +296,19 @@ public class UserApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for createUsersWithListInput */ /**
private com.squareup.okhttp.Call createUsersWithListInputCall(List<User> body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for createUsersWithListInput
* @param body List of user object (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createUsersWithListInputCall(List<User> body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body; Object localVarPostBody = body;
// create path and map variables // create path and map variables
String localVarPath = "/user/createWithList".replaceAll("\\{format\\}","json"); String localVarPath = "/user/createWithList";
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -396,13 +417,20 @@ public class UserApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for deleteUser */ /**
private com.squareup.okhttp.Call deleteUserCall(String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for deleteUser
* @param username The name that needs to be deleted (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call deleteUserCall(String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
String localVarPath = "/user/{username}".replaceAll("\\{format\\}","json") String localVarPath = "/user/{username}"
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString())); .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -511,13 +539,20 @@ public class UserApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for getUserByName */ /**
private com.squareup.okhttp.Call getUserByNameCall(String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for getUserByName
* @param username The name that needs to be fetched. Use user1 for testing. (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call getUserByNameCall(String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
String localVarPath = "/user/{username}".replaceAll("\\{format\\}","json") String localVarPath = "/user/{username}"
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString())); .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -630,12 +665,20 @@ public class UserApi {
apiClient.executeAsync(call, localVarReturnType, callback); apiClient.executeAsync(call, localVarReturnType, callback);
return call; return call;
} }
/* Build call for loginUser */ /**
private com.squareup.okhttp.Call loginUserCall(String username, String password, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for loginUser
* @param username The user name for login (required)
* @param password The password for login in clear text (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call loginUserCall(String username, String password, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
String localVarPath = "/user/login".replaceAll("\\{format\\}","json"); String localVarPath = "/user/login";
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
if (username != null) if (username != null)
@ -760,12 +803,18 @@ public class UserApi {
apiClient.executeAsync(call, localVarReturnType, callback); apiClient.executeAsync(call, localVarReturnType, callback);
return call; return call;
} }
/* Build call for logoutUser */ /**
private com.squareup.okhttp.Call logoutUserCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for logoutUser
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call logoutUserCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
String localVarPath = "/user/logout".replaceAll("\\{format\\}","json"); String localVarPath = "/user/logout";
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();
@ -866,13 +915,21 @@ public class UserApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for updateUser */ /**
private com.squareup.okhttp.Call updateUserCall(String username, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for updateUser
* @param username name that need to be deleted (required)
* @param body Updated user object (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call updateUserCall(String username, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body; Object localVarPostBody = body;
// create path and map variables // create path and map variables
String localVarPath = "/user/{username}".replaceAll("\\{format\\}","json") String localVarPath = "/user/{username}"
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString())); .replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarQueryParams = new ArrayList<Pair>();

View File

@ -48,7 +48,7 @@ public class AdditionalPropertiesClass implements Parcelable {
* Get mapProperty * Get mapProperty
* @return mapProperty * @return mapProperty
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Map<String, String> getMapProperty() { public Map<String, String> getMapProperty() {
return mapProperty; return mapProperty;
} }
@ -71,7 +71,7 @@ public class AdditionalPropertiesClass implements Parcelable {
* Get mapOfMapProperty * Get mapOfMapProperty
* @return mapOfMapProperty * @return mapOfMapProperty
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Map<String, Map<String, String>> getMapOfMapProperty() { public Map<String, Map<String, String>> getMapOfMapProperty() {
return mapOfMapProperty; return mapOfMapProperty;
} }

View File

@ -41,7 +41,7 @@ public class Animal implements Parcelable {
* Get className * Get className
* @return className * @return className
**/ **/
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
public String getClassName() { public String getClassName() {
return className; return className;
} }
@ -59,7 +59,7 @@ public class Animal implements Parcelable {
* Get color * Get color
* @return color * @return color
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getColor() { public String getColor() {
return color; return color;
} }

View File

@ -45,7 +45,7 @@ public class ArrayOfArrayOfNumberOnly implements Parcelable {
* Get arrayArrayNumber * Get arrayArrayNumber
* @return arrayArrayNumber * @return arrayArrayNumber
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public List<List<BigDecimal>> getArrayArrayNumber() { public List<List<BigDecimal>> getArrayArrayNumber() {
return arrayArrayNumber; return arrayArrayNumber;
} }

View File

@ -45,7 +45,7 @@ public class ArrayOfNumberOnly implements Parcelable {
* Get arrayNumber * Get arrayNumber
* @return arrayNumber * @return arrayNumber
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public List<BigDecimal> getArrayNumber() { public List<BigDecimal> getArrayNumber() {
return arrayNumber; return arrayNumber;
} }

View File

@ -51,7 +51,7 @@ public class ArrayTest implements Parcelable {
* Get arrayOfString * Get arrayOfString
* @return arrayOfString * @return arrayOfString
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public List<String> getArrayOfString() { public List<String> getArrayOfString() {
return arrayOfString; return arrayOfString;
} }
@ -74,7 +74,7 @@ public class ArrayTest implements Parcelable {
* Get arrayArrayOfInteger * Get arrayArrayOfInteger
* @return arrayArrayOfInteger * @return arrayArrayOfInteger
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public List<List<Long>> getArrayArrayOfInteger() { public List<List<Long>> getArrayArrayOfInteger() {
return arrayArrayOfInteger; return arrayArrayOfInteger;
} }
@ -97,7 +97,7 @@ public class ArrayTest implements Parcelable {
* Get arrayArrayOfModel * Get arrayArrayOfModel
* @return arrayArrayOfModel * @return arrayArrayOfModel
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() { public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
return arrayArrayOfModel; return arrayArrayOfModel;
} }

View File

@ -38,7 +38,7 @@ public class Cat extends Animal implements Parcelable {
* Get declawed * Get declawed
* @return declawed * @return declawed
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Boolean getDeclawed() { public Boolean getDeclawed() {
return declawed; return declawed;
} }

View File

@ -40,7 +40,7 @@ public class Category implements Parcelable {
* Get id * Get id
* @return id * @return id
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Long getId() { public Long getId() {
return id; return id;
} }
@ -58,7 +58,7 @@ public class Category implements Parcelable {
* Get name * Get name
* @return name * @return name
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getName() { public String getName() {
return name; return name;
} }

View File

@ -37,7 +37,7 @@ public class Client implements Parcelable {
* Get client * Get client
* @return client * @return client
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getClient() { public String getClient() {
return client; return client;
} }

View File

@ -38,7 +38,7 @@ public class Dog extends Animal implements Parcelable {
* Get breed * Get breed
* @return breed * @return breed
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getBreed() { public String getBreed() {
return breed; return breed;
} }

View File

@ -86,7 +86,7 @@ public class EnumArrays implements Parcelable {
* Get justSymbol * Get justSymbol
* @return justSymbol * @return justSymbol
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public JustSymbolEnum getJustSymbol() { public JustSymbolEnum getJustSymbol() {
return justSymbol; return justSymbol;
} }
@ -109,7 +109,7 @@ public class EnumArrays implements Parcelable {
* Get arrayEnum * Get arrayEnum
* @return arrayEnum * @return arrayEnum
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public List<ArrayEnumEnum> getArrayEnum() { public List<ArrayEnumEnum> getArrayEnum() {
return arrayEnum; return arrayEnum;
} }

View File

@ -116,7 +116,7 @@ public class EnumTest implements Parcelable {
* Get enumString * Get enumString
* @return enumString * @return enumString
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public EnumStringEnum getEnumString() { public EnumStringEnum getEnumString() {
return enumString; return enumString;
} }
@ -134,7 +134,7 @@ public class EnumTest implements Parcelable {
* Get enumInteger * Get enumInteger
* @return enumInteger * @return enumInteger
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public EnumIntegerEnum getEnumInteger() { public EnumIntegerEnum getEnumInteger() {
return enumInteger; return enumInteger;
} }
@ -152,7 +152,7 @@ public class EnumTest implements Parcelable {
* Get enumNumber * Get enumNumber
* @return enumNumber * @return enumNumber
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public EnumNumberEnum getEnumNumber() { public EnumNumberEnum getEnumNumber() {
return enumNumber; return enumNumber;
} }
@ -170,7 +170,7 @@ public class EnumTest implements Parcelable {
* Get outerEnum * Get outerEnum
* @return outerEnum * @return outerEnum
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public OuterEnum getOuterEnum() { public OuterEnum getOuterEnum() {
return outerEnum; return outerEnum;
} }

View File

@ -18,6 +18,7 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.UUID;
import org.joda.time.DateTime; import org.joda.time.DateTime;
import org.joda.time.LocalDate; import org.joda.time.LocalDate;
import android.os.Parcelable; import android.os.Parcelable;
@ -62,7 +63,7 @@ public class FormatTest implements Parcelable {
private DateTime dateTime = null; private DateTime dateTime = null;
@SerializedName("uuid") @SerializedName("uuid")
private String uuid = null; private UUID uuid = null;
@SerializedName("password") @SerializedName("password")
private String password = null; private String password = null;
@ -78,7 +79,7 @@ public class FormatTest implements Parcelable {
* maximum: 100 * maximum: 100
* @return integer * @return integer
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Integer getInteger() { public Integer getInteger() {
return integer; return integer;
} }
@ -98,7 +99,7 @@ public class FormatTest implements Parcelable {
* maximum: 200 * maximum: 200
* @return int32 * @return int32
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Integer getInt32() { public Integer getInt32() {
return int32; return int32;
} }
@ -116,7 +117,7 @@ public class FormatTest implements Parcelable {
* Get int64 * Get int64
* @return int64 * @return int64
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Long getInt64() { public Long getInt64() {
return int64; return int64;
} }
@ -136,7 +137,7 @@ public class FormatTest implements Parcelable {
* maximum: 543.2 * maximum: 543.2
* @return number * @return number
**/ **/
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
public BigDecimal getNumber() { public BigDecimal getNumber() {
return number; return number;
} }
@ -156,7 +157,7 @@ public class FormatTest implements Parcelable {
* maximum: 987.6 * maximum: 987.6
* @return _float * @return _float
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Float getFloat() { public Float getFloat() {
return _float; return _float;
} }
@ -176,7 +177,7 @@ public class FormatTest implements Parcelable {
* maximum: 123.4 * maximum: 123.4
* @return _double * @return _double
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Double getDouble() { public Double getDouble() {
return _double; return _double;
} }
@ -194,7 +195,7 @@ public class FormatTest implements Parcelable {
* Get string * Get string
* @return string * @return string
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getString() { public String getString() {
return string; return string;
} }
@ -212,7 +213,7 @@ public class FormatTest implements Parcelable {
* Get _byte * Get _byte
* @return _byte * @return _byte
**/ **/
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
public byte[] getByte() { public byte[] getByte() {
return _byte; return _byte;
} }
@ -230,7 +231,7 @@ public class FormatTest implements Parcelable {
* Get binary * Get binary
* @return binary * @return binary
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public byte[] getBinary() { public byte[] getBinary() {
return binary; return binary;
} }
@ -248,7 +249,7 @@ public class FormatTest implements Parcelable {
* Get date * Get date
* @return date * @return date
**/ **/
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
public LocalDate getDate() { public LocalDate getDate() {
return date; return date;
} }
@ -266,7 +267,7 @@ public class FormatTest implements Parcelable {
* Get dateTime * Get dateTime
* @return dateTime * @return dateTime
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public DateTime getDateTime() { public DateTime getDateTime() {
return dateTime; return dateTime;
} }
@ -275,7 +276,7 @@ public class FormatTest implements Parcelable {
this.dateTime = dateTime; this.dateTime = dateTime;
} }
public FormatTest uuid(String uuid) { public FormatTest uuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
return this; return this;
} }
@ -284,12 +285,12 @@ public class FormatTest implements Parcelable {
* Get uuid * Get uuid
* @return uuid * @return uuid
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(String uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
@ -302,7 +303,7 @@ public class FormatTest implements Parcelable {
* Get password * Get password
* @return password * @return password
**/ **/
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
public String getPassword() { public String getPassword() {
return password; return password;
} }
@ -421,7 +422,7 @@ public class FormatTest implements Parcelable {
binary = (byte[])in.readValue(null); binary = (byte[])in.readValue(null);
date = (LocalDate)in.readValue(null); date = (LocalDate)in.readValue(null);
dateTime = (DateTime)in.readValue(null); dateTime = (DateTime)in.readValue(null);
uuid = (String)in.readValue(null); uuid = (UUID)in.readValue(null);
password = (String)in.readValue(null); password = (String)in.readValue(null);
} }

View File

@ -35,7 +35,7 @@ public class HasOnlyReadOnly implements Parcelable {
* Get bar * Get bar
* @return bar * @return bar
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getBar() { public String getBar() {
return bar; return bar;
} }
@ -44,7 +44,7 @@ public class HasOnlyReadOnly implements Parcelable {
* Get foo * Get foo
* @return foo * @return foo
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getFoo() { public String getFoo() {
return foo; return foo;
} }

View File

@ -70,7 +70,7 @@ public class MapTest implements Parcelable {
* Get mapMapOfString * Get mapMapOfString
* @return mapMapOfString * @return mapMapOfString
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Map<String, Map<String, String>> getMapMapOfString() { public Map<String, Map<String, String>> getMapMapOfString() {
return mapMapOfString; return mapMapOfString;
} }
@ -93,7 +93,7 @@ public class MapTest implements Parcelable {
* Get mapOfEnumString * Get mapOfEnumString
* @return mapOfEnumString * @return mapOfEnumString
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Map<String, InnerEnum> getMapOfEnumString() { public Map<String, InnerEnum> getMapOfEnumString() {
return mapOfEnumString; return mapOfEnumString;
} }

View File

@ -21,6 +21,7 @@ import io.swagger.client.model.Animal;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.UUID;
import org.joda.time.DateTime; import org.joda.time.DateTime;
import android.os.Parcelable; import android.os.Parcelable;
import android.os.Parcel; import android.os.Parcel;
@ -31,7 +32,7 @@ import android.os.Parcel;
public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable { public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable {
@SerializedName("uuid") @SerializedName("uuid")
private String uuid = null; private UUID uuid = null;
@SerializedName("dateTime") @SerializedName("dateTime")
private DateTime dateTime = null; private DateTime dateTime = null;
@ -39,7 +40,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable {
@SerializedName("map") @SerializedName("map")
private Map<String, Animal> map = new HashMap<String, Animal>(); private Map<String, Animal> map = new HashMap<String, Animal>();
public MixedPropertiesAndAdditionalPropertiesClass uuid(String uuid) { public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
return this; return this;
} }
@ -48,12 +49,12 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable {
* Get uuid * Get uuid
* @return uuid * @return uuid
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(String uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
@ -66,7 +67,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable {
* Get dateTime * Get dateTime
* @return dateTime * @return dateTime
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public DateTime getDateTime() { public DateTime getDateTime() {
return dateTime; return dateTime;
} }
@ -89,7 +90,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable {
* Get map * Get map
* @return map * @return map
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Map<String, Animal> getMap() { public Map<String, Animal> getMap() {
return map; return map;
} }
@ -157,7 +158,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable {
MixedPropertiesAndAdditionalPropertiesClass(Parcel in) { MixedPropertiesAndAdditionalPropertiesClass(Parcel in) {
uuid = (String)in.readValue(null); uuid = (UUID)in.readValue(null);
dateTime = (DateTime)in.readValue(null); dateTime = (DateTime)in.readValue(null);
map = (Map<String, Animal>)in.readValue(Animal.class.getClassLoader()); map = (Map<String, Animal>)in.readValue(Animal.class.getClassLoader());
} }

View File

@ -41,7 +41,7 @@ public class Model200Response implements Parcelable {
* Get name * Get name
* @return name * @return name
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Integer getName() { public Integer getName() {
return name; return name;
} }
@ -59,7 +59,7 @@ public class Model200Response implements Parcelable {
* Get propertyClass * Get propertyClass
* @return propertyClass * @return propertyClass
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getPropertyClass() { public String getPropertyClass() {
return propertyClass; return propertyClass;
} }

View File

@ -43,7 +43,7 @@ public class ModelApiResponse implements Parcelable {
* Get code * Get code
* @return code * @return code
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Integer getCode() { public Integer getCode() {
return code; return code;
} }
@ -61,7 +61,7 @@ public class ModelApiResponse implements Parcelable {
* Get type * Get type
* @return type * @return type
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getType() { public String getType() {
return type; return type;
} }
@ -79,7 +79,7 @@ public class ModelApiResponse implements Parcelable {
* Get message * Get message
* @return message * @return message
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getMessage() { public String getMessage() {
return message; return message;
} }

View File

@ -38,7 +38,7 @@ public class ModelReturn implements Parcelable {
* Get _return * Get _return
* @return _return * @return _return
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Integer getReturn() { public Integer getReturn() {
return _return; return _return;
} }

View File

@ -47,7 +47,7 @@ public class Name implements Parcelable {
* Get name * Get name
* @return name * @return name
**/ **/
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
public Integer getName() { public Integer getName() {
return name; return name;
} }
@ -60,7 +60,7 @@ public class Name implements Parcelable {
* Get snakeCase * Get snakeCase
* @return snakeCase * @return snakeCase
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Integer getSnakeCase() { public Integer getSnakeCase() {
return snakeCase; return snakeCase;
} }
@ -74,7 +74,7 @@ public class Name implements Parcelable {
* Get property * Get property
* @return property * @return property
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getProperty() { public String getProperty() {
return property; return property;
} }
@ -87,7 +87,7 @@ public class Name implements Parcelable {
* Get _123Number * Get _123Number
* @return _123Number * @return _123Number
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Integer get123Number() { public Integer get123Number() {
return _123Number; return _123Number;
} }

View File

@ -38,7 +38,7 @@ public class NumberOnly implements Parcelable {
* Get justNumber * Get justNumber
* @return justNumber * @return justNumber
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public BigDecimal getJustNumber() { public BigDecimal getJustNumber() {
return justNumber; return justNumber;
} }

View File

@ -78,7 +78,7 @@ public class Order implements Parcelable {
* Get id * Get id
* @return id * @return id
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Long getId() { public Long getId() {
return id; return id;
} }
@ -96,7 +96,7 @@ public class Order implements Parcelable {
* Get petId * Get petId
* @return petId * @return petId
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Long getPetId() { public Long getPetId() {
return petId; return petId;
} }
@ -114,7 +114,7 @@ public class Order implements Parcelable {
* Get quantity * Get quantity
* @return quantity * @return quantity
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Integer getQuantity() { public Integer getQuantity() {
return quantity; return quantity;
} }
@ -132,7 +132,7 @@ public class Order implements Parcelable {
* Get shipDate * Get shipDate
* @return shipDate * @return shipDate
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public DateTime getShipDate() { public DateTime getShipDate() {
return shipDate; return shipDate;
} }
@ -150,7 +150,7 @@ public class Order implements Parcelable {
* Order Status * Order Status
* @return status * @return status
**/ **/
@ApiModelProperty(example = "null", value = "Order Status") @ApiModelProperty(value = "Order Status")
public StatusEnum getStatus() { public StatusEnum getStatus() {
return status; return status;
} }
@ -168,7 +168,7 @@ public class Order implements Parcelable {
* Get complete * Get complete
* @return complete * @return complete
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Boolean getComplete() { public Boolean getComplete() {
return complete; return complete;
} }

View File

@ -81,7 +81,7 @@ public class Pet implements Parcelable {
* Get id * Get id
* @return id * @return id
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Long getId() { public Long getId() {
return id; return id;
} }
@ -99,7 +99,7 @@ public class Pet implements Parcelable {
* Get category * Get category
* @return category * @return category
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Category getCategory() { public Category getCategory() {
return category; return category;
} }
@ -140,7 +140,7 @@ public class Pet implements Parcelable {
* Get photoUrls * Get photoUrls
* @return photoUrls * @return photoUrls
**/ **/
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
public List<String> getPhotoUrls() { public List<String> getPhotoUrls() {
return photoUrls; return photoUrls;
} }
@ -163,7 +163,7 @@ public class Pet implements Parcelable {
* Get tags * Get tags
* @return tags * @return tags
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public List<Tag> getTags() { public List<Tag> getTags() {
return tags; return tags;
} }
@ -181,7 +181,7 @@ public class Pet implements Parcelable {
* pet status in the store * pet status in the store
* @return status * @return status
**/ **/
@ApiModelProperty(example = "null", value = "pet status in the store") @ApiModelProperty(value = "pet status in the store")
public StatusEnum getStatus() { public StatusEnum getStatus() {
return status; return status;
} }

View File

@ -35,7 +35,7 @@ public class ReadOnlyFirst implements Parcelable {
* Get bar * Get bar
* @return bar * @return bar
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getBar() { public String getBar() {
return bar; return bar;
} }
@ -49,7 +49,7 @@ public class ReadOnlyFirst implements Parcelable {
* Get baz * Get baz
* @return baz * @return baz
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getBaz() { public String getBaz() {
return baz; return baz;
} }

View File

@ -37,7 +37,7 @@ public class SpecialModelName implements Parcelable {
* Get specialPropertyName * Get specialPropertyName
* @return specialPropertyName * @return specialPropertyName
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Long getSpecialPropertyName() { public Long getSpecialPropertyName() {
return specialPropertyName; return specialPropertyName;
} }

View File

@ -40,7 +40,7 @@ public class Tag implements Parcelable {
* Get id * Get id
* @return id * @return id
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Long getId() { public Long getId() {
return id; return id;
} }
@ -58,7 +58,7 @@ public class Tag implements Parcelable {
* Get name * Get name
* @return name * @return name
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getName() { public String getName() {
return name; return name;
} }

View File

@ -58,7 +58,7 @@ public class User implements Parcelable {
* Get id * Get id
* @return id * @return id
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public Long getId() { public Long getId() {
return id; return id;
} }
@ -76,7 +76,7 @@ public class User implements Parcelable {
* Get username * Get username
* @return username * @return username
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getUsername() { public String getUsername() {
return username; return username;
} }
@ -94,7 +94,7 @@ public class User implements Parcelable {
* Get firstName * Get firstName
* @return firstName * @return firstName
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getFirstName() { public String getFirstName() {
return firstName; return firstName;
} }
@ -112,7 +112,7 @@ public class User implements Parcelable {
* Get lastName * Get lastName
* @return lastName * @return lastName
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getLastName() { public String getLastName() {
return lastName; return lastName;
} }
@ -130,7 +130,7 @@ public class User implements Parcelable {
* Get email * Get email
* @return email * @return email
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getEmail() { public String getEmail() {
return email; return email;
} }
@ -148,7 +148,7 @@ public class User implements Parcelable {
* Get password * Get password
* @return password * @return password
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getPassword() { public String getPassword() {
return password; return password;
} }
@ -166,7 +166,7 @@ public class User implements Parcelable {
* Get phone * Get phone
* @return phone * @return phone
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
public String getPhone() { public String getPhone() {
return phone; return phone;
} }
@ -184,7 +184,7 @@ public class User implements Parcelable {
* User Status * User Status
* @return userStatus * @return userStatus
**/ **/
@ApiModelProperty(example = "null", value = "User Status") @ApiModelProperty(value = "User Status")
public Integer getUserStatus() { public Integer getUserStatus() {
return userStatus; return userStatus;
} }

View File

@ -57,8 +57,15 @@ public class FakeApi {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/* Build call for testClientModel */ /**
private com.squareup.okhttp.Call testClientModelCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for testClientModel
* @param body client model (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testClientModelCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body; Object localVarPostBody = body;
// create path and map variables // create path and map variables
@ -175,8 +182,28 @@ public class FakeApi {
apiClient.executeAsync(call, localVarReturnType, callback); apiClient.executeAsync(call, localVarReturnType, callback);
return call; return call;
} }
/* Build call for testEndpointParameters */ /**
private com.squareup.okhttp.Call testEndpointParametersCall(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, LocalDate date, DateTime dateTime, String password, String paramCallback, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for testEndpointParameters
* @param number None (required)
* @param _double None (required)
* @param patternWithoutDelimiter None (required)
* @param _byte None (required)
* @param integer None (optional)
* @param int32 None (optional)
* @param int64 None (optional)
* @param _float None (optional)
* @param string None (optional)
* @param binary None (optional)
* @param date None (optional)
* @param dateTime None (optional)
* @param password None (optional)
* @param paramCallback None (optional)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testEndpointParametersCall(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, LocalDate date, DateTime dateTime, String password, String paramCallback, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
@ -371,8 +398,22 @@ public class FakeApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for testEnumParameters */ /**
private com.squareup.okhttp.Call testEnumParametersCall(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for testEnumParameters
* @param enumFormStringArray Form parameter enum test (string array) (optional)
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
* @param enumHeaderString Header parameter enum test (string) (optional, default to -efg)
* @param enumQueryStringArray Query parameter enum test (string array) (optional)
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
* @param enumQueryInteger Query parameter enum test (double) (optional)
* @param enumQueryDouble Query parameter enum test (double) (optional)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testEnumParametersCall(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables

View File

@ -56,8 +56,15 @@ public class PetApi {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/* Build call for addPet */ /**
private com.squareup.okhttp.Call addPetCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for addPet
* @param body Pet object that needs to be added to the store (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call addPetCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body; Object localVarPostBody = body;
// create path and map variables // create path and map variables
@ -170,8 +177,16 @@ public class PetApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for deletePet */ /**
private com.squareup.okhttp.Call deletePetCall(Long petId, String apiKey, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for deletePet
* @param petId Pet id to delete (required)
* @param apiKey (optional)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call deletePetCall(Long petId, String apiKey, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
@ -290,8 +305,15 @@ public class PetApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for findPetsByStatus */ /**
private com.squareup.okhttp.Call findPetsByStatusCall(List<String> status, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for findPetsByStatus
* @param status Status values that need to be considered for filter (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call findPetsByStatusCall(List<String> status, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
@ -410,8 +432,15 @@ public class PetApi {
apiClient.executeAsync(call, localVarReturnType, callback); apiClient.executeAsync(call, localVarReturnType, callback);
return call; return call;
} }
/* Build call for findPetsByTags */ /**
private com.squareup.okhttp.Call findPetsByTagsCall(List<String> tags, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for findPetsByTags
* @param tags Tags to filter by (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call findPetsByTagsCall(List<String> tags, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
@ -530,8 +559,15 @@ public class PetApi {
apiClient.executeAsync(call, localVarReturnType, callback); apiClient.executeAsync(call, localVarReturnType, callback);
return call; return call;
} }
/* Build call for getPetById */ /**
private com.squareup.okhttp.Call getPetByIdCall(Long petId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for getPetById
* @param petId ID of pet to return (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call getPetByIdCall(Long petId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
@ -649,8 +685,15 @@ public class PetApi {
apiClient.executeAsync(call, localVarReturnType, callback); apiClient.executeAsync(call, localVarReturnType, callback);
return call; return call;
} }
/* Build call for updatePet */ /**
private com.squareup.okhttp.Call updatePetCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for updatePet
* @param body Pet object that needs to be added to the store (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call updatePetCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body; Object localVarPostBody = body;
// create path and map variables // create path and map variables
@ -763,8 +806,17 @@ public class PetApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for updatePetWithForm */ /**
private com.squareup.okhttp.Call updatePetWithFormCall(Long petId, String name, String status, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for updatePetWithForm
* @param petId ID of pet that needs to be updated (required)
* @param name Updated name of the pet (optional)
* @param status Updated status of the pet (optional)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call updatePetWithFormCall(Long petId, String name, String status, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
@ -888,8 +940,17 @@ public class PetApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for uploadFile */ /**
private com.squareup.okhttp.Call uploadFileCall(Long petId, String additionalMetadata, File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for uploadFile
* @param petId ID of pet to update (required)
* @param additionalMetadata Additional data to pass to server (optional)
* @param file file to upload (optional)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call uploadFileCall(Long petId, String additionalMetadata, File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables

View File

@ -54,8 +54,15 @@ public class StoreApi {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/* Build call for deleteOrder */ /**
private com.squareup.okhttp.Call deleteOrderCall(String orderId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for deleteOrder
* @param orderId ID of the order that needs to be deleted (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call deleteOrderCall(String orderId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
@ -169,8 +176,14 @@ public class StoreApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for getInventory */ /**
private com.squareup.okhttp.Call getInventoryCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for getInventory
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call getInventoryCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
@ -279,8 +292,15 @@ public class StoreApi {
apiClient.executeAsync(call, localVarReturnType, callback); apiClient.executeAsync(call, localVarReturnType, callback);
return call; return call;
} }
/* Build call for getOrderById */ /**
private com.squareup.okhttp.Call getOrderByIdCall(Long orderId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for getOrderById
* @param orderId ID of pet that needs to be fetched (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call getOrderByIdCall(Long orderId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
@ -398,8 +418,15 @@ public class StoreApi {
apiClient.executeAsync(call, localVarReturnType, callback); apiClient.executeAsync(call, localVarReturnType, callback);
return call; return call;
} }
/* Build call for placeOrder */ /**
private com.squareup.okhttp.Call placeOrderCall(Order body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for placeOrder
* @param body order placed for purchasing the pet (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call placeOrderCall(Order body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body; Object localVarPostBody = body;
// create path and map variables // create path and map variables

View File

@ -54,8 +54,15 @@ public class UserApi {
this.apiClient = apiClient; this.apiClient = apiClient;
} }
/* Build call for createUser */ /**
private com.squareup.okhttp.Call createUserCall(User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for createUser
* @param body Created user object (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createUserCall(User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body; Object localVarPostBody = body;
// create path and map variables // create path and map variables
@ -168,8 +175,15 @@ public class UserApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for createUsersWithArrayInput */ /**
private com.squareup.okhttp.Call createUsersWithArrayInputCall(List<User> body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for createUsersWithArrayInput
* @param body List of user object (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createUsersWithArrayInputCall(List<User> body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body; Object localVarPostBody = body;
// create path and map variables // create path and map variables
@ -282,8 +296,15 @@ public class UserApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for createUsersWithListInput */ /**
private com.squareup.okhttp.Call createUsersWithListInputCall(List<User> body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for createUsersWithListInput
* @param body List of user object (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createUsersWithListInputCall(List<User> body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body; Object localVarPostBody = body;
// create path and map variables // create path and map variables
@ -396,8 +417,15 @@ public class UserApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for deleteUser */ /**
private com.squareup.okhttp.Call deleteUserCall(String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for deleteUser
* @param username The name that needs to be deleted (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call deleteUserCall(String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
@ -511,8 +539,15 @@ public class UserApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for getUserByName */ /**
private com.squareup.okhttp.Call getUserByNameCall(String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for getUserByName
* @param username The name that needs to be fetched. Use user1 for testing. (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call getUserByNameCall(String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
@ -630,8 +665,16 @@ public class UserApi {
apiClient.executeAsync(call, localVarReturnType, callback); apiClient.executeAsync(call, localVarReturnType, callback);
return call; return call;
} }
/* Build call for loginUser */ /**
private com.squareup.okhttp.Call loginUserCall(String username, String password, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for loginUser
* @param username The user name for login (required)
* @param password The password for login in clear text (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call loginUserCall(String username, String password, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
@ -760,8 +803,14 @@ public class UserApi {
apiClient.executeAsync(call, localVarReturnType, callback); apiClient.executeAsync(call, localVarReturnType, callback);
return call; return call;
} }
/* Build call for logoutUser */ /**
private com.squareup.okhttp.Call logoutUserCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for logoutUser
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call logoutUserCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
@ -866,8 +915,16 @@ public class UserApi {
apiClient.executeAsync(call, callback); apiClient.executeAsync(call, callback);
return call; return call;
} }
/* Build call for updateUser */ /**
private com.squareup.okhttp.Call updateUserCall(String username, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { * Build call for updateUser
* @param username name that need to be deleted (required)
* @param body Updated user object (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call updateUserCall(String username, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body; Object localVarPostBody = body;
// create path and map variables // create path and map variables