Skip to content

Commit

Permalink
[BE/#58] Feat : 이슈 필터링 기능 컨트롤러 로직 추가
Browse files Browse the repository at this point in the history
-> issueService.findIssuesByFilterParameters()
  • Loading branch information
MuseopKim committed Jun 18, 2020
1 parent 7b33074 commit f191697
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ public ResponseEntity<ApiResponse<String>> submit(@RequestBody SubmitNewIssueReq
return new ResponseEntity(ApiResponse.CREATED(issueService.submitNewIssue(submitNewIssueRequestDto)), HttpStatus.CREATED);
}

@GetMapping("/issues")
public ResponseEntity<ApiResponse<ListOfIssuesDto>> filter(@RequestParam FilterParameters filterParameters) {
return new ResponseEntity(ApiResponse.OK(issueService.findIssuesByFilterParameters(filterParameters)), HttpStatus.OK);
}

@GetMapping("/issues/{issueId}")
public ResponseEntity<ApiResponse<DetailedInformationOfIssueDto>> showDetails(@PathVariable Long issueId) {
return new ResponseEntity(ApiResponse.OK(issueService.showIssueDetails(issueId)), HttpStatus.OK);
Expand Down

0 comments on commit f191697

Please sign in to comment.