In UserAPIController, we have
@GetMapping("/run/info-by-id")
HashMap<String, Object> getRunInfoById(Authentication auth, @RequestParam("runId") Long runId) {
In StudentAPIController, we have
@GetMapping("/run/info")
HashMap<String, Object> getRunInfoByRunCode(@RequestParam("runCode") String runCode) {
These endpoints don't have much to do with a User. It has more to do with RunInfo.
Tasks:
- Move the function endpoints to a new class, RunInfoController
- Also move the corresponding tests to RunInfoControllerTest.java