diff --git a/backend/src/main/java/com/festago/presentation/SchoolController.java b/backend/src/main/java/com/festago/presentation/SchoolController.java index 8667e4597..630f4a270 100644 --- a/backend/src/main/java/com/festago/presentation/SchoolController.java +++ b/backend/src/main/java/com/festago/presentation/SchoolController.java @@ -3,6 +3,8 @@ import com.festago.school.application.SchoolService; import com.festago.school.dto.SchoolResponse; import com.festago.school.dto.SchoolsResponse; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; @@ -12,18 +14,21 @@ @RestController @RequestMapping("/schools") +@Tag(name = "학교 정보 요청") @RequiredArgsConstructor public class SchoolController { private final SchoolService schoolService; @GetMapping + @Operation(description = "모든 학교 정보를 조회한다.", summary = "전체 학교 조회") public ResponseEntity findAll() { return ResponseEntity.ok() .body(schoolService.findAll()); } @GetMapping("/{schoolId}") + @Operation(description = "단일 학교 정보를 조회한다.", summary = "단일 학교 조회") public ResponseEntity findById(@PathVariable Long schoolId) { return ResponseEntity.ok() .body(schoolService.findById(schoolId));