TaskManager API is a RESTful API that allows users to manage their tasks efficiently. This API supports creating, listing, updating, and deleting tasks.
- Create tasks
- List tasks
- Update tasks
- Delete tasks
- .NET 8.0 (or compatible version)
- SQL Server (or other supported databases)
-
Clone the repository:
git clone https://github.com/sametuca/taskmanager-api.git cd taskmanager-api
-
Set up the database:
Ensure your database connection is correctly configured in
appsettings.json
. -
Apply database migrations:
dotnet ef database update
-
Run the application:
dotnet run
Method | Endpoint | Description |
---|---|---|
GET |
/api/tasks |
Get all tasks |
GET |
/api/tasks/{id} |
Get task by ID |
POST |
/api/tasks |
Create a new task |
PUT |
/api/tasks/{id} |
Update a task |
DELETE |
/api/tasks/{id} |
Delete a task |
POST /api/tasks
Request Body:
{
"title": "Sample Task",
"description": "This is a sample task",
"dueDate": "2023-12-31",
"status": "Pending"
}
To run the unit tests:
dotnet test
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.