This is a simple TODO API that allows you to create, retrieve, update, and delete TODO items. You can use this API to manage your tasks efficiently.
To get started, follow the instructions below:
Before you begin, make sure you have the following installed:
- Node.js
- MongoDB
-
Clone the repository to your local machine:
git clone /~https://github.com/your-username/your-repo.git
-
Navigate to the project directory:
cd your-repo
-
Install the project dependencies:
npm install
-
Start the server:
npm start
The server should now be running at http://localhost:4000
.
- Method: POST
- Endpoint:
/api/v1/createTodo
- Request Body (JSON):
{
"title": "Abir Pal",
"description": "Hello Abir Pal"
}
- Method: GET
- Endpoint:
/api/v1/getTodos
- Method: GET
- Endpoint:
/api/v1/getTodos/{todoId}
Replace {todoId}
with the ID of the TODO item you want to retrieve.
- Method: PUT
- Endpoint:
/api/v1/updateTodo/{todoId}
- Request Body (JSON):
{
"title": "Lakshyadeep Gogoi",
"description": "Welcome Back"
}
Replace {todoId}
with the ID of the TODO item you want to update.
This project is licensed under the MIT License - see the LICENSE.md file for details.
- Thanks to the open-source community for inspiration and support.
Feel free to customize this README as needed and replace placeholders like your-username
and your-repo
with your actual GitHub username and repository name.