Endpoints
유저
로직 | Http Method | endpoint | ㅤ |
Authentication | POST | /api/users/login | O |
Registration | POST | /api/users | O |
Get Current User | GET | /api/user | O |
Update User | PUT | /api/user | O |
프로파일
Get Profile | GET | /api/profiles/:username | ㅤ |
Follow User | POST | /api/profiles/:username/follow | ㅤ |
Unfollow user | DELETE | /api/profiles/:username/follow | ㅤ |
기사(Article)
List Articles | GET | /api/articles | ㅤ |
Feed Articles | GET | /api/articles/feed | 내가 팔로우하는 유저에 의해 생성된 게시글 조회 |
Get Article | GET | /api/articles/:slug | ㅤ |
Create Article | POST | /api/articles | ㅤ |
Update Article | PUT | /api/articles/:slug | ㅤ |
Delete Article | DELETE | /api/articles/:slug | ㅤ |
기사 좋아요
Favorite Article | POST | /api/articles/:slug/favorite | ㅤ |
Unfavorite Article | DELETE | /api/articles/:slug/favorite | ㅤ |
Comment
Add Comment to an Article | POST | /api/articles/:slug/comments | ㅤ |
Get Comments from an Article | GET | /api/articles/:slug/comments | ㅤ |
Delete Comment | DELETE | /api/articles/:slug/comments/:id | ㅤ |
태그
Get Tags | GET | /api/tags | ㅤ |
Todo
CommentRestController — Test 구현
Favorite Article
Unfavorite article
Get tags
List articles
Feed articles