Simple REST API for managing tasks built with ASP.NET Core Minimal API.
TaskApi is a learning backend project for managing tasks. It exposes a small CRUD API built with ASP.NET Core, Entity Framework Core, and SQLite.
TaskApi.sln- solution fileTaskApi/- ASP.NET Core application
- ASP.NET Core Minimal API
- Entity Framework Core
- SQLite
- Swagger / OpenAPI
- .NET 10
- .NET 10 SDK
- Clone the repository:
git clone https://github.com/maks1868/task-api.git- Navigate to the project directory:
cd task-api/TaskApi- Restore tools and dependencies:
dotnet tool restore
dotnet restore- Run the application:
dotnet run- Open Swagger UI in your browser:
https://localhost:<port>/swagger
| Method | Endpoint | Description |
|---|---|---|
| GET | /tasks |
Get all tasks |
| GET | /tasks/{id} |
Get task by ID |
| POST | /tasks |
Create a new task |
| PUT | /tasks/{id} |
Update a task |
| DELETE | /tasks/{id} |
Delete a task |
Example request body for POST and PUT:
{
"title": "Finish README",
"isDone": false
}