Some test stuff
To build:
make local
To run:
go run main.go
or
./bow-api
- REGISTER:
curl --header "Content-Type: application/json" \
--request POST \
--data '{"name":"player 1"}' \
http://localhost:8080/api/v1/register
- RECORD:
curl --header "Content-Type: application/json" \
--request POST \
--data '{"userName":"player 1","frameID":11,"score":10}' \
http://localhost:8080/api/v1/record
- DISPLAY:
curl --header "Content-Type: application/json" \
--request GET \
http://localhost:8080/api/v1/display