Customer lands at CSG-EMS Store homepage and follows link to the store.
GET http://csg-ems.com/store/products/
200 OK
<products>
<product id="1" href="http://csg-ems.com/store/products/1/"/>
<product id="2" href="http://csg-ems.com/store/products/2/"/>
<product id="3" href="http://csg-ems.com/store/products/3/"/>
</products>
Customer follows link to specific product.
GET http://csg-ems.com/store/products/1/
200 OK
<products cart="http://csg-ems.com/users/123456/cart/">
<product id="1" href="http://csg-ems.com/store/products/1/">
<name>Product 1</name>
<description>I am a description for Product 1</description>
<price>$5.00</price>
</product>
</products>
Customer adds product to cart.
PUT http://csg-ems.com/users/123456/cart/1/
<products>
<product id="1" href="http://csg-ems.com/store/products/1/"/>
</products>
201 Created
Customer checks out.
POST http://csg-ems.com/store/orders/
412 Precondition Failed
Redirected to newuser form
200 OK
<users>
<user>
<name/>
<email/>
<username/>
<password/>
</user>
</users>
Submits form
PUT http://csg-ems.com/users/123456
<users>
<user>
<name>John Doe</name>
<email>doe@email.com</email>
<username>johndoe</username>
<password>password</password>
</user>
</users>
201 Created
Customer checks out.
POST http://csg-ems.com/store/orders/
201 Created