Files
go-cart-actor/api-tests/cart.http
matst80 874963812f
All checks were successful
Build and Publish / BuildAndDeployAmd64 (push) Successful in 42s
Build and Publish / BuildAndDeployArm64 (push) Successful in 4m27s
more update
2025-11-19 18:50:31 +01:00

41 lines
591 B
HTTP

### Add item to cart
POST https://cart.k6n.net/api/12345
Content-Type: application/json
{
"sku": "763281",
"quantity": 1
}
### Update quanity of item in cart
PUT https://cart.k6n.net/api/12345
Content-Type: application/json
{
"id": 1,
"quantity": 1
}
### Delete item from cart
DELETE https://cart.k6n.net/api/1002/1
### Set delivery
POST https://cart.k6n.net/api/1002/delivery
Content-Type: application/json
{
"provider": "postnord",
"items": []
}
### Get cart
GET https://cart.k6n.net/api/12345
### Remove delivery method
DELETE https://cart.k6n.net/api/12345/delivery/2