r/dotnet•
TEYKK4

How to implement multiple GET endpoints in a controller

Hey begginer is here. I'm developing an app for students and I'm just a bit confused in understanding the better way of implementing multiple GETs in my controller.

How should it look like if I want to:

  1. Get Programs of user

  2. All the programs of all users (for "Discover" page)

  3. Get Programs by UserId

Should it look something like this:

public async Task<ActionResult<PagedResult<GetCurriculumDto>>> Get([FromQuery] QueryParams qp)

Posted Nov 5, 2025, 11:37 PM UTC

924
Loading comments…