URI | VERB | ACTION |
---|---|---|
/users | GET | all users |
URI | VERB | ACTION |
---|---|---|
/users | POST | create |
/logins | POST | login |
URI | VERB | ACTION |
---|---|---|
/users/:id | GET | 1 user * |
URI | VERB | ACTION |
---|---|---|
/orders | GET | All orders |
/orders/:id | GET | 1 order |
/products/:id/orders | POST | create |
/orders/:id | PATCH | patch |
/orders/:id/users | GET | all orders by user |
* If the logged in user is the same as the user you're getting it also gets the orders for that user