In this activity i make a rest api using node.js express.js mongodb and mongoose
requirments: mongodb and postman
1.) clone the uppar repo and run the node app by using
-nodemon app.js
2.)Now with postman make a new post request request
-localhost:3000/mens (because i use in the local host)
3.)The data will stored in the database looks like this
4.)now using the get req get the data the data after applying algorithm looks like (we can used by id or simply get all data) the respose will show as