# | access pattern | target | action | pk | sk | done |
---|---|---|---|---|---|---|
1 | get user information | table | get item | USER#public_address |
#PROFILE#public_address |
✅ |
2 | get all products | GSI-soft_delete_index | scan | soft_deleted exist |
✅ | |
3 | get orders of user | table | query | USER#public_address |
BeginWith ORDER# | ✅ |
4 | get product information | table | get item | PRODUCT#product_id |
#PROFILE#product_id |
✅ |
5 | get order | table | get item | USER#public_address |
ORDER#order_id |
✅ |
# | access pattern | target | action | pk | sk | done |
---|---|---|---|---|---|---|
1 | set new user information | table | put item | USER#public_address |
#PROFILE#public_address |
✅ |
2 | set new order | table | put item | USER#public_address |
ORDER#order_id |
✅ |
3 | set product information | table | put item | PRODUCT#product_id |
#PROFILE#product_id |
✅ |
# | access pattern | target | action | pk | sk | done |
---|---|---|---|---|---|---|
1 | update user information | table | update item | USER#public_address |
#PROFILE#public_address |
✅ |
2 | update order status | table | update item | USER#public_address |
ORDER#order_id |
✅ |
3 | update product information | table | update item | PRODUCT#product_id |
#PROFILE#product_id |
✅ |
# | action | method | header | endpoint | body | return | done |
---|---|---|---|---|---|---|---|
1 | register | POST | /auth/register | user basic info | ✅ | ||
2 | get token | POST | /auth/token | signature | jwt token | ✅ |
# | action | method | header | endpoint | body | return | done |
---|---|---|---|---|---|---|---|
1 | get user info | GET | basic_jwt | /user/info | user basic info | ✅ | |
2 | update user info | PATCH | basic_jwt | /user/info | user info & update_mask | user basic info | ✅ |
# | action | method | header | endpoint | body | return | done |
---|---|---|---|---|---|---|---|
1 | get all product | GET | /product/list | products & next_token | ✅ | ||
2 | get detail product info | GET | /product/product_id |
product info | ✅ | ||
3 | create product | POST | admin_jwt | /admin/product/create | product info | product info | ✅ |
4 | update product info | PATCH | admin_jwt | /admin/product/product_id |
product info & update_mask | product info | ✅ |
# | action | method | header | endpoint | body | return | done |
---|---|---|---|---|---|---|---|
1 | create order | POST | basic_jwt | /order/create | order info | order_id | ✅ |
2 | get orders of user | GET | basic_jwt | /order/list | orders | ✅ | |
3 | get order | GET | basic_jwt | /order/orderId |
order info | ✅ | |
4 | cancel order | GET | basic_jwt | /order/cancel/orderId |
✅ |
# | action | method | header | endpoint | body | return | done |
---|---|---|---|---|---|---|---|
1 | pay order | POST | basic_jwt | /payment/pay | pay info | payment_tx | ✅ |