https://github.com/abdullokhonz/minimal-api_todoapi
Minimal API Todo project using ASP.NET Core 8. Simple CRUD API with in-memory database for learning and testing. Based on the official Microsoft tutorial.
https://github.com/abdullokhonz/minimal-api_todoapi
asp-net-core backend crud csharp dotnet entity-framework-core in-memory minimal-api todo-api tutorial web-api
Last synced: 3 months ago
JSON representation
Minimal API Todo project using ASP.NET Core 8. Simple CRUD API with in-memory database for learning and testing. Based on the official Microsoft tutorial.
- Host: GitHub
- URL: https://github.com/abdullokhonz/minimal-api_todoapi
- Owner: abdullokhonz
- Created: 2025-09-30T14:18:30.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-09-30T14:33:38.000Z (3 months ago)
- Last Synced: 2025-09-30T16:27:12.897Z (3 months ago)
- Topics: asp-net-core, backend, crud, csharp, dotnet, entity-framework-core, in-memory, minimal-api, todo-api, tutorial, web-api
- Language: C#
- Homepage: https://github.com/abdullokhonz
- Size: 3.91 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TodoApi Minimal API
A simple Minimal API built with ASP.NET Core 8.
This project implements a basic CRUD API for to-do items using an in-memory database.
It’s perfect for learning how Minimal APIs work in .NET.
Based on the official Microsoft tutorial:
https://learn.microsoft.com/en-us/aspnet/core/tutorials/min-web-api?view=aspnetcore-8.0&tabs=visual-studio-code
---
## Endpoints
GET /todoitems - Get all items
GET /todoitems/complete - Get completed items
GET /todoitems/{id} - Get item by ID
POST /todoitems - Create new item
PUT /todoitems/{id} - Update item by ID
DELETE /todoitems/{id} - Delete item by ID
---
## Getting Started
1. Clone the repository:
git clone
cd
2. Restore dependencies:
dotnet restore
3. (Optional) Add required packages:
dotnet add package Microsoft.EntityFrameworkCore.InMemory
dotnet add package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore --version 8.0.0
dotnet add package NSwag.AspNetCore
4. Build and run:
dotnet build
dotnet run
5. Open in your browser or Postman:
https://localhost:5001/swagger
---
## Notes
- Data is stored in-memory (resets after restart).
- Not intended for production use.
- You can easily extend it with a real database or additional features.