As a DBA we need to be able to access our DB with API routing: - [x] GET /orders *admin - Return a list of orders, include the products with them - [x] GET /orders/cart * - Return the current user's order with status='created' (synonymous to a 'cart'). Use database adapter getPendingOrderByUser - [x] POST /orders * - Create a new order. Should initially be status = created. - [x] GET /users/:userId/orders ** - Get a list of orders for a particular user
As a DBA we need to be able to access our DB with API routing:
GET /orders *admin - Return a list of orders, include the products with them
GET /orders/cart * - Return the current user's order with status='created' (synonymous to a 'cart'). Use database adapter getPendingOrderByUser
POST /orders * - Create a new order. Should initially be status = created.
GET /users/:userId/orders ** - Get a list of orders for a particular user