f-lab-edu / f-lab-edu/develop_board

[Feature] 게시글 목록 조회를 위한 Service, Controller 로직 구현

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## 기능 설명
- 게시글 목록 조회를 할 수 있다.
- sorting 기준은 최신순, 오래된순, 조회수 순이 있다.

### 리스트
- `/api/posts`
- Method: GET
- Parameter
- optional
- page: 1 보다 큰 수 (default: 1)
- sort: 최신순, 조회수 순 (default: latest)
- size: 한 페이지에서 보여줄 사이즈 (default: 30)
- Response:
- required: 제목, 조회수, 작성자, 최종 수정일(단, 조회수 증가시 updated_at은 증가하지 않는다.)
- optional: 조회수가 1000이상이면, 인기
- Projection or select all 로 모든 필드를 다 가져올 것인가?

## 작업 내용
- [ ] 게시글 목록 조회를 위한 Service method 구현
- [ ] 게시글 목록 조회 API 구현을 위한 Controller method 구현
- [ ] 최신순, 오래된순, 조회수순으로 가져오기 위한 JPA 구현

## 참고 자료

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.