README.md test

This commit is contained in:
Vic 2022-05-24 19:55:47 +02:00
parent 6b487c32f1
commit dee64d41c4

View File

@ -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 ) - put `/products/:id` Update ( Token )
- delete `/products/:id` Delete ( 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 : - Users :
- get `/users`, Index ( Token ) - 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 : - Orders :
get `/orders`, Index ( Token ) - get `/orders`, Index ( Token )
get `/orders/:id` Read ( Token ) - get `/orders/:id` Read ( Token )
post `/orders` Create - post `/orders` Create
post `/orders/:id/products` Authenticate ( Token ) - post `/orders/:id/products` Authenticate ( Token )
delete `/orders/:id/products` Delete ( Token ) - delete `/orders/:id/products` Delete ( Token )
# Built with # Built with