Skip to content

Commit 2d61b27

Browse files
author
Paŭlo Ebermann
committed
Update samples spring-mvc-j8-async
1 parent 73cf7bc commit 2d61b27

File tree

1 file changed

+4
-4
lines changed
  • samples/server/petstore/spring-mvc-j8-async/src/main/java/io/swagger/api

1 file changed

+4
-4
lines changed

samples/server/petstore/spring-mvc-j8-async/src/main/java/io/swagger/api/StoreApi.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ public interface StoreApi {
2727
@ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class),
2828
@ApiResponse(code = 404, message = "Order not found", response = Void.class) })
2929

30-
@RequestMapping(value = "/store/order/{orderId}",
30+
@RequestMapping(value = "/store/order/{order_id}",
3131
produces = { "application/xml", "application/json" },
3232
method = RequestMethod.DELETE)
33-
default CompletableFuture<ResponseEntity<Void>> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true ) @PathVariable("orderId") String orderId) {
33+
default CompletableFuture<ResponseEntity<Void>> deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true ) @PathVariable("order_id") String orderId) {
3434
// do some magic!
3535
return CompletableFuture.completedFuture(new ResponseEntity<Void>(HttpStatus.OK));
3636
}
@@ -57,10 +57,10 @@ default CompletableFuture<ResponseEntity<Map<String, Integer>>> getInventory() {
5757
@ApiResponse(code = 400, message = "Invalid ID supplied", response = Order.class),
5858
@ApiResponse(code = 404, message = "Order not found", response = Order.class) })
5959

60-
@RequestMapping(value = "/store/order/{orderId}",
60+
@RequestMapping(value = "/store/order/{order_id}",
6161
produces = { "application/xml", "application/json" },
6262
method = RequestMethod.GET)
63-
default CompletableFuture<ResponseEntity<Order>> getOrderById( @Min(1) @Max(5)@ApiParam(value = "ID of pet that needs to be fetched",required=true ) @PathVariable("orderId") Long orderId) {
63+
default CompletableFuture<ResponseEntity<Order>> getOrderById( @Min(1) @Max(5)@ApiParam(value = "ID of pet that needs to be fetched",required=true ) @PathVariable("order_id") Long orderId) {
6464
// do some magic!
6565
return CompletableFuture.completedFuture(new ResponseEntity<Order>(HttpStatus.OK));
6666
}

0 commit comments

Comments
 (0)