A simple API for managing to-do lists using ASP.NET Core Web API.
- User Registration and Login
- Personal To-Do Lists: Each user can manage their list
- CRUD Operations: Create, view, update, and delete to-do items
- .Net 8.0 or above
- Sql server for database
- Postman(Recommended)
- Visual Studio(Recommended)
- Register: Create a new user by sending a POST request to /register with Username, Email, and Password.
- Login: Log in to receive a JWT token, then include the token in the Authorization header as Bearer {token} for accessing protected routes.
- CRUD Operations: Once logged in, you can create, retrieve, update, and delete your to-do items through the endpoints under /api/todo.
Method | Endpoint | Description |
---|---|---|
POST | /register | Register a new user |
POST | /login | Log in and get a token |
GET | /api/todo | Get all to-do items |
GET | /api/todo/{id} | Get a single to-do item |
POST | /api/todo | Add a new to-do item |
PUT | /api/todo/{id} | Update a to-do item |
DELETE | /api/todo/{id} | Delete a to-do item |
This project is open-source and available under the MIT License.