Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated java and spring samples #10993

Merged
merged 1 commit into from
Apr 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.25-SNAPSHOT
3.0.26-SNAPSHOT
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public ApiClient(String[] authNames) {
} else if ("http_basic_test".equals(authName)) {
auth = new HttpBasicAuth();
} else if ("petstore_auth".equals(authName)) {
auth = new OAuth(OAuthFlow.implicit, "http://petstore.swagger.io/api/oauth/dialog", "", "");
auth = new OAuth(OAuthFlow.implicit, "http://petstore.swagger.io/api/oauth/dialog", "", "write:pets, read:pets");
} else {
throw new RuntimeException("auth name \"" + authName + "\" not found in available auth names");
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.swagger.client.auth;

import java.io.IOException;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Map;
Expand Down Expand Up @@ -183,7 +184,6 @@ public <T extends OAuthClientResponse> T execute(OAuthClientRequest request, Map
if(contentTypeHeader != null) {
contentType = StringUtil.join(contentTypeHeader.toArray(new String[0]), ";");
}

return OAuthClientResponseFactory.createCustomResponse(
body,
contentType,
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.25-SNAPSHOT
3.0.26-SNAPSHOT
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ public void addAnimal(Animal body) throws ApiException {




final String[] localVarAccepts = {

};
Expand Down Expand Up @@ -109,7 +108,6 @@ public void deleteAnimal(Long animalId, String apiKey) throws ApiException {
if (apiKey != null)
localVarHeaderParams.put("api_key", apiClient.parameterToString(apiKey));


final String[] localVarAccepts = {

};
Expand Down Expand Up @@ -149,7 +147,6 @@ public Animal getAnimalById(Long animalId) throws ApiException {




final String[] localVarAccepts = {
"application/xml", "application/json"
};
Expand Down Expand Up @@ -188,7 +185,6 @@ public void updateAnimal(Animal body) throws ApiException {




final String[] localVarAccepts = {

};
Expand Down Expand Up @@ -228,8 +224,7 @@ public void updateAnimalWithForm(Long animalId, String name, String status) thro
Map<String, Object> localVarFormParams = new HashMap<String, Object>();



if (name != null)
if (name != null)
localVarFormParams.put("name", name);
if (status != null)
localVarFormParams.put("status", status);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ public Client testSpecialTags(Client body) throws ApiException {




final String[] localVarAccepts = {
"application/json"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ public void addDog(Dog body) throws ApiException {




final String[] localVarAccepts = {

};
Expand Down Expand Up @@ -109,7 +108,6 @@ public void deleteDog(Long dogId, String apiKey) throws ApiException {
if (apiKey != null)
localVarHeaderParams.put("api_key", apiClient.parameterToString(apiKey));


final String[] localVarAccepts = {

};
Expand Down Expand Up @@ -149,7 +147,6 @@ public Dog getDogById(Long dogId) throws ApiException {




final String[] localVarAccepts = {
"application/xml", "application/json"
};
Expand Down Expand Up @@ -188,7 +185,6 @@ public void updateDog(Dog body) throws ApiException {




final String[] localVarAccepts = {

};
Expand Down Expand Up @@ -228,8 +224,7 @@ public void updateDogWithForm(Long dogId, String name, String status) throws Api
Map<String, Object> localVarFormParams = new HashMap<String, Object>();



if (name != null)
if (name != null)
localVarFormParams.put("name", name);
if (status != null)
localVarFormParams.put("status", status);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException {




final String[] localVarAccepts = {
"*/*"
};
Expand Down Expand Up @@ -106,7 +105,6 @@ public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws Ap




final String[] localVarAccepts = {
"*/*"
};
Expand Down Expand Up @@ -142,7 +140,6 @@ public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException




final String[] localVarAccepts = {
"*/*"
};
Expand Down Expand Up @@ -178,7 +175,6 @@ public String fakeOuterStringSerialize(String body) throws ApiException {




final String[] localVarAccepts = {
"*/*"
};
Expand Down Expand Up @@ -218,7 +214,6 @@ public Client testClientModel(Client body) throws ApiException {




final String[] localVarAccepts = {
"application/json"
};
Expand Down Expand Up @@ -257,7 +252,6 @@ public void testEndpointParameters(Body2 body) throws ApiException {




final String[] localVarAccepts = {

};
Expand Down Expand Up @@ -302,7 +296,6 @@ public void testEnumParameters(List<String> enumHeaderStringArray, String enumHe
if (enumHeaderString != null)
localVarHeaderParams.put("enum_header_string", apiClient.parameterToString(enumHeaderString));


final String[] localVarAccepts = {

};
Expand Down Expand Up @@ -336,7 +329,6 @@ public void testEnumRequestBody(Body4 body) throws ApiException {




final String[] localVarAccepts = {

};
Expand Down Expand Up @@ -374,7 +366,6 @@ public void testInlineAdditionalProperties(Map<String, String> body) throws ApiE




final String[] localVarAccepts = {

};
Expand Down Expand Up @@ -412,7 +403,6 @@ public void testJsonFormData(Body5 body) throws ApiException {




final String[] localVarAccepts = {

};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ public Client testClassname(Client body) throws ApiException {




final String[] localVarAccepts = {
"application/json"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ public void addPet(Pet body) throws ApiException {




final String[] localVarAccepts = {

};
Expand Down Expand Up @@ -114,7 +113,6 @@ public void deletePet(Long petId, String apiKey) throws ApiException {
if (apiKey != null)
localVarHeaderParams.put("api_key", apiClient.parameterToString(apiKey));


final String[] localVarAccepts = {

};
Expand Down Expand Up @@ -149,7 +147,6 @@ public ModelApiResponse doCategoryStuff(SubCategory body) throws ApiException {




final String[] localVarAccepts = {
"application/json"
};
Expand Down Expand Up @@ -190,7 +187,6 @@ public List<Pet> findPetsByStatus(List<String> status) throws ApiException {
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "status", status));



final String[] localVarAccepts = {
"application/xml", "application/json"
};
Expand Down Expand Up @@ -233,7 +229,6 @@ public List<Pet> findPetsByTags(List<String> tags) throws ApiException {
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "tags", tags));



final String[] localVarAccepts = {
"application/xml", "application/json"
};
Expand Down Expand Up @@ -268,7 +263,6 @@ public AllPetsResponse getAllPets() throws ApiException {




final String[] localVarAccepts = {
"application/json"
};
Expand Down Expand Up @@ -309,7 +303,6 @@ public Pet getPetById(Long petId) throws ApiException {




final String[] localVarAccepts = {
"application/xml", "application/json"
};
Expand Down Expand Up @@ -344,7 +337,6 @@ public SinglePetResponse getRandomPet() throws ApiException {




final String[] localVarAccepts = {
"application/json"
};
Expand Down Expand Up @@ -383,7 +375,6 @@ public void updatePet(Pet body) throws ApiException {




final String[] localVarAccepts = {

};
Expand Down Expand Up @@ -423,8 +414,7 @@ public void updatePetWithForm(Long petId, String name, String status) throws Api
Map<String, Object> localVarFormParams = new HashMap<String, Object>();



if (name != null)
if (name != null)
localVarFormParams.put("name", name);
if (status != null)
localVarFormParams.put("status", status);
Expand Down Expand Up @@ -469,8 +459,7 @@ public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File f
Map<String, Object> localVarFormParams = new HashMap<String, Object>();



if (additionalMetadata != null)
if (additionalMetadata != null)
localVarFormParams.put("additionalMetadata", additionalMetadata);
if (file != null)
localVarFormParams.put("file", file);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ public void deleteOrder(String orderId) throws ApiException {




final String[] localVarAccepts = {

};
Expand Down Expand Up @@ -102,7 +101,6 @@ public Map<String, Integer> getInventory() throws ApiException {




final String[] localVarAccepts = {
"application/json"
};
Expand Down Expand Up @@ -143,7 +141,6 @@ public Order getOrderById(Long orderId) throws ApiException {




final String[] localVarAccepts = {
"application/xml", "application/json"
};
Expand Down Expand Up @@ -183,7 +180,6 @@ public Order placeOrder(Order body) throws ApiException {




final String[] localVarAccepts = {
"application/xml", "application/json"
};
Expand Down
Loading