rest
This is a demonstration of Node.js using MongoDB and CRUD operations
npm install
npm start
You can also run this using HTTPS by pointing your key and certificate in app.js.https
and copying it over to app.js
.
_id: autogenerated
name
pro
id:user-defined primary key
Method | Action | Content |
---|---|---|
GET | /users | none |
POST | /add | JSON |
GET | /edit | id,name,pro |
DELETE | /:id | none |
PUT | /:id | JSON |