Swagger 의 api들을 분류하는 법
@RestController
@RequestMapping(value = "/teacher")
static class TeacherController {
@GetMapping("/xxx")
public String xxx() {
return "xxx";
}
}
@RestController
@RequestMapping(value = "/student")
static class StudentController {
@ApiOperation("학생리스트")
@GetMapping("/list")
public String bbb() {
return "bbb";
}
@ApiOperation("특정학생의 담임목록")
@GetMapping("/his-teachers")
public String ccc() {
return "ccc";
}
@ApiOperation("학생생성")
@PostMapping("/aaa")
public String aaa() {
return "aaa";
}
}Last updated