Skip to content

Commit 31eb392

Browse files
committed
rebuild client
1 parent fde5014 commit 31eb392

File tree

1 file changed

+3
-2
lines changed
  • samples/client/petstore/java/src/main/java/io/swagger/client/api

1 file changed

+3
-2
lines changed

samples/client/petstore/java/src/main/java/io/swagger/client/api/PetApi.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,12 +402,13 @@ public void deletePet (String api_key, Long petId) throws ApiException {
402402
}
403403

404404

405-
public void uploadFile (String additionalMetadata, File file) throws ApiException {
405+
public void uploadFile (Long petId, String additionalMetadata, File file) throws ApiException {
406406
Object postBody = null;
407407

408408

409409
// create path and map variables
410-
String path = "/pet/{petId}/uploadImage".replaceAll("\\{format\\}","json");
410+
String path = "/pet/{petId}/uploadImage".replaceAll("\\{format\\}","json")
411+
.replaceAll("\\{" + "petId" + "\\}", apiInvoker.escapeString(petId.toString()));
411412

412413
// query params
413414
Map<String, String> queryParams = new HashMap<String, String>();

0 commit comments

Comments
 (0)