- Make it possible to add new Heroes through a RESTful API.
- Replace the In-memory-based repository with a file-based repository(in textual data format like Json or XML, not a SQL database).
- Make the code thread-safe and robust. For example with error handling etc.
- Write tests that proves that your code works as expected.
- Your are free to refactor the code as much as you like, as long as you use Spring Framework and Maven.
- Please comment solutions that you feel needs to be more explained. For example; why you solved it in this way, or how it could be solved in a better way.
Create a zip file of your project and send it to us.
Prerequisites: Java 7+, Maven and an Internet connection.
- Go to the project root
- Type
mvn install - Type
mvn jetty:run - Browse to http://localhost:8080/developer-test/ping using a browser. The response text should be 'Pong'
(You can also type:
curl -i -H "Accept: application/json" -X GET http://localhost:8080/developer-test/ping)