Skip to content

Commit

Permalink
Merge pull request #21 from dnd-side-project/feat/feed
Browse files Browse the repository at this point in the history
Fix: 피드 조회 API 수정
  • Loading branch information
haeyonghahn committed Aug 24, 2023
2 parents 5f5dbcc + f5ad082 commit bf4af5f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.dnd.gooding.global.common.model.InterestType;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
Expand All @@ -33,13 +34,14 @@ public class FeedController {
})
@Parameters({
@Parameter(name = "userId", description = "로그인한 사용자 ID", required = true),
@Parameter(name = "interestCodes", description = "로그인한 사용자 관심사"),
@Parameter(name = "page", description = "페이지 번호"),
@Parameter(name = "size", description = "페이지 크기")
})
@GetMapping(value = "/{userId}", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<Page<FeedResponse>> feed(
@PathVariable Long userId,
@RequestParam(name = "interestCodes") List<InterestType> interestCodes,
@Parameter(hidden = true) @RequestParam(name = "interestCodes") List<InterestType> interestCodes,
@Parameter(hidden = true) Pageable pageable) {
return ResponseEntity
.ok()
Expand Down

0 comments on commit bf4af5f

Please sign in to comment.