Rename default packages for android (#349)

This commit is contained in:
Jérémie Bresson 2018-05-07 09:54:47 +02:00 committed by GitHub
parent b947970f99
commit a22afb3d81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
61 changed files with 286 additions and 405 deletions

View File

@ -17,6 +17,10 @@
package org.openapitools.codegen.languages; package org.openapitools.codegen.languages;
import io.swagger.v3.oas.models.media.ArraySchema;
import io.swagger.v3.oas.models.media.Schema;
import org.apache.commons.lang3.StringUtils;
import org.openapitools.codegen.CliOption; import org.openapitools.codegen.CliOption;
import org.openapitools.codegen.CodegenConfig; import org.openapitools.codegen.CodegenConfig;
import org.openapitools.codegen.CodegenConstants; import org.openapitools.codegen.CodegenConstants;
@ -25,25 +29,20 @@ import org.openapitools.codegen.CodegenType;
import org.openapitools.codegen.DefaultCodegen; import org.openapitools.codegen.DefaultCodegen;
import org.openapitools.codegen.SupportingFile; import org.openapitools.codegen.SupportingFile;
import org.openapitools.codegen.utils.ModelUtils; import org.openapitools.codegen.utils.ModelUtils;
import io.swagger.v3.oas.models.OpenAPI; import org.slf4j.Logger;
import io.swagger.v3.oas.models.Operation; import org.slf4j.LoggerFactory;
import io.swagger.v3.oas.models.media.*;
import java.io.File; import java.io.File;
import java.util.Arrays; import java.util.Arrays;
import java.util.HashSet; import java.util.HashSet;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class AndroidClientCodegen extends DefaultCodegen implements CodegenConfig { public class AndroidClientCodegen extends DefaultCodegen implements CodegenConfig {
private static final Logger LOGGER = LoggerFactory.getLogger(AndroidClientCodegen.class); private static final Logger LOGGER = LoggerFactory.getLogger(AndroidClientCodegen.class);
public static final String USE_ANDROID_MAVEN_GRADLE_PLUGIN = "useAndroidMavenGradlePlugin"; public static final String USE_ANDROID_MAVEN_GRADLE_PLUGIN = "useAndroidMavenGradlePlugin";
public static final String ANDROID_GRADLE_VERSION = "androidGradleVersion"; public static final String ANDROID_GRADLE_VERSION = "androidGradleVersion";
public static final String ANDROID_SDK_VERSION = "androidSdkVersion"; public static final String ANDROID_SDK_VERSION = "androidSdkVersion";
public static final String ANDROID_BUILD_TOOLS_VERSION = "androidBuildToolsVersion"; public static final String ANDROID_BUILD_TOOLS_VERSION = "androidBuildToolsVersion";
protected String invokerPackage = "io.swagger.client"; protected String invokerPackage = "org.openapitools.client";
protected String groupId = "org.openapitools"; protected String groupId = "org.openapitools";
protected String artifactId = "openapi-android-client"; protected String artifactId = "openapi-android-client";
protected String artifactVersion = "1.0.0"; protected String artifactVersion = "1.0.0";
@ -56,8 +55,8 @@ public class AndroidClientCodegen extends DefaultCodegen implements CodegenConfi
protected Boolean serializableModel = false; protected Boolean serializableModel = false;
// requestPackage and authPackage are used by the "volley" template/library // requestPackage and authPackage are used by the "volley" template/library
protected String requestPackage = "io.swagger.client.request"; protected String requestPackage = "org.openapitools.client.request";
protected String authPackage = "io.swagger.client.auth"; protected String authPackage = "org.openapitools.client.auth";
protected String gradleWrapperPackage = "gradle.wrapper"; protected String gradleWrapperPackage = "gradle.wrapper";
protected String apiDocPath = "docs/"; protected String apiDocPath = "docs/";
protected String modelDocPath = "docs/"; protected String modelDocPath = "docs/";
@ -68,8 +67,8 @@ public class AndroidClientCodegen extends DefaultCodegen implements CodegenConfi
modelTemplateFiles.put("model.mustache", ".java"); modelTemplateFiles.put("model.mustache", ".java");
apiTemplateFiles.put("api.mustache", ".java"); apiTemplateFiles.put("api.mustache", ".java");
embeddedTemplateDir = templateDir = "android"; embeddedTemplateDir = templateDir = "android";
apiPackage = "io.swagger.client.api"; apiPackage = "org.openapitools.client.api";
modelPackage = "io.swagger.client.model"; modelPackage = "org.openapitools.client.model";
setReservedWordsLowerCase( setReservedWordsLowerCase(
Arrays.asList( Arrays.asList(

View File

@ -17,11 +17,10 @@
package org.openapitools.codegen.android; package org.openapitools.codegen.android;
import org.testng.Assert;
import org.testng.annotations.Test;
import org.openapitools.codegen.CodegenConstants; import org.openapitools.codegen.CodegenConstants;
import org.openapitools.codegen.languages.AndroidClientCodegen; import org.openapitools.codegen.languages.AndroidClientCodegen;
import org.testng.Assert;
import org.testng.annotations.Test;
public class AndroidClientCodegenTest { public class AndroidClientCodegenTest {
@ -32,12 +31,12 @@ public class AndroidClientCodegenTest {
Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.HIDE_GENERATION_TIMESTAMP), Boolean.TRUE); Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.HIDE_GENERATION_TIMESTAMP), Boolean.TRUE);
Assert.assertEquals(codegen.isHideGenerationTimestamp(), true); Assert.assertEquals(codegen.isHideGenerationTimestamp(), true);
Assert.assertEquals(codegen.modelPackage(), "io.swagger.client.model"); Assert.assertEquals(codegen.modelPackage(), "org.openapitools.client.model");
Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.MODEL_PACKAGE), "io.swagger.client.model"); Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.MODEL_PACKAGE), "org.openapitools.client.model");
Assert.assertEquals(codegen.apiPackage(), "io.swagger.client.api"); Assert.assertEquals(codegen.apiPackage(), "org.openapitools.client.api");
Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.API_PACKAGE), "io.swagger.client.api"); Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.API_PACKAGE), "org.openapitools.client.api");
Assert.assertEquals(codegen.getInvokerPackage(), "io.swagger.client"); Assert.assertEquals(codegen.getInvokerPackage(), "org.openapitools.client");
Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.INVOKER_PACKAGE), "io.swagger.client"); Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.INVOKER_PACKAGE), "org.openapitools.client");
} }
@Test @Test

View File

@ -1,11 +1,11 @@
# Swagger Codegen Ignore # OpenAPI Generator Ignore
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen # Generated by openapi-generator https://github.com/openapitools/openapi-generator
# Use this file to prevent files from being overwritten by the generator. # Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore. # The patterns follow closely to .gitignore or .dockerignore.
# As an example, the C# client generator defines ApiClient.cs. # As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs #ApiClient.cs
# You can match any string of characters against a directory, file or extension with a single asterisk (*): # You can match any string of characters against a directory, file or extension with a single asterisk (*):

View File

