diff --git a/src/main/java/com/keepgoing/keepserver/domain/student/controller/StudentController.java b/src/main/java/com/keepgoing/keepserver/domain/student/controller/StudentController.java index 956e8c45..36a17319 100644 --- a/src/main/java/com/keepgoing/keepserver/domain/student/controller/StudentController.java +++ b/src/main/java/com/keepgoing/keepserver/domain/student/controller/StudentController.java @@ -17,25 +17,25 @@ public class StudentController { private final StudentService studentService; - @Operation(summary = "이름을 통한 학생검색", description = "파라미터에 이름만 넣으면 학생정보가 나옵니다") - @GetMapping("/find-name") + @Operation(summary = "이름을 통한 학생검색", description = "내용에 이름만 넣으면 학생정보가 나옵니다") + @PostMapping("/find-name") public BaseResponse findStudentName(@RequestBody StudentFindDto studentFindDto) { return studentService.findByStudentName(studentFindDto); } - @Operation(summary = "학반번호를 통한 학생검색", description = "파라미터에 학반번호(2304)만 넣으면 학생정보가 나옵니다") - @GetMapping("/find-studentId") + @Operation(summary = "학반번호를 통한 학생검색", description = "내용에 학반번호(2304)만 넣으면 학생정보가 나옵니다") + @PostMapping("/find-studentId") public BaseResponse findStudentNum(@RequestBody StudentFindDto studentFindDto) { return studentService.findByStudentNum(studentFindDto); } - @Operation(summary = "전체 책 불러오기", description = "모든 책을 불러옵니다.") + @Operation(summary = "전체 학생 불러오기", description = "모든 학생을 불러옵니다.") @GetMapping("/all") public BaseResponse findAll() { return studentService.findAll(); } - @Operation(summary = "책 정보 수정하기", description = "id를 통해 책 정보를 수정합니다. 파라미터는 전체 코드가 아닌, 수정할 내용만 넘기셔도 됩니다.") + @Operation(summary = "학생 정보 수정하기", description = "id를 통해 학생 정보를 수정합니다. 파라미터는 전체 코드가 아닌, 수정할 내용만 넘기셔도 됩니다.") @PatchMapping("/edit/{id}") public BaseResponse editStudent(@RequestBody StudentRequestDto studentRequestDto, @PathVariable String id) { return studentService.editStudent(studentRequestDto);