Create REST APIs using expressJs that allows to perform CRUD operations on Camera entity, as well as do CRUD operations on "network of cameras"(CameraNetworks). The "networks of camera" will consist of "cameras" that can be mutually inclusive. On performing the delete operations on the camera document and the CameraNetworks document should be updated accordingly.
Technologies used: Node.js,Express.js,MongoDB,Postman
Parameter | Type | Description |
---|---|---|
name |
string |
Required |
description |
string |
Required |
url |
string |
Required |
GET http://localhost:5000/getcams
Get specific one
GET http://localhost:5000/getcam/:id
POST http://localhost:5000/addcam
Update specific one
PUT http://localhost:5000/updatecam/:id
Delete specific one
DELETE http://localhost:5000/deletecam/:id
Parameter | Type | Description |
---|---|---|
name |
string |
Required |
description |
string |
Required |
cameras |
string |
Required |
GET http://localhost:5000/getnetcams
Get specific one
GET http://localhost:5000/getnetcam/:id
POST http://localhost:5000/addnetcam
Update specific one
PUT http://localhost:5000/upnetcam/:id
Delete specific one
DELETE http://localhost:5000/deletenetcam/:id