How to Mock an E-Commerce REST API in Mimicry (Products, Orders, and Relations)

Mocking an e-commerce API is one of those tasks that looks easy in tutorials and gets hard fast in practice. A flat array of products…