Debug API
This commit is contained in:
11
docker/test.sh
Executable file
11
docker/test.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
curl -s -D - --header "Accept: application/json" http://localhost:8080/api/tournament
|
||||
|
||||
curl -s --header "Accept: application/json" --header "Content-Type: application/json" \
|
||||
--request POST \
|
||||
--data '{"type":"INDIVIDUAL","name":"Mon Tournoi", "shortName": "mon-tournoi", "startDate": "2023-05-10", "endDate": "2023-05-12", "country": "FR", "location": "Marseille", "online": false, "timeSystem": { "type": "fisher", "mainTime": "1200", "increment": "10" }, "pairing": { "type": "ROUNDROBIN" } }' \
|
||||
http://localhost:8080/api/tournament
|
||||
|
||||
curl -s -D - --header "Accept: application/json" http://localhost:8080/api/tournament/1
|
||||
|
Reference in New Issue
Block a user