Route | Method | Type | Description |
---|---|---|---|
/learners | GET | JSON | Get all Learners data |
/learners{id} | GET | JSON | Get a single id's data |
/learners | POST | JSON | Insert new record into db |
/learners | PUT | JSON | Update new record into db |
/learners{id} | DELETE | JSON | Delete a single id's data |
-
Body-parser Helps in converting the POST data into the request body.
-
Nodemon Automatic restarting of application whenever the code changes.
-
Postman Endpoint to consume APIs
npm init
npm i --s body-parser
npm i -g nodemon
npm install
nodemon index.js