- Node.js installed
- MongoDB instance (local or MongoDB Atlas)
- Clone the repository:
git clone https://github.com/YOUR_GITHUB_USERNAME/restful-api-node.git cd restful-api-node - Install dependencies:
npm install
- Create a
.envfile and add your MongoDB connection string:MONGO_URI=your_mongodb_connection_string
- Start the server:
npm start
GET /itemsPOST /items{
"name": "Item Name",
"description": "Item Description"
}PATCH /items/:idDELETE /items/:idThe API documentation is available on Postman: https://documenter.getpostman.com/view/41795951/2sAYXECcy