Skip to content

Commit

Permalink
refactor: api url 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
TaeyeonRoyce committed Feb 1, 2024
1 parent cf629ed commit 13d91b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class CartProductController(
return ResponseEntity.created(location).build()
}

@PatchMapping("/products/{cartProductId}/options")
@PatchMapping("/{cartProductId}/options")
fun updateOptions(
@Auth loginMember: LoginMember,
@PathVariable cartProductId: Long,
Expand All @@ -48,7 +48,7 @@ class CartProductController(
return ResponseEntity.noContent().build()
}

@DeleteMapping("/items")
@DeleteMapping
fun delete(
@Auth loginMember: LoginMember,
@RequestBody request: DeleteCartProductRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fun requestUpdateCartProductOption(
.header(HttpHeaders.AUTHORIZATION, accessToken)
.contentType("application/json")
} When {
patch("/carts/products/{cartProductId}/options", cartProductId)
patch("/carts/{cartProductId}/options", cartProductId)
} Then {
log().all()
} Extract {
Expand All @@ -72,7 +72,7 @@ fun requestDeleteCartProduct(
.header(HttpHeaders.AUTHORIZATION, accessToken)
.contentType("application/json")
} When {
delete("/carts/items")
delete("/carts")
} Then {
log().all()
} Extract {
Expand Down

0 comments on commit 13d91b9

Please sign in to comment.