Skip to content

Commit

Permalink
modified : added explanation to endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Optic-Okulist committed Oct 3, 2023
1 parent d4e4b49 commit c9ed878
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ public OrderResponseDto updateOrderStatus(@PathVariable Long id,
.valueOf(String.valueOf(orderUpdateDto.getStatus())));
}

@Operation(summary = "", description = "")
@Operation(summary = "Find all order Items", description = "Find all order Items")
@GetMapping("/{orderId}/items")
@PreAuthorize("hasRole('USER')")
public Set<OrderItemResponseDto> findAllOrderItems(@PathVariable Long orderId) {
logger.info("find All Order Items using id" + orderId);
return orderService.findAllOrderItems(orderId);
}

@Operation(summary = "", description = "")
@Operation(summary = "Find order item by ID ", description = "Find order item by ID ")
@GetMapping("/{orderId}/items/{itemId}")
@PreAuthorize("hasRole('USER')")
public OrderItemResponseDto findOrderItemById(@PathVariable Long orderId,
Expand Down

0 comments on commit c9ed878

Please sign in to comment.