This project is an example of a web service created with Spring Boot.
It will retrieve a set of Testers based on the countries and devices specified.
They will be shown in order of how many bugs they have found (experience).
To start the server, run the following command in a terminal window in the main directory:
./gradlew bootRun
The data is loaded from CSV files into an H2 database upon start up.
Requests are to be made as a POST request to the endpoint at:
JSON should be sent containing values for countries. The options are:
- US
- GB
- JP
- ALL (just use this one if requesting all countries)
The choices for devices are:
- iPhone 4
- iPhone 4S
- iPhone 5
- Galaxy S3
- Galaxy S4
- Nexus 4
- Droid Razor
- Droid DNA
- HTC One
- iPhone 3
- ALL (if using this one, it should be the only device value)
The body of the request should look like this:
{ "countries": ["US", "GB"], "devices" : ["iPhone 4", "iPhone 5"] }
or
{ "countries": ["ALL"], "devices" : ["iPhone 4", "Droid DNA"] }
You can use Postman or something similar to test this.