Welcome to MyToDoListProject! This is a .NET Core Web API system designed to help users manage their tasks efficiently. Users can register, log in, and receive JWT tokens for authentication. Once logged in, users can view and manage their tasks. Additionally, users with manager privileges can oversee other users, adding and managing them as needed.
To get started with this project, follow these steps:
Make sure you have the following installed on your system:
- .NET Core SDK
- Visual Studio or Visual Studio Code (optional, but recommended)
- Clone this repository to your local machine:
git clone https://github.com/miryamW/myToDoListProject.gitThe API should now be running locally and accessible at https://localhost:5001.
To use the API endpoints, you need to authenticate with JWT tokens. Use the /api/auth/login endpoint to obtain a token by providing your credentials.
POST /Login
Content-Type: application/json
{
"username": "your_username",
"password": "your_password"
}The response will contain an access token that you can use to access protected endpoints.
GET /TasksList: Retrieve all tasks for the authenticated user.
POST /TasksList: Create a new task for the authenticated user.
PUT /TasksList/{id}: Update an existing task for the authenticated user.
DELETE /TasksList/{id}: Delete a task for the authenticated user.
GET /Users: Retrieve all users.
GET /Users/{id}: Retrieve a specific user.
POST /Users: Create a new user.
PUT /Users/{id}: Update an existing user.
DELETE /Users/{id}: Delete a user.
Contributions to this project are welcome! To contribute:
1.Fork the repository.
2.Create a new branch (git checkout -b feature)
3.Make your changes.
4.Commit your changes (git commit -am 'Add new feature')
5.Push to the branch (git push origin feature)
6.Create a new Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
ASP.NET Core