You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CompletableFuture<ResponseEntity<Void>> addPet(@Parameter(description = "Pet object that needs to be added to the store" ,required=true ) @Valid@RequestBodyPetbody);
57
54
58
55
@@ -63,12 +60,10 @@ public interface PetApi {
63
60
* @param apiKey (optional)
64
61
* @return Invalid pet value (status code 400)
65
62
*/
66
-
@Operation(summary = "Deletes a pet", description = "",
67
-
tags={ "pet", },
68
-
responses = {
69
-
@ApiResponse(responseCode = "400", description = "Invalid pet value" ) })
70
-
@RequestMapping(value = "/pet/{petId}",
71
-
method = RequestMethod.DELETE)
63
+
@Operation(summary = "Deletes a pet", description = "",responses = {
64
+
@ApiResponse(responseCode = "400", description = "Invalid pet value" )
CompletableFuture<ResponseEntity<List<Pet>>> findPetsByStatus(@NotNull@Parameter(schema = @Schema(allowableValues = {"available, pending, sold"}, description = "Status values that need to be considered for filter", required = true)) @Valid@RequestParam(value = "status", required = true) List<String> status);
92
84
93
85
@@ -102,11 +94,12 @@ public interface PetApi {
102
94
*/
103
95
@Operation(summary = "Finds Pets by tags", description = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
@ApiResponse(responseCode = "400", description = "Invalid ID supplied" ) ,
121
+
@ApiResponse(responseCode = "404", description = "Pet not found" ) })
122
+
@RequestMapping(value = "/pet/{petId}",
123
+
produces = "application/json",
131
124
method = RequestMethod.GET)
132
125
CompletableFuture<ResponseEntity<Pet>> getPetById(@Parameter(in = ParameterIn.PATH,description = "ID of pet to return", required=true) @PathVariable("petId") LongpetId);
133
126
@@ -143,10 +136,10 @@ public interface PetApi {
143
136
@Operation(summary = "Update an existing pet", description = "",
144
137
tags={ "pet", },
145
138
responses = {
146
-
@ApiResponse(responseCode = "400", description = "Invalid ID supplied" ) ,
147
-
@ApiResponse(responseCode = "404", description = "Pet not found" ) ,
CompletableFuture<ResponseEntity<Void>> updatePet(@Parameter(description = "Pet object that needs to be added to the store" ,required=true ) @Valid@RequestBodyPetbody);
@@ -163,11 +156,11 @@ public interface PetApi {
163
156
@Operation(summary = "Updates a pet in the store with form data", description = "",
CompletableFuture<ResponseEntity<Void>> updatePetWithForm(@Parameter(in = ParameterIn.PATH,description = "ID of pet that needs to be updated",required=true) @PathVariable("petId") LongpetId,@Parameter( description = "Updated name of the pet" ) @RequestParam(value="name", required=false) Stringname,@Parameter( description = "Updated status of the pet" ) @RequestParam(value="status", required=false) Stringstatus);
163
+
CompletableFuture<ResponseEntity<Void>> updatePetWithForm(@Parameter(in = ParameterIn.PATH,description = "ID of pet that needs to be updated",required=true) @PathVariable("petId") LongpetId,@Parameter( description = "Updated name of the pet" ) @RequestParam(value="name", required=false) Stringname,@Parameter( description = "Updated status of the pet" ) @RequestParam(value="status", required=false) Stringstatus);
171
164
172
165
173
166
/**
@@ -181,8 +174,8 @@ public interface PetApi {
181
174
@Operation(summary = "uploads an image", description = "",
0 commit comments