Package inha.git.project.api.controller
Class ProjectStarController
java.lang.Object
inha.git.project.api.controller.ProjectStarController
@RestController
@RequestMapping("/api/v1/project/star")
public class ProjectStarController
extends Object
ProjectStarController는 project Star 게시글 관련 엔드포인트를 처리.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsearchProjectStar
(User user, Integer projectIdx) 프로젝트 Star 조회 APIBaseResponse<org.springframework.data.domain.Page<SearchProjectStarResponses>>
searchProjectStarPage
(Integer page, Integer size) 프로젝트 Star 페이징 조회 API
-
Constructor Details
-
ProjectStarController
public ProjectStarController()
-
-
Method Details
-
searchProjectStar
@GetMapping("/{projectIdx}") public BaseResponse<SearchProjectStarResponses> searchProjectStar(@AuthenticationPrincipal User user, @PathVariable("projectIdx") Integer projectIdx) 프로젝트 Star 조회 API프로젝트 Star를 조회합니다.
- Parameters:
user
- 사용자 정보projectIdx
- 프로젝트 인덱스- Returns:
- 조회된 프로젝트 Star 정보를 포함하는 BaseResponse
-
searchProjectStarPage
@GetMapping public BaseResponse<org.springframework.data.domain.Page<SearchProjectStarResponses>> searchProjectStarPage(@RequestParam("page") Integer page, @RequestParam("size") Integer size) 프로젝트 Star 페이징 조회 API프로젝트 Star를 페이징 조회합니다.
- Parameters:
page
- 페이지size
- 사이즈- Returns:
- 프로젝트 Star 페이징 조회 결과를 포함하는 BaseResponse<Page
>
-