This is a very basic spring-boot app. Run it (using mvn spring-boot:run
) or your favorite IDE.
Try the url http://localhost:5000/greeting?name=David
, it should return the string: "Hello David".
You should use this template to develop a forum system.
We want to develop 4 APIs:
with body:
{
"author": "Daniel",
"message": "Message text"
}
Response should be 201:
{
"id": 1,
"author": "Daniel",
"message": "Message text",
"replies": 0
}
with body:
{
"author": "Reply author",
"message": "Message reply text"
}
Response should be 201:
{
"questionId": 1,
"id": 5,
"author": "Reply author",
"message": "Message reply text"
}
the response should look like:
{
"id": 1,
"author": "Daniel",
"message": "Message text",
"replies": [
{
"id": 5,
"author": "Reply author",
"message": "Message reply text"
},
...
]
}
The response should look like:
[
{
"id": 1,
"author": "Daniel",
"message": "Message text",
"replies": 0
},
...
]
- Fork this repository and push your commits
- Use the spring-boot template given
- Write unit-tests, integration-tests
- Write in javadocs what scenarios are in test
- Higher coverage is better
- Write code documentation
- All classes given are meant to used as reference - once they are not needed, they can be removed.
- This project uses lombok - use it when possible
- Properly organize your project with
.gitignore
file,readme
file explaining how to run the project, etc.
- Send us a link to a repository fulfilling the requirements.
- Your code will be tested using different tests.
- Successful implementation will move to interview.