https://github.com/poimen/mini-api-todo-list-playground
Playground with the simple todo-list-thing
https://github.com/poimen/mini-api-todo-list-playground
Last synced: about 2 months ago
JSON representation
Playground with the simple todo-list-thing
- Host: GitHub
- URL: https://github.com/poimen/mini-api-todo-list-playground
- Owner: Poimen
- License: mit
- Created: 2024-01-08T06:48:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-15T11:48:51.000Z (over 2 years ago)
- Last Synced: 2025-02-27T05:52:58.232Z (over 1 year ago)
- Language: C#
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Basic Playground app for Todo list API using Minimal APIs
Nothing special here ... basic Todo list API using dotnet minimal apis.
The API uses Request-Response handlers for handling API responses. The API uses `MapGroup` to map grouped requests and separates out each request into the corresponding handler.
The API uses SQLite as the backing database with EF Core. There is an EF Core migration to generate the necessary table.
Endpoints - [use](src/MiniApiToDoPlayground/MiniApiToDoPlayground.http) for testing:
All Todo Items
> GET /api/todos/
All completed Todos:
> GET /api/todos/completed
Todo Item Id
> GET /api/todos/1
Create Todo
> POST /api/todos/
Update Todo
> PUT /api/todos/1
Complete Todo
> PUT /api/todos/1/complete