|
|
|
@ -24,6 +24,14 @@ Note : If needed you can reset the tables by closing the app and running `npm ru
|
|
|
|
|
- put `/products/:id` Update ( Token )
|
|
|
|
|
- delete `/products/:id` Delete ( Token )
|
|
|
|
|
|
|
|
|
|
| HTTP Verb | Endpoint | CRUD |
|
|
|
|
|
|:-------------: |:-------------------:| -----------------:|
|
|
|
|
|
| get | `/products` | Index |
|
|
|
|
|
| get | `/products/:id` | Read |
|
|
|
|
|
| post | `/products` | Create ( Token ) |
|
|
|
|
|
| put | `/products/:id` | Update ( Token ) |
|
|
|
|
|
| delete | `/products/:id` | Delete ( Token ) |
|
|
|
|
|
|
|
|
|
|
- Users :
|
|
|
|
|
|
|
|
|
|
- get `/users`, Index ( Token )
|
|
|
|
@ -35,11 +43,11 @@ Note : If needed you can reset the tables by closing the app and running `npm ru
|
|
|
|
|
|
|
|
|
|
- Orders :
|
|
|
|
|
|
|
|
|
|
get `/orders`, Index ( Token )
|
|
|
|
|
get `/orders/:id` Read ( Token )
|
|
|
|
|
post `/orders` Create
|
|
|
|
|
post `/orders/:id/products` Authenticate ( Token )
|
|
|
|
|
delete `/orders/:id/products` Delete ( Token )
|
|
|
|
|
- get `/orders`, Index ( Token )
|
|
|
|
|
- get `/orders/:id` Read ( Token )
|
|
|
|
|
- post `/orders` Create
|
|
|
|
|
- post `/orders/:id/products` Authenticate ( Token )
|
|
|
|
|
- delete `/orders/:id/products` Delete ( Token )
|
|
|
|
|
|
|
|
|
|
# Built with
|
|
|
|
|
|
|
|
|
|