TaskAPI is a simple ASP.NET Core Web API project that demonstrates CRUD operations with Entity Framework Core.
The API manages tasks, allowing you to create, read, update, and delete records from a SQL Server database.
- Create, read, update, and delete tasks (CRUD)
- SQL Server integration with Entity Framework Core
- RESTful API endpoints with proper HTTP methods (GET, POST, PUT, DELETE)
- Query optimization for performance
- Clean code principles applied
- Unit testing and integration testing included
- Language: C#
- Framework: .NET 6 / ASP.NET Core Web API
- Database: SQL Server
- ORM: Entity Framework Core
- Tools: Visual Studio, Git
- API Documentation: Swagger
TaskAPI/
βββ Controllers/ # API Controllers (e.g., TaskController)
βββ Models/ # Data models (e.g., Task.cs)
βββ Data/ # Database context (e.g., AppDbContext.cs)
βββ Migrations/ # Entity Framework migrations
βββ Properties/ # Project properties and launch settings
βββ Program.cs # Application entry point
βββ appsettings.json # Configuration file
βββ TaskAPI.csproj # Project file
GET /api/tasksβ Get all tasksGET /api/tasks/{id}β Get a specific task by IDPOST /api/tasksβ Create a new taskPUT /api/tasks/{id}β Update an existing taskDELETE /api/tasks/{id}β Delete a task
{
"id": 1,
"title": "Finish README",
"isCompleted": false
}- Clone this repository
git clone https://github.com/simona312/TaskAPI.git
cd TaskAPI
dotnet restore
dotnet ef database update
dotnet run- Add authentication & authorization (JWT)
- Implement pagination & filtering
- Add Swagger documentation improvements
- Add more unit & integration tests