Here is the final release of blog. To run it, just run the attached Jar.
Here's some CURL Commands you might want to use:
curl -v -H "Content-type: application/json" -X POST -d "{"title": "TOIMI","body": "pliis","username":"Teukka"}" http://localhost:8080/blogpost ---> Saves a blogpost.
//curl -v http://localhost:8080/blogpost ---> Gets all blogposts
//curl -v http://localhost:8080/blogpost/ID ---> Gets a single blogpost, substitute ID with a number
curl -X DELETE http://localhost:8080/comment/2 ---> Deletes a comment by ID
Use the following credentials to get admin access to the blog: username: admin, password: password