@ -1,4 +1,4 @@
# swagger-android-client # openapi-android-client
## Requirements ## Requirements
@ -26,8 +26,8 @@ Add this dependency to your project's POM:
```xml ```xml
<dependency> <dependency>
<groupId>io.swagger</groupId> <groupId>org.openapitools</groupId>
<artifactId>swagger-android-client</artifactId> <artifactId>openapi-android-client</artifactId>
<version>1.0.0</version> <version>1.0.0</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
@ -38,7 +38,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file: Add this dependency to your project's build file:
```groovy ```groovy
compile "io.swagger:swagger-android-client:1.0.0" compile "org.openapitools:openapi-android-client:1.0.0"
``` ```
### Others ### Others
@ -49,7 +49,7 @@ At first generate the JAR by executing:
Then manually install the following JARs: Then manually install the following JARs:
* target/swagger-android-client-1.0.0.jar * target/openapi-android-client-1.0.0.jar
* target/lib/*.jar * target/lib/*.jar
## Getting Started ## Getting Started
@ -58,13 +58,13 @@ Please follow the [installation](#installation) instruction and execute the foll
```java ```java
import io.swagger.client.api.PetApi; import org.openapitools.client.api.PetApi;
public class PetApiExample { public class PetApiExample {
public static void main(String[] args) { public static void main(String[] args) {
PetApi apiInstance = new PetApi(); PetApi apiInstance = new PetApi();
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store Pet pet = {photoUrls=[Ljava.lang.Object;@67d18ed7, name=doggie, id=0, category={name=name, id=6}, tags=[Ljava.lang.Object;@2c78d320, status=available}; // Pet | Pet object that needs to be added to the store
try { try {
apiInstance.addPet(pet); apiInstance.addPet(pet);
} catch (ApiException e) { } catch (ApiException e) {

View File

@ -1,4 +1,4 @@
group = 'io.swagger' group = 'org.openapitools'
project.version = '1.0.0' project.version = '1.0.0'
buildscript { buildscript {

View File

@ -23,10 +23,10 @@ Add a new pet to the store
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.PetApi; //import org.openapitools.client.api.PetApi;
PetApi apiInstance = new PetApi(); PetApi apiInstance = new PetApi();
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store Pet pet = {photoUrls=[Ljava.lang.Object;@67d18ed7, name=doggie, id=0, category={name=name, id=6}, tags=[Ljava.lang.Object;@2c78d320, status=available}; // Pet | Pet object that needs to be added to the store
try { try {
apiInstance.addPet(pet); apiInstance.addPet(pet);
} catch (ApiException e) { } catch (ApiException e) {
@ -51,7 +51,7 @@ null (empty response body)
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: application/json, application/xml
- **Accept**: Not defined - **Accept**: Not defined
<a name="deletePet"></a> <a name="deletePet"></a>
@ -63,7 +63,7 @@ Deletes a pet
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.PetApi; //import org.openapitools.client.api.PetApi;
PetApi apiInstance = new PetApi(); PetApi apiInstance = new PetApi();
Long petId = 56L; // Long | Pet id to delete Long petId = 56L; // Long | Pet id to delete
@ -107,7 +107,7 @@ Multiple status values can be provided with comma separated strings
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.PetApi; //import org.openapitools.client.api.PetApi;
PetApi apiInstance = new PetApi(); PetApi apiInstance = new PetApi();
List<String> status = Arrays.asList("status_example"); // List<String> | Status values that need to be considered for filter List<String> status = Arrays.asList("status_example"); // List<String> | Status values that need to be considered for filter
@ -150,7 +150,7 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.PetApi; //import org.openapitools.client.api.PetApi;
PetApi apiInstance = new PetApi(); PetApi apiInstance = new PetApi();
List<String> tags = Arrays.asList("tags_example"); // List<String> | Tags to filter by List<String> tags = Arrays.asList("tags_example"); // List<String> | Tags to filter by
@ -193,7 +193,7 @@ Returns a single pet
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.PetApi; //import org.openapitools.client.api.PetApi;
PetApi apiInstance = new PetApi(); PetApi apiInstance = new PetApi();
Long petId = 56L; // Long | ID of pet to return Long petId = 56L; // Long | ID of pet to return
@ -234,7 +234,7 @@ Update an existing pet
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.PetApi; //import org.openapitools.client.api.PetApi;
PetApi apiInstance = new PetApi(); PetApi apiInstance = new PetApi();
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
@ -262,7 +262,7 @@ null (empty response body)
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: application/json, application/xml
- **Accept**: Not defined - **Accept**: Not defined
<a name="updatePetWithForm"></a> <a name="updatePetWithForm"></a>
@ -274,12 +274,12 @@ Updates a pet in the store with form data
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.PetApi; //import org.openapitools.client.api.PetApi;
PetApi apiInstance = new PetApi(); PetApi apiInstance = new PetApi();
Long petId = 56L; // Long | ID of pet that needs to be updated Long petId = 56L; // Long | ID of pet that needs to be updated
String name = "name_example"; // String | Updated name of the pet String name = "null"; // String | Updated name of the pet
String status = "status_example"; // String | Updated status of the pet String status = "null"; // String | Updated status of the pet
try { try {
apiInstance.updatePetWithForm(petId, name, status); apiInstance.updatePetWithForm(petId, name, status);
} catch (ApiException e) { } catch (ApiException e) {
@ -293,8 +293,8 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**petId** | **Long**| ID of pet that needs to be updated | **petId** | **Long**| ID of pet that needs to be updated |
**name** | **String**| Updated name of the pet | [optional] **name** | **String**| Updated name of the pet | [optional] [default to null]
**status** | **String**| Updated status of the pet | [optional] **status** | **String**| Updated status of the pet | [optional] [default to null]
### Return type ### Return type
@ -318,12 +318,12 @@ uploads an image
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.PetApi; //import org.openapitools.client.api.PetApi;
PetApi apiInstance = new PetApi(); PetApi apiInstance = new PetApi();
Long petId = 56L; // Long | ID of pet to update Long petId = 56L; // Long | ID of pet to update
String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server String additionalMetadata = "null"; // String | Additional data to pass to server
File file = new File("/path/to/file"); // File | file to upload File file = new File("null"); // File | file to upload
try { try {
ApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, file); ApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, file);
System.out.println(result); System.out.println(result);
@ -338,8 +338,8 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**petId** | **Long**| ID of pet to update | **petId** | **Long**| ID of pet to update |
**additionalMetadata** | **String**| Additional data to pass to server | [optional] **additionalMetadata** | **String**| Additional data to pass to server | [optional] [default to null]
**file** | **File**| file to upload | [optional] **file** | **File**| file to upload | [optional] [default to null]
### Return type ### Return type

View File

@ -21,7 +21,7 @@ For valid response try integer IDs with value &lt; 1000. Anything above 1000 or
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.StoreApi; //import org.openapitools.client.api.StoreApi;
StoreApi apiInstance = new StoreApi(); StoreApi apiInstance = new StoreApi();
String orderId = "orderId_example"; // String | ID of the order that needs to be deleted String orderId = "orderId_example"; // String | ID of the order that needs to be deleted
@ -63,7 +63,7 @@ Returns a map of status codes to quantities
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.StoreApi; //import org.openapitools.client.api.StoreApi;
StoreApi apiInstance = new StoreApi(); StoreApi apiInstance = new StoreApi();
try { try {
@ -102,7 +102,7 @@ For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other val
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.StoreApi; //import org.openapitools.client.api.StoreApi;
StoreApi apiInstance = new StoreApi(); StoreApi apiInstance = new StoreApi();
Long orderId = 56L; // Long | ID of pet that needs to be fetched Long orderId = 56L; // Long | ID of pet that needs to be fetched
@ -119,7 +119,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**orderId** | **Long**| ID of pet that needs to be fetched | [enum: ] **orderId** | **Long**| ID of pet that needs to be fetched |
### Return type ### Return type
@ -143,10 +143,10 @@ Place an order for a pet
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.StoreApi; //import org.openapitools.client.api.StoreApi;
StoreApi apiInstance = new StoreApi(); StoreApi apiInstance = new StoreApi();
Order order = new Order(); // Order | order placed for purchasing the pet Order order = {petId=6, quantity=1, id=0, shipDate=2000-01-23T04:56:07.000+00:00, complete=false, status=placed}; // Order | order placed for purchasing the pet
try { try {
Order result = apiInstance.placeOrder(order); Order result = apiInstance.placeOrder(order);
System.out.println(result); System.out.println(result);
@ -172,6 +172,6 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: application/xml, application/json

View File

@ -25,7 +25,7 @@ This can only be done by the logged in user.
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.UserApi; //import org.openapitools.client.api.UserApi;
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
User user = new User(); // User | Created user object User user = new User(); // User | Created user object
@ -53,7 +53,7 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: Not defined
- **Accept**: Not defined - **Accept**: Not defined
<a name="createUsersWithArrayInput"></a> <a name="createUsersWithArrayInput"></a>
@ -65,7 +65,7 @@ Creates list of users with given input array
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.UserApi; //import org.openapitools.client.api.UserApi;
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
List<User> user = Arrays.asList(new List()); // List<User> | List of user object List<User> user = Arrays.asList(new List()); // List<User> | List of user object
@ -105,7 +105,7 @@ Creates list of users with given input array
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.UserApi; //import org.openapitools.client.api.UserApi;
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
List<User> user = Arrays.asList(new List()); // List<User> | List of user object List<User> user = Arrays.asList(new List()); // List<User> | List of user object
@ -147,7 +147,7 @@ This can only be done by the logged in user.
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.UserApi; //import org.openapitools.client.api.UserApi;
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
String username = "username_example"; // String | The name that needs to be deleted String username = "username_example"; // String | The name that needs to be deleted
@ -187,7 +187,7 @@ Get user by user name
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.UserApi; //import org.openapitools.client.api.UserApi;
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing. String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
@ -228,7 +228,7 @@ Logs user into the system
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.UserApi; //import org.openapitools.client.api.UserApi;
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
String username = "username_example"; // String | The user name for login String username = "username_example"; // String | The user name for login
@ -271,7 +271,7 @@ Logs out current logged in user session
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.UserApi; //import org.openapitools.client.api.UserApi;
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
try { try {
@ -309,11 +309,11 @@ This can only be done by the logged in user.
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.UserApi; //import org.openapitools.client.api.UserApi;
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
String username = "username_example"; // String | name that need to be deleted String username = "username_example"; // String | name that need to be deleted
User user = new User(); // User | Updated user object User user = {firstName=firstName, lastName=lastName, password=password, userStatus=6, phone=phone, id=0, email=email, username=username}; // User | Updated user object
try { try {
apiInstance.updateUser(username, user); apiInstance.updateUser(username, user);
} catch (ApiException e) { } catch (ApiException e) {
@ -339,6 +339,6 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: Not defined
- **Accept**: Not defined - **Accept**: Not defined

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
# #
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
git_user_id=$1 git_user_id=$1
git_repo_id=$2 git_repo_id=$2

View File

@ -1,15 +1,15 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <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/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>org.openapitools</groupId>
<artifactId>swagger-android-client</artifactId> <artifactId>openapi-android-client</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>swagger-android-client</name> <name>openapi-android-client</name>
<version>1.0.0</version> <version>1.0.0</version>
<scm> <scm>
<connection>scm:git:git@github.com:swagger-api/swagger-mustache.git</connection> <connection>scm:git:git@github.com:openapitools/openapi-generator.git</connection>
<developerConnection>scm:git:git@github.com:swagger-api/swagger-codegen.git</developerConnection> <developerConnection>scm:git:git@github.com:openapitools/openapi-generator.git</developerConnection>
<url>https://github.com/swagger-api/swagger-codegen</url> <url>https://openapi-generator.tech</url>
</scm> </scm>
<build> <build>

View File

@ -1 +1 @@
rootProject.name = "swagger-android-client" rootProject.name = "openapi-android-client"

View File

@ -1,3 +1,3 @@
<manifest package="io.swagger.client"> <manifest package="org.openapitools.client">
<application /> <application />
</manifest> </manifest>

View File

@ -1,53 +0,0 @@
" zip.vim version v27
" Browsing zipfile /Users/huangzhenjun/Public/git/PartTime/swagger-codegen/samples/client/petstore/android/httpclient/gradle/wrapper/gradle-wrapper.jar
" Select a file with cursor and press ENTER
META-INF/
META-INF/MANIFEST.MF
org/
org/gradle/
org/gradle/wrapper/
org/gradle/wrapper/Download$1.class
org/gradle/wrapper/Download$SystemPropertiesProxyAuthenticator.class
org/gradle/wrapper/IDownload.class
org/gradle/wrapper/GradleUserHomeLookup.class
org/gradle/wrapper/ExclusiveFileAccessManager.class
org/gradle/wrapper/WrapperConfiguration.class
org/gradle/wrapper/SystemPropertiesHandler.class
org/gradle/wrapper/Logger.class
org/gradle/wrapper/PathAssembler.class
org/gradle/wrapper/Install.class
org/gradle/wrapper/BootstrapMainStarter.class
org/gradle/wrapper/WrapperExecutor.class
org/gradle/wrapper/GradleWrapperMain.class
org/gradle/wrapper/Install$1.class
org/gradle/wrapper/PathAssembler$LocalDistribution.class
org/gradle/wrapper/Download.class
gradle-wrapper-classpath.properties
build-receipt.properties
org/gradle/cli/
org/gradle/cli/AbstractCommandLineConverter.class
org/gradle/cli/CommandLineParser$1.class
org/gradle/cli/CommandLineParser$MissingOptionArgState.class
org/gradle/cli/CommandLineParser$OptionStringComparator.class
org/gradle/cli/CommandLineArgumentException.class
org/gradle/cli/CommandLineParser$KnownOptionParserState.class
org/gradle/cli/CommandLineParser$OptionComparator.class
org/gradle/cli/CommandLineParser$UnknownOptionParserState.class
org/gradle/cli/CommandLineOption.class
org/gradle/cli/CommandLineParser$OptionParserState.class
org/gradle/cli/ParsedCommandLine.class
org/gradle/cli/ProjectPropertiesCommandLineConverter.class
org/gradle/cli/CommandLineParser$CaseInsensitiveStringComparator.class
org/gradle/cli/CommandLineParser.class
org/gradle/cli/CommandLineParser$AfterOptions.class
org/gradle/cli/CommandLineParser$OptionString.class
org/gradle/cli/AbstractPropertiesCommandLineConverter.class
org/gradle/cli/ParsedCommandLineOption.class
org/gradle/cli/CommandLineParser$OptionAwareParserState.class
org/gradle/cli/CommandLineConverter.class
org/gradle/cli/CommandLineParser$BeforeFirstSubCommand.class
org/gradle/cli/SystemPropertiesCommandLineConverter.class
org/gradle/cli/CommandLineParser$ParserState.class
org/gradle/cli/CommandLineParser$AfterFirstSubCommand.class
gradle-cli-classpath.properties

View File

@ -1,6 +0,0 @@
#Mon May 16 21:00:11 CST 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.6-bin.zip

View File

@ -5,12 +5,12 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client; package org.openapitools.client;
public class ApiException extends Exception { public class ApiException extends Exception {
int code = 0; int code = 0;

View File

@ -5,12 +5,12 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client; package org.openapitools.client;
import org.apache.http.*; import org.apache.http.*;
import org.apache.http.client.*; import org.apache.http.client.*;
@ -95,7 +95,7 @@ public class ApiInvoker {
DATE_FORMAT.setTimeZone(TimeZone.getTimeZone("UTC")); DATE_FORMAT.setTimeZone(TimeZone.getTimeZone("UTC"));
// Set default User-Agent. // Set default User-Agent.
setUserAgent("Swagger-Codegen/1.0.0/android"); setUserAgent("OpenAPI-Generator/1.0.0/android");
} }
public static void setUserAgent(String userAgent) { public static void setUserAgent(String userAgent) {

View File

@ -5,12 +5,12 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client; package org.openapitools.client;
import org.apache.http.client.methods.*; import org.apache.http.client.methods.*;

View File

@ -1,11 +1,11 @@
package io.swagger.client; package org.openapitools.client;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.google.gson.GsonBuilder; import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken; import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import java.util.List; import java.util.List;
import io.swagger.client.model.*; import org.openapitools.client.model.*;
public class JsonUtil { public class JsonUtil {
public static GsonBuilder gsonBuilder; public static GsonBuilder gsonBuilder;

View File

@ -5,12 +5,12 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client; package org.openapitools.client;
public class Pair { public class Pair {
private String name = ""; private String name = "";

View File

@ -5,24 +5,24 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client.api; package org.openapitools.client.api;
import io.swagger.client.ApiException; import org.openapitools.client.ApiException;
import io.swagger.client.ApiInvoker; import org.openapitools.client.ApiInvoker;
import io.swagger.client.Pair; import org.openapitools.client.Pair;
import io.swagger.client.model.*; import org.openapitools.client.model.*;
import java.util.*; import java.util.*;
import io.swagger.client.model.ApiResponse; import org.openapitools.client.model.ApiResponse;
import java.io.File; import java.io.File;
import io.swagger.client.model.Pet; import org.openapitools.client.model.Pet;
import org.apache.http.entity.mime.MultipartEntityBuilder; import org.apache.http.entity.mime.MultipartEntityBuilder;
@ -76,7 +76,7 @@ public class PetApi {
String[] localVarContentTypes = { String[] localVarContentTypes = {
"application/json","application/xml"
}; };
String localVarContentType = localVarContentTypes.length > 0 ? localVarContentTypes[0] : "application/json"; String localVarContentType = localVarContentTypes.length > 0 ? localVarContentTypes[0] : "application/json";
@ -340,7 +340,7 @@ public class PetApi {
String[] localVarContentTypes = { String[] localVarContentTypes = {
"application/json","application/xml"
}; };
String localVarContentType = localVarContentTypes.length > 0 ? localVarContentTypes[0] : "application/json"; String localVarContentType = localVarContentTypes.length > 0 ? localVarContentTypes[0] : "application/json";

View File

@ -5,23 +5,23 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client.api; package org.openapitools.client.api;
import io.swagger.client.ApiException; import org.openapitools.client.ApiException;
import io.swagger.client.ApiInvoker; import org.openapitools.client.ApiInvoker;
import io.swagger.client.Pair; import org.openapitools.client.Pair;
import io.swagger.client.model.*; import org.openapitools.client.model.*;
import java.util.*; import java.util.*;
import java.util.Map; import java.util.Map;
import io.swagger.client.model.Order; import org.openapitools.client.model.Order;
import org.apache.http.entity.mime.MultipartEntityBuilder; import org.apache.http.entity.mime.MultipartEntityBuilder;
@ -226,7 +226,7 @@ public class StoreApi {
String[] localVarContentTypes = { String[] localVarContentTypes = {
"application/json"
}; };
String localVarContentType = localVarContentTypes.length > 0 ? localVarContentTypes[0] : "application/json"; String localVarContentType = localVarContentTypes.length > 0 ? localVarContentTypes[0] : "application/json";

View File

@ -5,23 +5,23 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client.api; package org.openapitools.client.api;
import io.swagger.client.ApiException; import org.openapitools.client.ApiException;
import io.swagger.client.ApiInvoker; import org.openapitools.client.ApiInvoker;
import io.swagger.client.Pair; import org.openapitools.client.Pair;
import io.swagger.client.model.*; import org.openapitools.client.model.*;
import java.util.*; import java.util.*;
import java.util.*; import java.util.*;
import io.swagger.client.model.User; import org.openapitools.client.model.User;
import org.apache.http.entity.mime.MultipartEntityBuilder; import org.apache.http.entity.mime.MultipartEntityBuilder;
@ -75,7 +75,7 @@ public class UserApi {
String[] localVarContentTypes = { String[] localVarContentTypes = {
"application/json"
}; };
String localVarContentType = localVarContentTypes.length > 0 ? localVarContentTypes[0] : "application/json"; String localVarContentType = localVarContentTypes.length > 0 ? localVarContentTypes[0] : "application/json";
@ -446,7 +446,7 @@ public class UserApi {
String[] localVarContentTypes = { String[] localVarContentTypes = {
"application/json"
}; };
String localVarContentType = localVarContentTypes.length > 0 ? localVarContentTypes[0] : "application/json"; String localVarContentType = localVarContentTypes.length > 0 ? localVarContentTypes[0] : "application/json";

View File

@ -1,4 +1,4 @@
package io.swagger.client.model; package org.openapitools.client.model;
import io.swagger.annotations.*; import io.swagger.annotations.*;

View File

@ -1,4 +1,4 @@
package io.swagger.client.model; package org.openapitools.client.model;
import io.swagger.annotations.*; import io.swagger.annotations.*;

View File

@ -1,4 +1,4 @@
package io.swagger.client.model; package org.openapitools.client.model;
import java.util.Date; import java.util.Date;
@ -26,7 +26,7 @@ public class Order {
@SerializedName("status") @SerializedName("status")
private StatusEnum status = null; private StatusEnum status = null;
@SerializedName("complete") @SerializedName("complete")
private Boolean complete = null; private Boolean complete = false;
/** /**
**/ **/

View File

@ -1,8 +1,8 @@
package io.swagger.client.model; package org.openapitools.client.model;
import io.swagger.client.model.Category;
import io.swagger.client.model.Tag;
import java.util.*; import java.util.*;
import org.openapitools.client.model.Category;
import org.openapitools.client.model.Tag;
import io.swagger.annotations.*; import io.swagger.annotations.*;
import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.SerializedName;

View File

@ -1,4 +1,4 @@
package io.swagger.client.model; package org.openapitools.client.model;
import io.swagger.annotations.*; import io.swagger.annotations.*;

View File

@ -1,4 +1,4 @@
package io.swagger.client.model; package org.openapitools.client.model;
import io.swagger.annotations.*; import io.swagger.annotations.*;

View File

@ -1,11 +1,11 @@
# Swagger Codegen Ignore # OpenAPI Generator Ignore
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen # Generated by openapi-generator https://github.com/openapitools/openapi-generator
# Use this file to prevent files from being overwritten by the generator. # Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore. # The patterns follow closely to .gitignore or .dockerignore.
# As an example, the C# client generator defines ApiClient.cs. # As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs #ApiClient.cs
# You can match any string of characters against a directory, file or extension with a single asterisk (*): # You can match any string of characters against a directory, file or extension with a single asterisk (*):

