A simple CRUD API built with ASP.NET Core for managing tasks. This API allows you to create, read, update, and delete tasks with basic validation.
- Add new tasks with unique IDs.
- Fetch all tasks or a specific task by ID.
- Update task details.
- Delete tasks.
- Friendly error handling.
- ASP.NET Core 8.0
- C#
- In-memory list for storing tasks (no database yet).
- Retrieves all tasks.
- If no tasks are available, returns a friendly message.
- Fetches a task by its
id. - Returns
404 Not Foundif the task does not exist.
- Adds a new task.
- Requires the following JSON format:
{ "id": 1, "name": "Example Task", "dueDate": "2024-11-20", "isCompleted": false }