Commit d02655d3 authored by Marek Kadlečík's avatar Marek Kadlečík
Browse files

Added fixed uuid to sample players

parent e11801b1
Pipeline #141240 passed with stage
in 1 minute
......@@ -31,9 +31,9 @@ Create a new player:
$ curl -X POST -i -H "Content-Type: application/json" --data '{"killStat":1, "deathStat":2, "assistStat":3}' http://localhost:8080/pa165/rest/players/create
Find player according to `uuid`: (Sadly, we haven't managed to fill application with sample data)
Find player according to `uuid`:
$ curl -X GET http://localhost:8080/pa165/rest/players/{uuid}
$ curl -X GET http://localhost:8080/pa165/rest/players/9384b466-badf-40ca-bbeb-4d8f6eb98042
......@@ -30,14 +30,17 @@ public class SampleDataLoadingFacadeImpl implements SampleDataLoadingFacade {
TeamEntity team = new TeamEntity();
PlayerEntity crimsix = player("Ian Porter", CountryEnum.AFGHANISTAN,5,6,7);
PlayerEntity crimsix = player("9384b466-badf-40ca-bbeb-4d8f6eb98042", "Ian Porter",
PlayerEntity JJoNak = player("Bang Seong-hyun ", CountryEnum.AFGHANISTAN,5,6,7);
PlayerEntity JJoNak = player("6e374a4e-5213-4581-847c-45f9e73ffe90", "Bang Seong-hyun ",
CountryEnum.ALBANIA,5,6,7);"Loaded Sample Players.");
private PlayerEntity player(String name, CountryEnum country, int killStat, int deathStat, int assistStat) {
private PlayerEntity player(String uuid, String name, CountryEnum country, int killStat, int deathStat, int assistStat) {
PlayerEntity player = new PlayerEntity();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment