CART API Doc - Kim-Gyuri/bookstore GitHub Wiki
- μ₯λ°κ΅¬λ μ‘°ν
- μ₯λ°κ΅¬λμ μν λ΄κΈ°
- μ₯λ°κ΅¬λμ λ΄κΈ΄ μν μμ
β
μ₯λ°κ΅¬λ μ‘°ν
request-fields
Path |
Type |
Description |
userId |
String |
νμ μμ΄λ |
Example request
GET /api/carts?userId=test
Host: localhost:8080
Example response
HTTP 200 ok
Content-Type: application/json
RESPONSE BODY
[
{
"orderItemId": 67,
"loginId": null,
"itemName": "Ariana Grande",
"mainImg_savePath": "https://github.com/Kim-Gyuri/bookstore/assets/57389368/3bd66ffe-53fe-4e7f-b676-4909ccddbb4b",
"count": 5,
"orderPrice": 60000
},
{
"orderItemId": 68,
"loginId": null,
"itemName": "BAEK HYUN",
"mainImg_savePath": "https://github.com/Kim-Gyuri/bookstore/assets/57389368/27392311-6b6c-4852-8087-6a12834b9908",
"count": 2,
"orderPrice": 60000
}
]
β
μ₯λ°κ΅¬λμ μν λ΄κΈ°
request-fields
Path |
Type |
Description |
userId |
String |
νμ μμ΄λ |
count |
Integer |
μ£Όλ¬Έ μλ |
itemId |
Long |
μν λ²νΈ |
Example request
POST /api/items/11?loginId=test4&count=2
Host: localhost:8080
Example response
HTTP 200 ok
{
"success": true,
"message": "success!"
}
β
μ₯λ°κ΅¬λμ λ΄κΈ΄ μν μμ
request-fields
Path |
Type |
Description |
itemId |
Long |
μν λ²νΈ |
Example request
DELETE /api/carts/69
Host: localhost:8080
Example response
HTTP 200 ok
{"success":true,"message":"success!"}