The API returns responses with JSON files
- POST /api/register - registration
- POST /api/login - login
- GET /api/posts/ - list of all posts
- POST /api/posts/ - adding a post - please note - there is an url, but there is a text
- GET /api/posts/{CATEGORY_NAME} - a list of posts of a specific category
- GET /api/post/{POST_ID} - details of the post with comments
- POST /api/post/{POST_ID} - adding a comment
- DELETE /api/post/{POST_ID}/{COMMENT_ID} - delete a comment
- GET /api/post/{POST_ID}/upvote - rating the post up
- GET /api/post/{POST_ID}/downvote - the rating of the post is down
- GET /api/post/{POST_ID}/unvote - voice cancellation
- DELETE /api/post/{POST_ID} - deleting a post
- GET /api/user/{USER_LOGIN} - getting all posts of a specific user
- Comments on posts
- The Post
- Session
- The user
- Vote for the post
- UserRepository
- SessionRepository
- PostRepository
The project provides a simplification in view of the fact that data is stored in memory.