I have an incoming GET request as follows:
https://localhost:44329/api/scoInfo?activityId=1&studentId=1×tamp=1527357844844
How would I create an endpoint in ASP.net-core that would accept this request.
I have tried different versions of the following and nothing works:
[HttpGet("{activityId: int}/{studentid: int}/{timestamp: int}")]
[Route("api/ScoInfo/{activityId}/{studentid}/{timestamp}")]
[HttpGet("api/scoinfo/{activityId}/{studentId}/{timestamp}")]public async Task<IActionResult> GetLearningTask([FromRoute]int activityId, [FromRoute]int studentId, [FromRoute]int timeStamp)