Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public ResponseEntity<Void> deleteCart(
@ApiResponse(responseCode = "404",
description = "Cart not found for this customer")
})
@PostMapping("/{customerId}/items")
@PostMapping("/items")
public ResponseEntity<Cart> addItemToCart(
@RequestHeader("X-User-Id") final String customerId,
@RequestBody final CartItem cartItem) {
Expand All @@ -131,7 +131,7 @@ public ResponseEntity<Cart> addItemToCart(
@ApiResponse(responseCode = "404",
description = "Cart or item not found")
})
@PatchMapping("/{customerId}/items/{productId}")
@PatchMapping("/items/{productId}")
public ResponseEntity<Cart> updateItemQuantity(
@RequestHeader("X-User-Id") final String customerId,
@PathVariable("productId") final String productId,
Expand All @@ -154,7 +154,7 @@ public ResponseEntity<Cart> updateItemQuantity(
@ApiResponse(responseCode = "404",
description = "Cart or item not found")
})
@DeleteMapping("/{customerId}/items/{productId}")
@DeleteMapping("/items/{productId}")
public ResponseEntity<Cart> removeItemFromCart(
@RequestHeader("X-User-Id") final String customerId,
@PathVariable("productId") final String productId) {
Expand Down Expand Up @@ -239,7 +239,7 @@ public ResponseEntity<Cart> checkoutCart(
@RequestParam(required = false) final String signature,
@RequestParam(required = true) final Double longitude,
@RequestParam(required = true) final Double latitude,
@RequestParam(required = true) final DeliveryAddress address
@RequestBody(required = true) final DeliveryAddress address
) {
log.debug("Entering checkoutCart endpoint with customerId: {},"
+ " confirmationType: {}, signature: {}",
Expand Down