A node and express based restful API, with monogo atlas for data storage.
morgan to log request.
mongoose easy connection and read write operation on mongo
multer to upload files
node brcypt to hash and salt password
To add a product with the api defined body structure
http://localhost:3000/products/To create an order in the defined body structure
http://localhost:3000/ordersTo create a new user with the defined body structure
http:://localhost:300/user/signupTo login as an user, with the defined body structure
http:://localhost:300/user/signupGet request to get all the avialabe products
http://localhost:3000/products/Get request to get all an individual product, substitute the product id with product id you obatin form get request to product
http://localhost:3000/products/:productIdTo get all the orders
You need to login to get the orders
http://localhost:3000/ordersTo get details of an individual order replace the order id(individual) with the id you obatain on geting all the product
http://localhost:3000/ordersTo delete a product, you need to loged in to delete an project
http://localhost:3000/products/productIdTo delete an order, you should be logged in to perform this task and body
Replace the order id with the order id
http://localhost:3000/orders/orderIdTo delete an user, with the body in defined format
Replace the user id with the origian user id string
http://localhost:3000/orders/orderIdTo change an product details, json body in the specified format. Should be logged in.
http://localhost:3000/products/productId Academind tutorial on youtube