Discussion about this post

User's avatar
iacopo breschi's avatar

Thanks super work as usual!

I would be interested in having a feedback on the API Design for the cases resources cross reference ( GET /carts/123/items/321) and add item to cart (POST /carts/123/items:add) .

What is your opinion on having a flat API instead of the nested one you propose?

* Create one item POST/items

* List cart items GET /items/&cart=123

* Retrieve item X GET /items/321

In past I tried nesting resources but it gets quick;y messy and leads to code with higher coupling.

Expand full comment
Dr. Jody-Ann S. Jones's avatar

Thank you Alex!

Expand full comment
3 more comments...

No posts