- Backend Crud API implemented in Nest.js
- MongoDB & Mongoose
Request | Address | Request body | Results |
---|---|---|---|
GET | localhost:3000/items | List all items | |
GET | localhost:3000/items/:id | Get one item with a specific ID | |
POST | localhost:3000/items | Item fields | Create a new item |
PUT | localhost:3000/items/:id | Updated fields | Update one item with a specific ID |
DELETE | localhost:3000/items/:id | Delete one item with a specific ID |
- DB_CONNECT: the connection string to the MongoDB database server.