Loading repository data…
Loading repository data…
Teekay1702 / repository
This is a controller-based RESTful API built using C# and .NET, designed to manage a To-Do list. It follows the MVC (Model-View-Controller) pattern and uses Microsoft.EntityFrameworkCore.InMemory for temporary data storage.
This is a controller-based RESTful API built using C# and .NET, designed to manage a To-Do list. It follows the MVC (Model-View-Controller) pattern and uses Microsoft.EntityFrameworkCore.InMemory for temporary data storage.
⚠ Note: This project requires running in Visual Studio, not VS Code.
Backend: C# (.NET 9)
Framework: ASP.NET Core WebAPI
Database: Entity Framework Core InMemory
Install the TodoAPI
git clone https://github.com/Teekay1702/TodoApi.git
Open Visual Studio (not VS Code).
Click "Open a project or solution" and select the TodoApi.sln file.
This project uses Microsoft.EntityFrameworkCore.InMemory, meaning data is not persisted after the app restarts. To configure the in-memory database, check Program.cs:
builder.Services.AddDbContext<TodoContext>(options =>
options.UseInMemoryDatabase("TodoList"));
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/todos | Get all tasks |
| GET | /api/todos/{id} | Get a task by ID |
| POST | /api/todos | Create a new task |
| PUT | /api/todos/{id} | Update a task by ID |
| DELETE | /api/todos/{id} | Delete a task by ID |
Contributions are welcome! If you find a bug or have a feature request, feel free to open an issue or submit a pull request.
Please adhere to this project's code of conduct.