TaskManagementAPI is a simple API for managing tasks. It allows users to create, update, delete, and retrieve tasks. Each task has attributes such as Title, Description, Status, and DueDate. The API is built using ASP.NET Core and utilizes a SQL Server database for storage.
- Create a task
- Update an existing task
- Delete a task
- Retrieve tasks with pagination
- Filter tasks by status and due date
- URL:
/api/tasks - Method:
GET - Query Parameters:
status(optional) - Filter tasks by status (Pending, InProgress, Completed)dueDate(optional) - Filter tasks by due date (format: YYYY-MM-DD)pageNumber(required) - Page number for paginationpageSize(required) - Number of tasks per page
- Response:
- A list of tasks with pagination.
- URL:
/api/tasks/{id} - Method:
GET - Response:
- A single task with the given
id.
- A single task with the given
- URL:
/api/tasks - Method:
POST - Request Body:
{ "title": "Task title", "description": "Task description", "status": "Pending", "dueDate": "2024-12-06T06:12:46.874Z" }
The newly created task with id and other details.
- URL:
/api/tasks/{id} - Method:
PUT - Request Body:
{ "title": "Updated title", "description": "Updated description", "status": "InProgress", "dueDate": "2024-12-10T06:12:46.874Z" }
Response: The updated task with the given id.
-
URL:
/api/tasks/{id} -
Method:
DELETE -
ASP.NET Core - Web API framework
-
Entity Framework Core - ORM for database interaction
-
SQL Server - Database to store task data