A simple RESTful Todo list API.
POST /todos
: Create a new todo.GET /todos
: Retrieve all todos.GET /todos/:id
: Retrieve a todo by ID.PUT /todos/:id
: Update a todo by ID.DELETE /todos/:id
: Delete a todo by ID.
- Clone the Repository
git clone https://github.com/tabintel/todo-api.git
cd todo-api
- Run this command to install all the dependencies
go mod tidy
- Run the application with this command
go run main.go
Here is the Postman API Documentation, for testing the API endpoints.