update to pointer
All checks were successful
Build and Publish / BuildAndDeployAmd64 (push) Successful in 27s
Build and Publish / BuildAndDeploy (push) Successful in 2m28s

This commit is contained in:
matst80
2024-11-14 20:38:21 +01:00
parent 4112666457
commit b987f79173
2 changed files with 16 additions and 18 deletions

View File

@@ -9,30 +9,28 @@ Content-Type: application/json
}
### Update quanity of item in cart
PUT https://cart.tornberg.me/api/12345/1
PUT https://cart.tornberg.me/api/12345
Content-Type: application/json
{
"id": 1,
"quantity": 1
}
### Add item to cart
POST http://localhost:8080/cart/12345/item
### Delete item from cart
DELETE https://cart.tornberg.me/api/12345/1
### Set delivery
POST https://cart.tornberg.me/api/12345/delivery
Content-Type: application/json
{
"itemId": "67890",
"quantity": 2
}
### Remove item from cart
DELETE http://localhost:8080/cart/12345/item/67890
### Checkout cart
POST http://localhost:8080/cart/12345/checkout
Content-Type: application/json
{
"paymentMethod": "credit_card",
"shippingAddress": "123 Main St, Anytown, USA"
"provider": "postnord",
"items": [
{
"id": 1,
}
]
}