update retrofit2 petstore samples

This commit is contained in:
wing328 2017-09-01 17:14:43 +08:00
parent 481c040373
commit 0f1a61d9c2
41 changed files with 63 additions and 50 deletions

0
samples/client/petstore/java/retrofit2-play24/gradlew vendored Executable file → Normal file
View File

View File

@ -2,6 +2,8 @@ package io.swagger.client.api;
import io.swagger.client.CollectionFormats.*; import io.swagger.client.CollectionFormats.*;
import retrofit2.Call; import retrofit2.Call;
import retrofit2.http.*; import retrofit2.http.*;

View File

@ -2,6 +2,8 @@ package io.swagger.client.api;
import io.swagger.client.CollectionFormats.*; import io.swagger.client.CollectionFormats.*;
import retrofit2.Call; import retrofit2.Call;
import retrofit2.http.*; import retrofit2.http.*;

View File

@ -2,6 +2,8 @@ package io.swagger.client.api;
import io.swagger.client.CollectionFormats.*; import io.swagger.client.CollectionFormats.*;
import retrofit2.Call; import retrofit2.Call;
import retrofit2.http.*; import retrofit2.http.*;

View File

@ -2,6 +2,8 @@ package io.swagger.client.api;
import io.swagger.client.CollectionFormats.*; import io.swagger.client.CollectionFormats.*;
import retrofit2.Call; import retrofit2.Call;
import retrofit2.http.*; import retrofit2.http.*;

View File

@ -2,6 +2,8 @@ package io.swagger.client.api;
import io.swagger.client.CollectionFormats.*; import io.swagger.client.CollectionFormats.*;
import retrofit2.Call; import retrofit2.Call;
import retrofit2.http.*; import retrofit2.http.*;

View File

