즐겨찾기
/posts/{postId}/favorite
즐겨찾기 취소
/posts/{postId}/favorite
해당년도 게시글 개수 정보 조회
/posts/calendarGraph?year={year}&userId={userId}
1. 카드 페이지 버튼 누를 때 - 1년치 한 번에 보냄
2. surfing stat(잔디밭)
🔆조회하려는 userId를 request param으로 추가(잔디밭에서 필요)
일년치 게시글 점수 조회
/posts/score?userId={userId}
- 메인페이지 그래프 (카테고리 미 선택시)
타회원 그래프 조회 가능 (userId)
카테고리 선택하면 categoryId로 필터링
1. category id 2. post의 select date 순으로 정렬
🔆응답에서 selectedDate, score → x, y로 수정
한달 전체 게시글 조회
/posts/month?year={year}&month={month}
- 카드 페이지에서 카드를 눌렀을 때
ex> URL?year=2016&month=8
- userId는 토큰
전체 게시글 조회
/posts/all?userId={userId}&cursorId={cursorId}
- 10개씩 무한 스크롤(커서 페이징)
카테고리별 게시글 전체 조회
/posts?userId={userId}&categoryId={categoryId}&cursorId={cursorId}
- 10개씩 무한 스크롤(커서 페이징)
카테고리별 최근 게시글 점수 조회
/recentscore?categoryId={categoryId}
기능 분리
- post 생성 위해 (+) 누를 때
최신 전체 게시글 둘러보기
/posts/recent?cursorId={cursorId}
- 최신 전체 게시글 10개씩 둘러보기
팔로우 한 사용자 게시글 둘러보기
/follow/posts?cursorId={cursorId}
- 팔로우한 사용자 게시글 둘러보기
카테고리 수정
/categories/{categoryId}
카테고리 삭제
/categories/{categoryId}
카테고리 전체 조회
/categories
categoryId, catagoryName 확인 가능
해당 사용자의 대시보드 정보
/categories/dashboard?userId={userId}
특정 사용자의 팔로워 전체 조회
/users/{userId}/followers
특정 사용자가 팔로잉 한 사람 전체 조회
/users/{userId}/following
게시글 좋아요
/posts/{postId}/like
게시글 좋아요 취소
/posts/{postId}/unlike/{likeId}