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:
-
Get Programs of user
-
All the programs of all users (for "Discover" page)
-
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