View File

@ -1,4 +1,4 @@
# swagger-petstore-android-volley # petstore-android-volley
## Requirements ## Requirements
@ -26,8 +26,8 @@ Add this dependency to your project's POM:
```xml ```xml
<dependency> <dependency>
<groupId>io.swagger</groupId> <groupId>org.openapitools</groupId>
<artifactId>swagger-petstore-android-volley</artifactId> <artifactId>petstore-android-volley</artifactId>
<version>1.0.0</version> <version>1.0.0</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
@ -38,7 +38,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file: Add this dependency to your project's build file:
```groovy ```groovy
compile "io.swagger:swagger-petstore-android-volley:1.0.0" compile "org.openapitools:petstore-android-volley:1.0.0"
``` ```
### Others ### Others
@ -49,7 +49,7 @@ At first generate the JAR by executing:
Then manually install the following JARs: Then manually install the following JARs:
* target/swagger-petstore-android-volley-1.0.0.jar * target/petstore-android-volley-1.0.0.jar
* target/lib/*.jar * target/lib/*.jar
## Getting Started ## Getting Started
@ -58,13 +58,13 @@ Please follow the [installation](#installation) instruction and execute the foll
```java ```java
import io.swagger.client.api.PetApi; import org.openapitools.client.api.PetApi;
public class PetApiExample { public class PetApiExample {
public static void main(String[] args) { public static void main(String[] args) {
PetApi apiInstance = new PetApi(); PetApi apiInstance = new PetApi();
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store Pet pet = {photoUrls=[Ljava.lang.Object;@5f9be66c, name=doggie, id=0, category={name=name, id=6}, tags=[Ljava.lang.Object;@3abada5a, status=available}; // Pet | Pet object that needs to be added to the store
try { try {
apiInstance.addPet(pet); apiInstance.addPet(pet);
} catch (ApiException e) { } catch (ApiException e) {

View File

@ -1,4 +1,4 @@
group = 'io.swagger' group = 'org.openapitools'
project.version = '1.0.0' project.version = '1.0.0'
buildscript { buildscript {

View File

@ -23,10 +23,10 @@ Add a new pet to the store
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.PetApi; //import org.openapitools.client.api.PetApi;
PetApi apiInstance = new PetApi(); PetApi apiInstance = new PetApi();
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store Pet pet = {photoUrls=[Ljava.lang.Object;@5f9be66c, name=doggie, id=0, category={name=name, id=6}, tags=[Ljava.lang.Object;@3abada5a, status=available}; // Pet | Pet object that needs to be added to the store
try { try {
apiInstance.addPet(pet); apiInstance.addPet(pet);
} catch (ApiException e) { } catch (ApiException e) {
@ -51,7 +51,7 @@ null (empty response body)
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: application/json, application/xml
- **Accept**: Not defined - **Accept**: Not defined
<a name="deletePet"></a> <a name="deletePet"></a>
@ -63,7 +63,7 @@ Deletes a pet
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.PetApi; //import org.openapitools.client.api.PetApi;
PetApi apiInstance = new PetApi(); PetApi apiInstance = new PetApi();
Long petId = 56L; // Long | Pet id to delete Long petId = 56L; // Long | Pet id to delete
@ -107,7 +107,7 @@ Multiple status values can be provided with comma separated strings
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.PetApi; //import org.openapitools.client.api.PetApi;
PetApi apiInstance = new PetApi(); PetApi apiInstance = new PetApi();
List<String> status = Arrays.asList("status_example"); // List<String> | Status values that need to be considered for filter List<String> status = Arrays.asList("status_example"); // List<String> | Status values that need to be considered for filter
@ -150,7 +150,7 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.PetApi; //import org.openapitools.client.api.PetApi;
PetApi apiInstance = new PetApi(); PetApi apiInstance = new PetApi();
List<String> tags = Arrays.asList("tags_example"); // List<String> | Tags to filter by List<String> tags = Arrays.asList("tags_example"); // List<String> | Tags to filter by
@ -193,7 +193,7 @@ Returns a single pet
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.PetApi; //import org.openapitools.client.api.PetApi;
PetApi apiInstance = new PetApi(); PetApi apiInstance = new PetApi();
Long petId = 56L; // Long | ID of pet to return Long petId = 56L; // Long | ID of pet to return
@ -234,7 +234,7 @@ Update an existing pet
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.PetApi; //import org.openapitools.client.api.PetApi;
PetApi apiInstance = new PetApi(); PetApi apiInstance = new PetApi();
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
@ -262,7 +262,7 @@ null (empty response body)
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: application/json, application/xml
- **Accept**: Not defined - **Accept**: Not defined
<a name="updatePetWithForm"></a> <a name="updatePetWithForm"></a>
@ -274,12 +274,12 @@ Updates a pet in the store with form data
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.PetApi; //import org.openapitools.client.api.PetApi;
PetApi apiInstance = new PetApi(); PetApi apiInstance = new PetApi();
Long petId = 56L; // Long | ID of pet that needs to be updated Long petId = 56L; // Long | ID of pet that needs to be updated
String name = "name_example"; // String | Updated name of the pet String name = "null"; // String | Updated name of the pet
String status = "status_example"; // String | Updated status of the pet String status = "null"; // String | Updated status of the pet
try { try {
apiInstance.updatePetWithForm(petId, name, status); apiInstance.updatePetWithForm(petId, name, status);
} catch (ApiException e) { } catch (ApiException e) {
@ -293,8 +293,8 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**petId** | **Long**| ID of pet that needs to be updated | **petId** | **Long**| ID of pet that needs to be updated |
**name** | **String**| Updated name of the pet | [optional] **name** | **String**| Updated name of the pet | [optional] [default to null]
**status** | **String**| Updated status of the pet | [optional] **status** | **String**| Updated status of the pet | [optional] [default to null]
### Return type ### Return type
@ -318,12 +318,12 @@ uploads an image
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.PetApi; //import org.openapitools.client.api.PetApi;
PetApi apiInstance = new PetApi(); PetApi apiInstance = new PetApi();
Long petId = 56L; // Long | ID of pet to update Long petId = 56L; // Long | ID of pet to update
String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server String additionalMetadata = "null"; // String | Additional data to pass to server
File file = new File("/path/to/file"); // File | file to upload File file = new File("null"); // File | file to upload
try { try {
ApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, file); ApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, file);
System.out.println(result); System.out.println(result);
@ -338,8 +338,8 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**petId** | **Long**| ID of pet to update | **petId** | **Long**| ID of pet to update |
**additionalMetadata** | **String**| Additional data to pass to server | [optional] **additionalMetadata** | **String**| Additional data to pass to server | [optional] [default to null]
**file** | **File**| file to upload | [optional] **file** | **File**| file to upload | [optional] [default to null]
### Return type ### Return type

View File

@ -21,7 +21,7 @@ For valid response try integer IDs with value &lt; 1000. Anything above 1000 or
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.StoreApi; //import org.openapitools.client.api.StoreApi;
StoreApi apiInstance = new StoreApi(); StoreApi apiInstance = new StoreApi();
String orderId = "orderId_example"; // String | ID of the order that needs to be deleted String orderId = "orderId_example"; // String | ID of the order that needs to be deleted
@ -63,7 +63,7 @@ Returns a map of status codes to quantities
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.StoreApi; //import org.openapitools.client.api.StoreApi;
StoreApi apiInstance = new StoreApi(); StoreApi apiInstance = new StoreApi();
try { try {
@ -102,7 +102,7 @@ For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other val
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.StoreApi; //import org.openapitools.client.api.StoreApi;
StoreApi apiInstance = new StoreApi(); StoreApi apiInstance = new StoreApi();
Long orderId = 56L; // Long | ID of pet that needs to be fetched Long orderId = 56L; // Long | ID of pet that needs to be fetched
@ -119,7 +119,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**orderId** | **Long**| ID of pet that needs to be fetched | [enum: ] **orderId** | **Long**| ID of pet that needs to be fetched |
### Return type ### Return type
@ -143,10 +143,10 @@ Place an order for a pet
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.StoreApi; //import org.openapitools.client.api.StoreApi;
StoreApi apiInstance = new StoreApi(); StoreApi apiInstance = new StoreApi();
Order order = new Order(); // Order | order placed for purchasing the pet Order order = {petId=6, quantity=1, id=0, shipDate=2000-01-23T04:56:07.000+00:00, complete=false, status=placed}; // Order | order placed for purchasing the pet
try { try {
Order result = apiInstance.placeOrder(order); Order result = apiInstance.placeOrder(order);
System.out.println(result); System.out.println(result);
@ -172,6 +172,6 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: application/xml, application/json

View File

@ -25,7 +25,7 @@ This can only be done by the logged in user.
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.UserApi; //import org.openapitools.client.api.UserApi;
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
User user = new User(); // User | Created user object User user = new User(); // User | Created user object
@ -53,7 +53,7 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: Not defined
- **Accept**: Not defined - **Accept**: Not defined
<a name="createUsersWithArrayInput"></a> <a name="createUsersWithArrayInput"></a>
@ -65,7 +65,7 @@ Creates list of users with given input array
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.UserApi; //import org.openapitools.client.api.UserApi;
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
List<User> user = Arrays.asList(new List()); // List<User> | List of user object List<User> user = Arrays.asList(new List()); // List<User> | List of user object
@ -105,7 +105,7 @@ Creates list of users with given input array
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.UserApi; //import org.openapitools.client.api.UserApi;
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
List<User> user = Arrays.asList(new List()); // List<User> | List of user object List<User> user = Arrays.asList(new List()); // List<User> | List of user object
@ -147,7 +147,7 @@ This can only be done by the logged in user.
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.UserApi; //import org.openapitools.client.api.UserApi;
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
String username = "username_example"; // String | The name that needs to be deleted String username = "username_example"; // String | The name that needs to be deleted
@ -187,7 +187,7 @@ Get user by user name
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.UserApi; //import org.openapitools.client.api.UserApi;
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing. String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
@ -228,7 +228,7 @@ Logs user into the system
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.UserApi; //import org.openapitools.client.api.UserApi;
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
String username = "username_example"; // String | The user name for login String username = "username_example"; // String | The user name for login
@ -271,7 +271,7 @@ Logs out current logged in user session
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.UserApi; //import org.openapitools.client.api.UserApi;
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
try { try {
@ -309,11 +309,11 @@ This can only be done by the logged in user.
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.api.UserApi; //import org.openapitools.client.api.UserApi;
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
String username = "username_example"; // String | name that need to be deleted String username = "username_example"; // String | name that need to be deleted
User user = new User(); // User | Updated user object User user = {firstName=firstName, lastName=lastName, password=password, userStatus=6, phone=phone, id=0, email=email, username=username}; // User | Updated user object
try { try {
apiInstance.updateUser(username, user); apiInstance.updateUser(username, user);
} catch (ApiException e) { } catch (ApiException e) {
@ -339,6 +339,6 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: Not defined
- **Accept**: Not defined - **Accept**: Not defined

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
# #
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
git_user_id=$1 git_user_id=$1
git_repo_id=$2 git_repo_id=$2

0
samples/client/petstore/android/volley/gradlew vendored Executable file → Normal file
View File

View File

@ -2,8 +2,8 @@
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>io.swagger</groupId> <groupId>org.openapitools</groupId>
<artifactId>swagger-petstore-android-volley</artifactId> <artifactId>petstore-android-volley</artifactId>
<version>1.0.0</version> <version>1.0.0</version>
<dependencies> <dependencies>
<dependency> <dependency>

View File

@ -1,4 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="io.swagger.client"> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.openapitools.client">
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application /> <application />

View File

@ -1,53 +0,0 @@
" zip.vim version v27
" Browsing zipfile /Users/huangzhenjun/Public/git/PartTime/swagger-codegen/samples/client/petstore/android/volley/gradle/wrapper/gradle-wrapper.jar
" Select a file with cursor and press ENTER
META-INF/
META-INF/MANIFEST.MF
org/
org/gradle/
org/gradle/wrapper/
org/gradle/wrapper/Download$1.class
org/gradle/wrapper/Download$SystemPropertiesProxyAuthenticator.class
org/gradle/wrapper/IDownload.class
org/gradle/wrapper/GradleUserHomeLookup.class
org/gradle/wrapper/ExclusiveFileAccessManager.class
org/gradle/wrapper/WrapperConfiguration.class
org/gradle/wrapper/SystemPropertiesHandler.class
org/gradle/wrapper/Logger.class
org/gradle/wrapper/PathAssembler.class
org/gradle/wrapper/Install.class
org/gradle/wrapper/BootstrapMainStarter.class
org/gradle/wrapper/WrapperExecutor.class
org/gradle/wrapper/GradleWrapperMain.class
org/gradle/wrapper/Install$1.class
org/gradle/wrapper/PathAssembler$LocalDistribution.class
org/gradle/wrapper/Download.class
gradle-wrapper-classpath.properties
build-receipt.properties
org/gradle/cli/
org/gradle/cli/AbstractCommandLineConverter.class
org/gradle/cli/CommandLineParser$1.class
org/gradle/cli/CommandLineParser$MissingOptionArgState.class
org/gradle/cli/CommandLineParser$OptionStringComparator.class
org/gradle/cli/CommandLineArgumentException.class
org/gradle/cli/CommandLineParser$KnownOptionParserState.class
org/gradle/cli/CommandLineParser$OptionComparator.class
org/gradle/cli/CommandLineParser$UnknownOptionParserState.class
org/gradle/cli/CommandLineOption.class
org/gradle/cli/CommandLineParser$OptionParserState.class
org/gradle/cli/ParsedCommandLine.class
org/gradle/cli/ProjectPropertiesCommandLineConverter.class
org/gradle/cli/CommandLineParser$CaseInsensitiveStringComparator.class
org/gradle/cli/CommandLineParser.class
org/gradle/cli/CommandLineParser$AfterOptions.class
org/gradle/cli/CommandLineParser$OptionString.class
org/gradle/cli/AbstractPropertiesCommandLineConverter.class
org/gradle/cli/ParsedCommandLineOption.class
org/gradle/cli/CommandLineParser$OptionAwareParserState.class
org/gradle/cli/CommandLineConverter.class
org/gradle/cli/CommandLineParser$BeforeFirstSubCommand.class
org/gradle/cli/SystemPropertiesCommandLineConverter.class
org/gradle/cli/CommandLineParser$ParserState.class
org/gradle/cli/CommandLineParser$AfterFirstSubCommand.class
gradle-cli-classpath.properties

View File

@ -1,6 +0,0 @@
#Mon May 16 21:00:31 CST 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.6-bin.zip

View File

@ -5,12 +5,12 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client; package org.openapitools.client;
public class ApiException extends Exception { public class ApiException extends Exception {
int code = 0; int code = 0;

View File

@ -5,12 +5,12 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client; package org.openapitools.client;
import com.android.volley.Cache; import com.android.volley.Cache;
import com.android.volley.DefaultRetryPolicy; import com.android.volley.DefaultRetryPolicy;
@ -46,14 +46,14 @@ import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException; import java.util.concurrent.TimeoutException;
import io.swagger.client.auth.Authentication; import org.openapitools.client.auth.Authentication;
import io.swagger.client.auth.ApiKeyAuth; import org.openapitools.client.auth.ApiKeyAuth;
import io.swagger.client.auth.HttpBasicAuth; import org.openapitools.client.auth.HttpBasicAuth;
import io.swagger.client.request.GetRequest; import org.openapitools.client.request.GetRequest;
import io.swagger.client.request.PostRequest; import org.openapitools.client.request.PostRequest;
import io.swagger.client.request.PutRequest; import org.openapitools.client.request.PutRequest;
import io.swagger.client.request.DeleteRequest; import org.openapitools.client.request.DeleteRequest;
import io.swagger.client.request.PatchRequest; import org.openapitools.client.request.PatchRequest;
public class ApiInvoker { public class ApiInvoker {
private static ApiInvoker INSTANCE; private static ApiInvoker INSTANCE;
@ -199,7 +199,7 @@ public class ApiInvoker {
public static void initializeInstance(Cache cache, Network network, int threadPoolSize, ResponseDelivery delivery, int connectionTimeout) { public static void initializeInstance(Cache cache, Network network, int threadPoolSize, ResponseDelivery delivery, int connectionTimeout) {
INSTANCE = new ApiInvoker(cache, network, threadPoolSize, delivery, connectionTimeout); INSTANCE = new ApiInvoker(cache, network, threadPoolSize, delivery, connectionTimeout);
setUserAgent("Swagger-Codegen/1.0.0/android"); setUserAgent("OpenAPI-Generator/1.0.0/android");
// Setup authentications (key: authentication name, value: authentication). // Setup authentications (key: authentication name, value: authentication).
INSTANCE.authentications = new HashMap<String, Authentication>(); INSTANCE.authentications = new HashMap<String, Authentication>();

View File

@ -5,12 +5,12 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client; package org.openapitools.client;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.google.gson.GsonBuilder; import com.google.gson.GsonBuilder;
@ -22,7 +22,7 @@ import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import java.util.List; import java.util.List;
import java.util.Date; import java.util.Date;
import io.swagger.client.model.*; import org.openapitools.client.model.*;
public class JsonUtil { public class JsonUtil {
public static GsonBuilder gsonBuilder; public static GsonBuilder gsonBuilder;

View File

@ -5,12 +5,12 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client; package org.openapitools.client;
public class Pair { public class Pair {
private String name = ""; private String name = "";

View File

@ -5,27 +5,27 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client.api; package org.openapitools.client.api;
import io.swagger.client.ApiInvoker; import org.openapitools.client.ApiInvoker;
import io.swagger.client.ApiException; import org.openapitools.client.ApiException;
import io.swagger.client.Pair; import org.openapitools.client.Pair;
import io.swagger.client.model.*; import org.openapitools.client.model.*;
import java.util.*; import java.util.*;
import com.android.volley.Response; import com.android.volley.Response;
import com.android.volley.VolleyError; import com.android.volley.VolleyError;
import io.swagger.client.model.ApiResponse; import org.openapitools.client.model.ApiResponse;
import java.io.File; import java.io.File;
import io.swagger.client.model.Pet; import org.openapitools.client.model.Pet;
import org.apache.http.HttpEntity; import org.apache.http.HttpEntity;
import org.apache.http.entity.mime.MultipartEntityBuilder; import org.apache.http.entity.mime.MultipartEntityBuilder;
@ -81,6 +81,8 @@ public class PetApi {
// form params // form params
Map<String, String> formParams = new HashMap<String, String>(); Map<String, String> formParams = new HashMap<String, String>();
String[] contentTypes = { String[] contentTypes = {
"application/json",
"application/xml"
}; };
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
@ -146,7 +148,7 @@ public class PetApi {
String[] contentTypes = { String[] contentTypes = {
"application/json","application/xml"
}; };
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
@ -715,6 +717,8 @@ public class PetApi {
// form params // form params
Map<String, String> formParams = new HashMap<String, String>(); Map<String, String> formParams = new HashMap<String, String>();
String[] contentTypes = { String[] contentTypes = {
"application/json",
"application/xml"
}; };
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
@ -780,7 +784,7 @@ public class PetApi {
String[] contentTypes = { String[] contentTypes = {
"application/json","application/xml"
}; };
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";

View File

@ -5,18 +5,18 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client.api; package org.openapitools.client.api;
import io.swagger.client.ApiInvoker; import org.openapitools.client.ApiInvoker;
import io.swagger.client.ApiException; import org.openapitools.client.ApiException;
import io.swagger.client.Pair; import org.openapitools.client.Pair;
import io.swagger.client.model.*; import org.openapitools.client.model.*;
import java.util.*; import java.util.*;
@ -24,7 +24,7 @@ import com.android.volley.Response;
import com.android.volley.VolleyError; import com.android.volley.VolleyError;
import java.util.Map; import java.util.Map;
import io.swagger.client.model.Order; import org.openapitools.client.model.Order;
import org.apache.http.HttpEntity; import org.apache.http.HttpEntity;
import org.apache.http.entity.mime.MultipartEntityBuilder; import org.apache.http.entity.mime.MultipartEntityBuilder;
@ -446,7 +446,6 @@ public class StoreApi {
// form params // form params
Map<String, String> formParams = new HashMap<String, String>(); Map<String, String> formParams = new HashMap<String, String>();
String[] contentTypes = { String[] contentTypes = {
"application/json"
}; };
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
@ -512,7 +511,7 @@ public class StoreApi {
String[] contentTypes = { String[] contentTypes = {
"application/json"
}; };
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";

View File

@ -5,18 +5,18 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client.api; package org.openapitools.client.api;
import io.swagger.client.ApiInvoker; import org.openapitools.client.ApiInvoker;
import io.swagger.client.ApiException; import org.openapitools.client.ApiException;
import io.swagger.client.Pair; import org.openapitools.client.Pair;
import io.swagger.client.model.*; import org.openapitools.client.model.*;
import java.util.*; import java.util.*;
@ -24,7 +24,7 @@ import com.android.volley.Response;
import com.android.volley.VolleyError; import com.android.volley.VolleyError;
import java.util.*; import java.util.*;
import io.swagger.client.model.User; import org.openapitools.client.model.User;
import org.apache.http.HttpEntity; import org.apache.http.HttpEntity;
import org.apache.http.entity.mime.MultipartEntityBuilder; import org.apache.http.entity.mime.MultipartEntityBuilder;
@ -80,7 +80,6 @@ public class UserApi {
// form params // form params
Map<String, String> formParams = new HashMap<String, String>(); Map<String, String> formParams = new HashMap<String, String>();
String[] contentTypes = { String[] contentTypes = {
"application/json"
}; };
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
@ -146,7 +145,7 @@ public class UserApi {
String[] contentTypes = { String[] contentTypes = {
"application/json"
}; };
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
@ -960,7 +959,6 @@ public class UserApi {
// form params // form params
Map<String, String> formParams = new HashMap<String, String>(); Map<String, String> formParams = new HashMap<String, String>();
String[] contentTypes = { String[] contentTypes = {
"application/json"
}; };
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
@ -1031,7 +1029,7 @@ public class UserApi {
String[] contentTypes = { String[] contentTypes = {
"application/json"
}; };
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json"; String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";

View File

@ -5,14 +5,14 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client.auth; package org.openapitools.client.auth;
import io.swagger.client.Pair; import org.openapitools.client.Pair;
import java.util.Map; import java.util.Map;
import java.util.List; import java.util.List;

View File

@ -5,14 +5,14 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client.auth; package org.openapitools.client.auth;
import io.swagger.client.Pair; import org.openapitools.client.Pair;
import java.util.Map; import java.util.Map;
import java.util.List; import java.util.List;

View File

@ -5,14 +5,14 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client.auth; package org.openapitools.client.auth;
import io.swagger.client.Pair; import org.openapitools.client.Pair;
import android.util.Base64; import android.util.Base64;

View File

@ -5,12 +5,12 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client.model; package org.openapitools.client.model;
import io.swagger.annotations.*; import io.swagger.annotations.*;
import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.SerializedName;

View File

@ -5,12 +5,12 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client.model; package org.openapitools.client.model;
import io.swagger.annotations.*; import io.swagger.annotations.*;
import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.SerializedName;

View File

@ -5,12 +5,12 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client.model; package org.openapitools.client.model;
import java.util.Date; import java.util.Date;
import io.swagger.annotations.*; import io.swagger.annotations.*;
@ -36,7 +36,7 @@ public class Order {
@SerializedName("status") @SerializedName("status")
private StatusEnum status = null; private StatusEnum status = null;
@SerializedName("complete") @SerializedName("complete")
private Boolean complete = null; private Boolean complete = false;
/** /**
**/ **/