@ -43,7 +43,7 @@ public class AdditionalPropertiesClass {
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) { public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
if (this.mapProperty == null) { if (this.mapProperty == null) {
this.mapProperty = new HashMap<>(); this.mapProperty = new HashMap<String, String>();
} }
this.mapProperty.put(key, mapPropertyItem); this.mapProperty.put(key, mapPropertyItem);
return this; return this;
@ -69,7 +69,7 @@ public class AdditionalPropertiesClass {
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) { public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
if (this.mapOfMapProperty == null) { if (this.mapOfMapProperty == null) {
this.mapOfMapProperty = new HashMap<>(); this.mapOfMapProperty = new HashMap<String, Map<String, String>>();
} }
this.mapOfMapProperty.put(key, mapOfMapPropertyItem); this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
return this; return this;

View File

@ -40,7 +40,7 @@ public class ArrayOfArrayOfNumberOnly {
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) { public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
if (this.arrayArrayNumber == null) { if (this.arrayArrayNumber == null) {
this.arrayArrayNumber = new ArrayList<>(); this.arrayArrayNumber = new ArrayList<List<BigDecimal>>();
} }
this.arrayArrayNumber.add(arrayArrayNumberItem); this.arrayArrayNumber.add(arrayArrayNumberItem);
return this; return this;

View File

@ -40,7 +40,7 @@ public class ArrayOfNumberOnly {
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
if (this.arrayNumber == null) { if (this.arrayNumber == null) {
this.arrayNumber = new ArrayList<>(); this.arrayNumber = new ArrayList<BigDecimal>();
} }
this.arrayNumber.add(arrayNumberItem); this.arrayNumber.add(arrayNumberItem);
return this; return this;

View File

@ -46,7 +46,7 @@ public class ArrayTest {
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
if (this.arrayOfString == null) { if (this.arrayOfString == null) {
this.arrayOfString = new ArrayList<>(); this.arrayOfString = new ArrayList<String>();
} }
this.arrayOfString.add(arrayOfStringItem); this.arrayOfString.add(arrayOfStringItem);
return this; return this;
@ -72,7 +72,7 @@ public class ArrayTest {
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) { public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
if (this.arrayArrayOfInteger == null) { if (this.arrayArrayOfInteger == null) {
this.arrayArrayOfInteger = new ArrayList<>(); this.arrayArrayOfInteger = new ArrayList<List<Long>>();
} }
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem); this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
return this; return this;
@ -99,7 +99,7 @@ public class ArrayTest {
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) { public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
if (this.arrayArrayOfModel == null) { if (this.arrayArrayOfModel == null) {
this.arrayArrayOfModel = new ArrayList<>(); this.arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
} }
this.arrayArrayOfModel.add(arrayArrayOfModelItem); this.arrayArrayOfModel.add(arrayArrayOfModelItem);
return this; return this;

View File

@ -130,7 +130,7 @@ public class EnumArrays {
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
if (this.arrayEnum == null) { if (this.arrayEnum == null) {
this.arrayEnum = new ArrayList<>(); this.arrayEnum = new ArrayList<ArrayEnumEnum>();
} }
this.arrayEnum.add(arrayEnumItem); this.arrayEnum.add(arrayEnumItem);
return this; return this;

View File

@ -13,15 +13,18 @@
package io.swagger.client.model; package io.swagger.client.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.time.LocalDate; import java.time.LocalDate;
import java.time.OffsetDateTime; import java.time.OffsetDateTime;
import java.util.Objects;
import java.util.UUID; import java.util.UUID;
import javax.validation.constraints.*;
import javax.validation.Valid;
/** /**
* FormatTest * FormatTest

View File

@ -78,7 +78,7 @@ public class MapTest {
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) { public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
if (this.mapMapOfString == null) { if (this.mapMapOfString == null) {
this.mapMapOfString = new HashMap<>(); this.mapMapOfString = new HashMap<String, Map<String, String>>();
} }
this.mapMapOfString.put(key, mapMapOfStringItem); this.mapMapOfString.put(key, mapMapOfStringItem);
return this; return this;
@ -105,7 +105,7 @@ public class MapTest {
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) { public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
if (this.mapOfEnumString == null) { if (this.mapOfEnumString == null) {
this.mapOfEnumString = new HashMap<>(); this.mapOfEnumString = new HashMap<String, InnerEnum>();
} }
this.mapOfEnumString.put(key, mapOfEnumStringItem); this.mapOfEnumString.put(key, mapOfEnumStringItem);
return this; return this;

View File

@ -87,7 +87,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) { public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
if (this.map == null) { if (this.map == null) {
this.map = new HashMap<>(); this.map = new HashMap<String, Animal>();
} }
this.map.put(key, mapItem); this.map.put(key, mapItem);
return this; return this;

View File

@ -41,7 +41,7 @@ public class Pet {
private String name = null; private String name = null;
@JsonProperty("photoUrls") @JsonProperty("photoUrls")
private List<String> photoUrls = new ArrayList<>(); private List<String> photoUrls = new ArrayList<String>();
@JsonProperty("tags") @JsonProperty("tags")
private List<Tag> tags = null; private List<Tag> tags = null;
@ -173,7 +173,7 @@ public class Pet {
public Pet addTagsItem(Tag tagsItem) { public Pet addTagsItem(Tag tagsItem) {
if (this.tags == null) { if (this.tags == null) {
this.tags = new ArrayList<>(); this.tags = new ArrayList<Tag>();
} }
this.tags.add(tagsItem); this.tags.add(tagsItem);
return this; return this;

View File

@ -43,7 +43,7 @@ public class AdditionalPropertiesClass {
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) { public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
if (this.mapProperty == null) { if (this.mapProperty == null) {
this.mapProperty = new HashMap<>(); this.mapProperty = new HashMap<String, String>();
} }
this.mapProperty.put(key, mapPropertyItem); this.mapProperty.put(key, mapPropertyItem);
return this; return this;
@ -69,7 +69,7 @@ public class AdditionalPropertiesClass {
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) { public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
if (this.mapOfMapProperty == null) { if (this.mapOfMapProperty == null) {
this.mapOfMapProperty = new HashMap<>(); this.mapOfMapProperty = new HashMap<String, Map<String, String>>();
} }
this.mapOfMapProperty.put(key, mapOfMapPropertyItem); this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
return this; return this;

View File

@ -40,7 +40,7 @@ public class ArrayOfArrayOfNumberOnly {
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) { public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
if (this.arrayArrayNumber == null) { if (this.arrayArrayNumber == null) {
this.arrayArrayNumber = new ArrayList<>(); this.arrayArrayNumber = new ArrayList<List<BigDecimal>>();
} }
this.arrayArrayNumber.add(arrayArrayNumberItem); this.arrayArrayNumber.add(arrayArrayNumberItem);
return this; return this;

View File

@ -40,7 +40,7 @@ public class ArrayOfNumberOnly {
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
if (this.arrayNumber == null) { if (this.arrayNumber == null) {
this.arrayNumber = new ArrayList<>(); this.arrayNumber = new ArrayList<BigDecimal>();
} }
this.arrayNumber.add(arrayNumberItem); this.arrayNumber.add(arrayNumberItem);
return this; return this;

View File

@ -46,7 +46,7 @@ public class ArrayTest {
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
if (this.arrayOfString == null) { if (this.arrayOfString == null) {
this.arrayOfString = new ArrayList<>(); this.arrayOfString = new ArrayList<String>();
} }
this.arrayOfString.add(arrayOfStringItem); this.arrayOfString.add(arrayOfStringItem);
return this; return this;
@ -72,7 +72,7 @@ public class ArrayTest {
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) { public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
if (this.arrayArrayOfInteger == null) { if (this.arrayArrayOfInteger == null) {
this.arrayArrayOfInteger = new ArrayList<>(); this.arrayArrayOfInteger = new ArrayList<List<Long>>();
} }
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem); this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
return this; return this;
@ -99,7 +99,7 @@ public class ArrayTest {
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) { public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
if (this.arrayArrayOfModel == null) { if (this.arrayArrayOfModel == null) {
this.arrayArrayOfModel = new ArrayList<>(); this.arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
} }
this.arrayArrayOfModel.add(arrayArrayOfModelItem); this.arrayArrayOfModel.add(arrayArrayOfModelItem);
return this; return this;

View File

@ -130,7 +130,7 @@ public class EnumArrays {
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
if (this.arrayEnum == null) { if (this.arrayEnum == null) {
this.arrayEnum = new ArrayList<>(); this.arrayEnum = new ArrayList<ArrayEnumEnum>();
} }
this.arrayEnum.add(arrayEnumItem); this.arrayEnum.add(arrayEnumItem);
return this; return this;

View File

@ -78,7 +78,7 @@ public class MapTest {
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) { public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
if (this.mapMapOfString == null) { if (this.mapMapOfString == null) {
this.mapMapOfString = new HashMap<>(); this.mapMapOfString = new HashMap<String, Map<String, String>>();
} }
this.mapMapOfString.put(key, mapMapOfStringItem); this.mapMapOfString.put(key, mapMapOfStringItem);
return this; return this;
@ -105,7 +105,7 @@ public class MapTest {
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) { public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
if (this.mapOfEnumString == null) { if (this.mapOfEnumString == null) {
this.mapOfEnumString = new HashMap<>(); this.mapOfEnumString = new HashMap<String, InnerEnum>();
} }
this.mapOfEnumString.put(key, mapOfEnumStringItem); this.mapOfEnumString.put(key, mapOfEnumStringItem);
return this; return this;

View File

@ -87,7 +87,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) { public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
if (this.map == null) { if (this.map == null) {
this.map = new HashMap<>(); this.map = new HashMap<String, Animal>();
} }
this.map.put(key, mapItem); this.map.put(key, mapItem);
return this; return this;

View File

@ -41,7 +41,7 @@ public class Pet {
private String name = null; private String name = null;
@JsonProperty("photoUrls") @JsonProperty("photoUrls")
private List<String> photoUrls = new ArrayList<>(); private List<String> photoUrls = new ArrayList<String>();
@JsonProperty("tags") @JsonProperty("tags")
private List<Tag> tags = null; private List<Tag> tags = null;
@ -173,7 +173,7 @@ public class Pet {
public Pet addTagsItem(Tag tagsItem) { public Pet addTagsItem(Tag tagsItem) {
if (this.tags == null) { if (this.tags == null) {
this.tags = new ArrayList<>(); this.tags = new ArrayList<Tag>();
} }
this.tags.add(tagsItem); this.tags.add(tagsItem);
return this; return this;

View File

@ -6,6 +6,7 @@ import retrofit2.Call;
import retrofit2.http.*; import retrofit2.http.*;
import okhttp3.RequestBody; import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import java.math.BigDecimal; import java.math.BigDecimal;
import io.swagger.client.model.Client; import io.swagger.client.model.Client;
@ -18,7 +19,6 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public interface FakeApi { public interface FakeApi {
/** /**
* *

View File

@ -6,6 +6,7 @@ import retrofit2.Call;
import retrofit2.http.*; import retrofit2.http.*;
import okhttp3.RequestBody; import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import io.swagger.client.model.Client; import io.swagger.client.model.Client;
@ -14,7 +15,6 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public interface FakeClassnameTags123Api { public interface FakeClassnameTags123Api {
/** /**
* To test class name in snake case * To test class name in snake case

View File

@ -6,6 +6,7 @@ import retrofit2.Call;
import retrofit2.http.*; import retrofit2.http.*;
import okhttp3.RequestBody; import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import java.io.File; import java.io.File;
import io.swagger.client.model.ModelApiResponse; import io.swagger.client.model.ModelApiResponse;
@ -16,7 +17,6 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public interface PetApi { public interface PetApi {
/** /**
* Add a new pet to the store * Add a new pet to the store
@ -116,7 +116,7 @@ public interface PetApi {
@retrofit2.http.Multipart @retrofit2.http.Multipart
@POST("pet/{petId}/uploadImage") @POST("pet/{petId}/uploadImage")
Call<ModelApiResponse> uploadFile( Call<ModelApiResponse> uploadFile(
@retrofit2.http.Path("petId") Long petId, @retrofit2.http.Part("additionalMetadata") String additionalMetadata, @retrofit2.http.Part("file\"; filename=\"file") RequestBody file @retrofit2.http.Path("petId") Long petId, @retrofit2.http.Part("additionalMetadata") String additionalMetadata, @retrofit2.http.Part okhttp3.MultipartBody.Part file
); );
} }

View File

@ -6,6 +6,7 @@ import retrofit2.Call;
import retrofit2.http.*; import retrofit2.http.*;
import okhttp3.RequestBody; import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import io.swagger.client.model.Order; import io.swagger.client.model.Order;
@ -14,7 +15,6 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public interface StoreApi { public interface StoreApi {
/** /**
* Delete purchase order by ID * Delete purchase order by ID

View File

@ -6,6 +6,7 @@ import retrofit2.Call;
import retrofit2.http.*; import retrofit2.http.*;
import okhttp3.RequestBody; import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import io.swagger.client.model.User; import io.swagger.client.model.User;
@ -14,7 +15,6 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public interface UserApi { public interface UserApi {
/** /**
* Create user * Create user

View File

@ -6,6 +6,7 @@ import rx.Observable;
import retrofit2.http.*; import retrofit2.http.*;
import okhttp3.RequestBody; import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import java.math.BigDecimal; import java.math.BigDecimal;
import io.swagger.client.model.Client; import io.swagger.client.model.Client;
@ -18,7 +19,6 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public interface FakeApi { public interface FakeApi {
/** /**
* *

View File

@ -6,6 +6,7 @@ import rx.Observable;
import retrofit2.http.*; import retrofit2.http.*;
import okhttp3.RequestBody; import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import io.swagger.client.model.Client; import io.swagger.client.model.Client;
@ -14,7 +15,6 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public interface FakeClassnameTags123Api { public interface FakeClassnameTags123Api {
/** /**
* To test class name in snake case * To test class name in snake case

View File

@ -6,6 +6,7 @@ import rx.Observable;
import retrofit2.http.*; import retrofit2.http.*;
import okhttp3.RequestBody; import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import java.io.File; import java.io.File;
import io.swagger.client.model.ModelApiResponse; import io.swagger.client.model.ModelApiResponse;
@ -16,7 +17,6 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public interface PetApi { public interface PetApi {
/** /**
* Add a new pet to the store * Add a new pet to the store
@ -116,7 +116,7 @@ public interface PetApi {
@retrofit2.http.Multipart @retrofit2.http.Multipart
@POST("pet/{petId}/uploadImage") @POST("pet/{petId}/uploadImage")
Observable<ModelApiResponse> uploadFile( Observable<ModelApiResponse> uploadFile(
@retrofit2.http.Path("petId") Long petId, @retrofit2.http.Part("additionalMetadata") String additionalMetadata, @retrofit2.http.Part("file\"; filename=\"file") RequestBody file @retrofit2.http.Path("petId") Long petId, @retrofit2.http.Part("additionalMetadata") String additionalMetadata, @retrofit2.http.Part okhttp3.MultipartBody.Part file
); );
} }

View File

@ -6,6 +6,7 @@ import rx.Observable;
import retrofit2.http.*; import retrofit2.http.*;
import okhttp3.RequestBody; import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import io.swagger.client.model.Order; import io.swagger.client.model.Order;
@ -14,7 +15,6 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public interface StoreApi { public interface StoreApi {
/** /**
* Delete purchase order by ID * Delete purchase order by ID

View File

@ -6,6 +6,7 @@ import rx.Observable;
import retrofit2.http.*; import retrofit2.http.*;
import okhttp3.RequestBody; import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import io.swagger.client.model.User; import io.swagger.client.model.User;
@ -14,7 +15,6 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public interface UserApi { public interface UserApi {
/** /**
* Create user * Create user

View File

@ -6,6 +6,7 @@ import io.reactivex.Observable;
import retrofit2.http.*; import retrofit2.http.*;
import okhttp3.RequestBody; import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import java.math.BigDecimal; import java.math.BigDecimal;
import io.swagger.client.model.Client; import io.swagger.client.model.Client;
@ -18,7 +19,6 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public interface FakeApi { public interface FakeApi {
/** /**
* *

View File

@ -6,6 +6,7 @@ import io.reactivex.Observable;
import retrofit2.http.*; import retrofit2.http.*;
import okhttp3.RequestBody; import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import io.swagger.client.model.Client; import io.swagger.client.model.Client;
@ -14,7 +15,6 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public interface FakeClassnameTags123Api { public interface FakeClassnameTags123Api {
/** /**
* To test class name in snake case * To test class name in snake case

View File

@ -6,6 +6,7 @@ import io.reactivex.Observable;
import retrofit2.http.*; import retrofit2.http.*;
import okhttp3.RequestBody; import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import java.io.File; import java.io.File;
import io.swagger.client.model.ModelApiResponse; import io.swagger.client.model.ModelApiResponse;
@ -16,7 +17,6 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public interface PetApi { public interface PetApi {
/** /**
* Add a new pet to the store * Add a new pet to the store
@ -116,7 +116,7 @@ public interface PetApi {
@retrofit2.http.Multipart @retrofit2.http.Multipart
@POST("pet/{petId}/uploadImage") @POST("pet/{petId}/uploadImage")
Observable<ModelApiResponse> uploadFile( Observable<ModelApiResponse> uploadFile(
@retrofit2.http.Path("petId") Long petId, @retrofit2.http.Part("additionalMetadata") String additionalMetadata, @retrofit2.http.Part("file\"; filename=\"file") RequestBody file @retrofit2.http.Path("petId") Long petId, @retrofit2.http.Part("additionalMetadata") String additionalMetadata, @retrofit2.http.Part okhttp3.MultipartBody.Part file
); );
} }

View File

@ -6,6 +6,7 @@ import io.reactivex.Observable;
import retrofit2.http.*; import retrofit2.http.*;
import okhttp3.RequestBody; import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import io.swagger.client.model.Order; import io.swagger.client.model.Order;
@ -14,7 +15,6 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public interface StoreApi { public interface StoreApi {
/** /**
* Delete purchase order by ID * Delete purchase order by ID

View File

@ -6,6 +6,7 @@ import io.reactivex.Observable;
import retrofit2.http.*; import retrofit2.http.*;
import okhttp3.RequestBody; import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import io.swagger.client.model.User; import io.swagger.client.model.User;
@ -14,7 +15,6 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public interface UserApi { public interface UserApi {
/** /**
* Create user * Create user