|
10 | 10 | import org.springframework.web.bind.annotation.GetMapping; |
11 | 11 | import org.springframework.web.bind.annotation.PathVariable; |
12 | 12 | import org.springframework.web.bind.annotation.RequestParam; |
13 | | -import sopt.comfit.company.dto.response.FeaturedCompanyResponseDto; |
14 | | -import sopt.comfit.company.dto.response.GetCompanyListResponseDto; |
15 | | -import sopt.comfit.company.dto.response.GetCompanyResponseDto; |
16 | | -import sopt.comfit.company.dto.response.GetSuggestionCompanyResponseDto; |
| 13 | +import sopt.comfit.company.dto.response.*; |
17 | 14 | import sopt.comfit.global.annotation.LoginUser; |
18 | 15 | import sopt.comfit.global.dto.CommonApiResponse; |
19 | 16 | import sopt.comfit.global.dto.CustomErrorResponse; |
@@ -52,6 +49,26 @@ PageDto<GetCompanyListResponseDto> getCompanyList(@RequestParam(required = false |
52 | 49 | @RequestParam(required = false) String sort, |
53 | 50 | @RequestParam(defaultValue = "1") int page, |
54 | 51 | @RequestParam(required = false) Boolean isRecruited); |
| 52 | + @Operation( |
| 53 | + summary = "기업 검색 API", |
| 54 | + description = "기업검색 API 입니다" |
| 55 | + ) |
| 56 | + @ApiResponses({ |
| 57 | + @ApiResponse(responseCode = "200", description = "기업 검색 성공", |
| 58 | + content = @Content(mediaType = "application/json", |
| 59 | + schema = @Schema(implementation = CommonApiResponse.class))), |
| 60 | + |
| 61 | + @ApiResponse(responseCode = "403", description = "권한 오류", |
| 62 | + content = @Content(mediaType = "application/json", |
| 63 | + schema = @Schema(implementation = CustomErrorResponse.class))), |
| 64 | + @ApiResponse(responseCode = "401", description = "헤더값 오류", |
| 65 | + content = @Content(mediaType = "application/json", |
| 66 | + schema = @Schema(implementation = CustomErrorResponse.class))) |
| 67 | + }) |
| 68 | + @GetMapping("/search") |
| 69 | + @SecurityRequirement(name= "JWT") |
| 70 | + List<GetCompanySearchResponseDto> getCompanySearchList(@RequestParam String keyword); |
| 71 | + |
55 | 72 |
|
56 | 73 | @Operation( |
57 | 74 | summary = "주요 기업 조회 API", |
|
0 commit comments