An extremely simplified product placing order application, without any authentication or any complex real-life flow, mostly for learning the basic concepts of REST API.
This application allows to register orders of products for a customer.
Category
GET /categories
- List all categoriesGET /categories/:id
- Get a category by idPOST /categories
- Create a new categoryPUT /categories/:id
- Update a category by idDELETE /categories/:id
- Delete a category by id
Product
GET /products
- List all productsGET /products/:id
- Get a product by idPOST /products
- Create a new productPUT /products/:id
- Update a product by idPATCH /products/:id
- Toggle product status by idDELETE /products/:id
- Delete a product by id
Customer
GET /customers
- List all customersPOST /customers
- Create a new customer
Order
GET /orders
- List all ordersPOST /orders
- Create a new orderPATCH /orders/:id
- Toggle order status by id
Setting up the database
pnpm prisma:setup
running api on dev mode
pnpm dev
run prisma studio
pnpm prisma:studio