Skip to content

Commit

Permalink
Merge pull request #91 from hangeulbada/feat/assignment-dev
Browse files Browse the repository at this point in the history
refactor: controller 루트 수정
  • Loading branch information
yoursin0330 authored Nov 27, 2024
2 parents 6af4e49 + 84eeed8 commit 04ab778
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
import java.util.List;

@RestController
@RequestMapping("/api/v1/assignment")
@RequestMapping("/api/v1")
@RequiredArgsConstructor
public class AssignmentController {
private final AssignmentService assignmentService;

@StudentTag
@PostMapping("/submit")
@PostMapping("/assignment/submit")
@Operation(summary="OCR 요청", description="OCR 요청 전송")
@ApiResponse(responseCode = "200", description = "OCR 후 문항별 점수 반환")
public ResponseEntity<List<ScoreDTO>> submit(
Expand All @@ -37,7 +37,7 @@ public ResponseEntity<List<ScoreDTO>> submit(
}

@StudentTag
@GetMapping("/{workbookId}/{studentId}")
@GetMapping("/assignment/{workbookId}/{studentId}")
@Operation(summary="문제집 답안 조회", description="문제집의 학생 답안을 조회합니다.")
@ApiResponse(responseCode = "200", description = "문제집 답안 조회 성공")
public ResponseEntity<SpecificAssignmentDTO> getAssignment(
Expand All @@ -49,7 +49,7 @@ public ResponseEntity<SpecificAssignmentDTO> getAssignment(
}

@StudentTag
@GetMapping("/student/all")
@GetMapping("/student/assignment")
@Operation(summary = "학생이 푼 문제집", description = "학생이 푼 모든 문제집을 조회합니다.")
@ApiResponse(responseCode = "200", description = "클래스 문제집 조회 성공", content = @io.swagger.v3.oas.annotations.media.Content(schema = @io.swagger.v3.oas.annotations.media.Schema(implementation = GroupAssignmentDTO.class)))
public ResponseEntity<List<GroupAssignmentDTO>> getAssignment(Principal principal){
Expand Down

0 comments on commit 04ab778

Please sign in to comment.