A simple Task Manager API built with Node.js and Express.js to handle task creation, retrieval, updating, and deletion.
- ✅ Create a new task
- 📋 Retrieve all tasks
- ✏️ Update a task (mark as completed)
- ❌ Delete a task
- 
Clone the repository: git clone https://github.com/Xavi1/task-manager-api cd task-manager-api
- 
Install dependencies: npm install 
- 
Start the server: node index.js The API will be available at http://localhost:3000
GET /tasks
📌 Response:
[]POST /tasks📌 Request Body (JSON):
{
  "title": "Start New Task"
}📌 Response:
{
  "id": 1, "title": "Start New Task", "completed": false
}PUT /tasks/:id📌 Request Body (JSON):
{
  "completed": true
}📌 Response:
{
  "id": 1, "title": "Start New Task", "completed": true
}DELETE /tasks/:id📌 Response:
{
  "message": "Task deleted successfully"
}curl -X GET http://localhost:3000/taskscurl -X POST http://localhost:3000/tasks -H "Content-Type: application/json" -d "{\"title\":\"Start New Task\"}"curl -X PUT http://localhost:3000/tasks/1 -H "Content-Type: application/json" -d "{\"completed\": true}"curl -X DELETE http://localhost:3000/tasks/1This project is licensed under the MIT License.