Загрузка...

Day 34 - Add UserId Filter to Task List | ASP.NET Core Clean Architecture

Day 34 of Backend Software Journey. In this lesson, I improve the task list endpoint by adding userId filtering.

In this part:
- Add userId query parameter to GET /api/tasks
- Update ITaskService GetAll method
- Update the database-backed TaskService
- Filter tasks by UserId using EF Core
- Keep completion filtering working
- Keep task search working
- Combine userId, isCompleted, and search filters
- Test the updated task list endpoint in Swagger

Day 33 added GET /api/users/{userId}/tasks. Day 34 improves the main task list endpoint so clients can call GET /api/tasks?userId=1 and combine it with other filters.

Source code repository:
https://github.com/BackendSoftwareJourney/jobtrackr-backend

Playlist:
Backend Software Journey - Clean Architecture Tutorial

#aspnetcore #dotnet #entityframeworkcore #sqlserver #cleanarchitecture #backenddevelopment #csharp

Видео Day 34 - Add UserId Filter to Task List | ASP.NET Core Clean Architecture канала Backend Software Journey
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять