Skip to content

refactor(UserAPIController): Extract RunInfoController #292

@hirokiterashima

Description

@hirokiterashima

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

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions