1c | 获取商品列表 | http://xyz.com/shop | |
1s | 返回商品列表 | ... http://xyz.com/product/xn | |
2c | 添加商品到购物篮 | http://xzy.com/user/123/basket | 数量:1 用户ID: 123 用户签名:md5(商品+n+userId+password) |
2s | 添加OK,重定向到购物篮资源,并且返回购物篮内容 | 商品:http://xyz.com/product/x0 数量:1 | |
3c | 继续添加商品到购物篮 | http://xzy.com/user/123/basket | 数量:1 用户ID: 123 用户签名:md5(商品+n+userId+password) |
3s | 添加OK,重定向到购物篮资源,并且返回购物篮内容 | 商品:http://xyz.com/product/x0 数量:1 商品:http://xyz.com/product/x1 数量:1 | |
4c | 移除某个商品 | http://xzy.com/user/123/basket | 用户ID: 123 用户签名:md5(商品+userId+password) |
4s | 移除OK,重定向到购物篮资源,并且返回购物篮内容 | 商品:http://xyz.com/product/x0 数量:1 | |
5c | 结帐 | ||
5s | OK |