RestAPI-AcmeTravels
Following node practices defined here: https://github.com/felixge/node-style-guide https://blog.risingstack.com/node-js-best-practices/
-
Clone this project on local file system
-
Pre-requisistes A. Imported the data available in the repository and MangoBD
-
Run > npm install Deploys the packages express body-parser mongoose
-
Use Cases GetVacatins Post Vacations With Error Handling GetPartialResponse Pagination Caching --> http://localhost:3000/ will open the html page. a. API enabled caching b. Browser disables caching
-
Security-Basic basic authentication, you can use browser or postman. url: http://localhost:3000/private Issues with url: http://localhost:3000/v1/basicauth
-
Security-JWT GetNewToekn-> POST--> http://localhost:3000/token Gethttp://localhost:3000/privatejwt