A kata to practice your API design and development skills.
This kata offers a set of features to practice your API programming skills. It covers basic HTTP verbs and codes.
Shopping API with products, orders and bills.
- Products
- Can be listed, created, updated, found by id, deleted
- Have an
id
,name
,price
andweight
- Products can be sorted by
name
,price
orweight
- Products
name
must be longer than 3 characters or throw an error if shorter - Products
id
cannot be updated
- Orders
- Can be created, listed, updated and deleted
- Have a
status
, aproduct list
with aquantity
per product, ashipment amount
, atotal amount
and aweight
- Orders
status
can bepending
,paid
orcanceled
- Are offered 5% discount when the price exceeds 1000β¬
- Shipment costs 25β¬ for every 10 more kg (50β¬ for 20kg, 75β¬ for 30kg, etc.)
- Bills
- Can be listed
- Have an
amount
and acreation date
- Are automatically generated when an order status is set to
paid