Skip to content

maks1868/task-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TaskApi

Simple REST API for managing tasks built with ASP.NET Core Minimal API.

Description

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.

Repository Structure

Technologies

  • ASP.NET Core Minimal API
  • Entity Framework Core
  • SQLite
  • Swagger / OpenAPI
  • .NET 10

Requirements

  • .NET 10 SDK

How to run the project

  1. Clone the repository:
git clone https://github.com/maks1868/task-api.git
  1. Navigate to the project directory:
cd task-api/TaskApi
  1. Restore tools and dependencies:
dotnet tool restore
dotnet restore
  1. Run the application:
dotnet run
  1. Open Swagger UI in your browser:
https://localhost:<port>/swagger

API Endpoints

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
}

About

Learning project: a simple REST API for task management built with ASP.NET Core Minimal API, EF Core, and SQLite.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages