π A fast , minimal REST API built with .NET 9 and SQLite β perfect for powering Todo apps, prototyping ideas, or plugging into any frontend with zero hassle.
-
Download .NET 9 SDK
-
(Optional) DB Browser for SQLite β to inspect the local database.
-
Clone the Repository
git clone https://github.com/shaijut/TodoAPI.git
- Move into the project folder
TodoAPI
- Move into the project folder
-
Run the API
-
Double-click
Run-Todo-API.bat
-
This will restore dependencies and launch the API at
http://localhost:5083
-
-
Test the API
-
Visit
http://localhost:5083/swagger
to explore and test endpoints via Swagger UI -
Youβre now ready to use the API β or connect it to any frontend as a real backend for managing todos β¨ π
-
Optionally, inspect the SQLite database or test with Postman (see below)
To view or edit stored data:
-
Open DB Browser for SQLite
-
Load
TodoDatabase.db
(found in the project folder)
-
Import Collection
- In Postman, click Import > Link
Use:
https://raw.githubusercontent.com/shaijut/TodoAPI/refs/heads/main/API_Testing/Todo_API.postman_collection.json
- In Postman, click Import > Link
-
Run Requests
-
Ensure API is running at
http://localhost:5083
-
Use the included
GET
,POST
,PUT
, andDELETE
endpoints.
-
-
GET /api/todos
β Get all todos -
GET /api/todos/{id}
β Get a todo by ID -
POST /api/todos
β Create a new todo -
PUT /api/todos/{id}
β Update an existing todo -
DELETE /api/todos/{id}
β Delete a todo
-
Ensure
.NET 9 SDK
andSQLite Browser
are installed correctly. -
Confirm the API is running at
http://localhost:5083
. -
Check the terminal for any startup errors.
-
If the batch file doesnβt work, run the following commands manually in your terminal or command prompt:
cd TodoAPI # Navigate to the project folder dotnet restore # Restore dependencies dotnet run # Start the API
Fork, branch, and submit a PR β contributions are welcome!
MIT License
For questions or feedback, feel free to reach out or open an issue.