This project is a simple REST application for serving a blog. It uses Spring Boot, Spring Data JPA and some other helper libraries.
-
POSTat/posts/{id}/commentswhich should:- Save a new comment with current date and time for post with passed
{id} - Return
201 Createdif comment is created successfully for post with passed{id} - Return
404 Not Foundif post with passed{id}does not exist
- Save a new comment with current date and time for post with passed
-
GETat/posts/{id}/commentswhich should:- Return all comments sorted by creation date in descending order for a post with passed
{id} - Return empty list if a post with passed
{id}does not exists or when it does not contain any comments
- Return all comments sorted by creation date in descending order for a post with passed