Java - 1.8.x
Maven - 3.x.x
MongoDB - 3.x.x
The application defines following REST APIs
-
GET /posts - Get All Posts
-
POST /posts - Create a new Post
-
GET /posts/{id} - Retrieve a Post by Id
-
PUT /posts/{id} - Update a Post
-
DELETE /posts/{id} - Delete a Post
-
GET /stream/posts - Stream posts to a browser as Server-Sent Events
The project also contains integration tests for all the Rest APIs. For running the integration tests, go to the root directory of the project and type mvn test in your terminal.