Files
go-cart-actor/api-tests/cart.http
matst80 b987f79173
All checks were successful
Build and Publish / BuildAndDeployAmd64 (push) Successful in 27s
Build and Publish / BuildAndDeploy (push) Successful in 2m28s
update to pointer
2024-11-14 20:38:21 +01:00

36 lines
502 B
HTTP

### Add item to cart
POST https://cart.tornberg.me/api/12345
Content-Type: application/json
{
"sku": "763281",
"quantity": 1
}
### Update quanity of item in cart
PUT https://cart.tornberg.me/api/12345
Content-Type: application/json
{
"id": 1,
"quantity": 1
}
### 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
{
"provider": "postnord",
"items": [
{
"id": 1,
}
]
}