View File

@ -5,16 +5,16 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client.model; package org.openapitools.client.model;
import io.swagger.client.model.Category;
import io.swagger.client.model.Tag;
import java.util.*; import java.util.*;
import org.openapitools.client.model.Category;
import org.openapitools.client.model.Tag;
import io.swagger.annotations.*; import io.swagger.annotations.*;
import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.SerializedName;

View File

@ -5,12 +5,12 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client.model; package org.openapitools.client.model;
import io.swagger.annotations.*; import io.swagger.annotations.*;
import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.SerializedName;

View File

@ -5,12 +5,12 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client.model; package org.openapitools.client.model;
import io.swagger.annotations.*; import io.swagger.annotations.*;
import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.SerializedName;

View File

@ -5,12 +5,12 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client.request; package org.openapitools.client.request;
import com.android.volley.AuthFailureError; import com.android.volley.AuthFailureError;
import com.android.volley.NetworkResponse; import com.android.volley.NetworkResponse;

View File

@ -5,12 +5,12 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client.request; package org.openapitools.client.request;
import com.android.volley.AuthFailureError; import com.android.volley.AuthFailureError;
import com.android.volley.Response; import com.android.volley.Response;

View File

@ -5,12 +5,12 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client.request; package org.openapitools.client.request;
import com.android.volley.AuthFailureError; import com.android.volley.AuthFailureError;
import com.android.volley.NetworkResponse; import com.android.volley.NetworkResponse;

View File

@ -5,12 +5,12 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client.request; package org.openapitools.client.request;
import com.android.volley.AuthFailureError; import com.android.volley.AuthFailureError;
import com.android.volley.NetworkResponse; import com.android.volley.NetworkResponse;

View File

@ -5,12 +5,12 @@
* OpenAPI spec version: 1.0.0 * OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io * Contact: apiteam@swagger.io
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://github.com/swagger-api/swagger-codegen.git * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
package io.swagger.client.request; package org.openapitools.client.request;
import com.android.volley.AuthFailureError; import com.android.volley.AuthFailureError;
import com.android.volley.NetworkResponse; import com.android.volley.NetworkResponse;