-
Notifications
You must be signed in to change notification settings - Fork 1
04. Rest API 설계
biotea edited this page Apr 12, 2023
·
9 revisions
API 문서는 링크를 참고 해주세요.
기능 | Method | API |
---|---|---|
Login | POST | /api/auth/login |
Logout | GET | /api/auth/logout |
Access Token 재발급 | POST | /api/auth/reissueToken |
기능 | Method | API |
---|---|---|
회원가입 | POST | /api/user |
프로필 수정 | POST | /api/user/edit |
프로필 조회 | GET | /api/user/{userId} |
팔로우 목록 조회 | GET | /api/user/{userId}/followers |
팔로잉 목록 조회 | GET | /api/user/{userId}/followings |
기능 | Method | API |
---|---|---|
팔로우 | POST | /api/follow/{toUserId} |
언팔로우 | POST | /api/follow/unfollow/{toUserId} |
기능 | Method | API |
---|---|---|
글 생성 | POST | /api/post |
글 수정 | POST | /api/post/{postId}/edit |
댓글 등록 | POST | /api/post/{postId}/comment |
댓글 수정 | PUT | /api/post/comment/{commentId} |
답글 등록 | POST | /api/post/comment/{commentId}/reply |
답글 수정 | PUT | /api/post/comment/reply/{replyId} |
글 좋아요 | POST | /api/post/{postId}/like |
글 좋아요 취소 | POST | /api/post/{postId}/dislike |
글 삭제 | DELETE | /api/post/{postId} |
댓글 삭제 | DELETE | /api/post/comment/{commentId} |
답글 삭제 | DELETE | /api/post/reply/{replyId} |
기능 | Method | API |
---|---|---|
피드 조회 | GET | /api/feed |
기능 | Method | API |
---|---|---|
DM 전송 | POST | /api/dm/{toUserId} |
DM 목록 조회 | GET | /api/dm/chatroom |
DM 상세 내역 조회 | GET | /api/dm/chatroom/{chatroomId} |