This is very simple service that returns an id and text for a game that is requested in the 'name' query parameter. e.g. http://localhost:8080/game?name=Chess should return json containing following fields: {"id":some number,"text":"some string"}
If there is no query parameter then the game endpoint by default sets game to Sudoku, e.g. http://localhost:8080/game should return json containing following fields: {"id":some number,"text":"some string"}
id is a counter that increases by a certain amount every time a request is made to the server.
- Git
- Java 8
- Access to commandline to run commands.
- Internet connection to download dependencies.
- An IDE such as Eclipse.
- Fork the repo in github.com using your github account. If you dont have a github account, please create one and then fork the repo.
- Once you fork the repo, it should be available on your account now. Click the 'Clone or Download' button to copy the link.
- Clone the repo on your machine.
- Use a build tool such as maven or gradle (binaries are provided in the repo for help but its not necessary to use them) to produce a jar file.
- Run the jar using java cmd.
- Access the server using an http client.
- Come up with functional tests for the application.
- Write tests/assertions in your favorite programming language.
- Open a pull request for code review.