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
ResponseEntity<Void> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") IntegerpetId,@ApiParam(value = "") @RequestParam(value="name", required=false) Stringname,@ApiParam(value = "") @RequestParam(value="status", required=false) Stringstatus);
122
+
ResponseEntity<Void> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") LongpetId,@ApiParam(value = "") @RequestParam(value="name", required=false) Stringname,@ApiParam(value = "") @RequestParam(value="status", required=false) Stringstatus);
publicResponseEntity<List<Pet>> findPetsByStatus(@NotNull@ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid@RequestParam(value = "status", required = true) List<String> status) {
52
52
Stringaccept = request.getHeader("Accept");
53
+
if (accept != null && accept.contains("application/json")) {
publicResponseEntity<Void> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") IntegerpetId,@ApiParam(value = "") @RequestParam(value="name", required=false) Stringname,@ApiParam(value = "") @RequestParam(value="status", required=false) Stringstatus) {
98
+
publicResponseEntity<Void> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") LongpetId,@ApiParam(value = "") @RequestParam(value="name", required=false) Stringname,@ApiParam(value = "") @RequestParam(value="status", required=false) Stringstatus) {
Copy file name to clipboardExpand all lines: samples/server/petstore/springboot-implicitHeaders/src/main/java/io/swagger/api/StoreApi.java
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/**
2
-
* NOTE: This class is auto generated by the swagger code generator program (3.0.5-SNAPSHOT).
2
+
* NOTE: This class is auto generated by the swagger code generator program (3.0.11-SNAPSHOT).
3
3
* https://github.com/swagger-api/swagger-codegen
4
4
* Do not edit the class manually.
5
5
*/
@@ -26,7 +26,7 @@
26
26
@Api(value = "store", description = "the store API")
27
27
publicinterfaceStoreApi {
28
28
29
-
@ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ })
29
+
@ApiOperation(value = "Delete purchase order by ID", nickname = "deleteOrder", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", })
30
30
@ApiResponses(value = {
31
31
@ApiResponse(code = 400, message = "Invalid ID supplied"),
32
32
@ApiResponse(code = 404, message = "Order not found") })
@@ -38,7 +38,7 @@ public interface StoreApi {
38
38
39
39
40
40
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
@ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ })
52
+
@ApiOperation(value = "Find purchase order by ID", nickname = "getOrderById", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", })
ResponseEntity<Order> getOrderById(@DecimalMin("1") @DecimalMax("5") @ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathVariable("orderId") IntegerorderId);
62
+
ResponseEntity<Order> getOrderById(@Min(1L) @Max(5L) @ApiParam(value = "ID of pet that needs to be fetched",required=true, allowableValues = "") @PathVariable("orderId") LongorderId);
63
63
64
64
65
-
@ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ })
65
+
@ApiOperation(value = "Place an order for a pet", nickname = "placeOrder", notes = "", response = Order.class, tags={ "store", })
0 commit comments