Releases: morganPigeron/backendScore
Releases · morganPigeron/backendScore
minimal version
Usage
Create an .env file with:
MONGO_INITDB_ROOT_USERNAME=myUsername
MONGO_INITDB_ROOT_PASSWORD=myPassword
and run with :
sudo docker-compose up --build
API
get all scores
GET http://localhost:8888/scores HTTP/1.1
post a new score
POST http://localhost:8888/scores HTTP/1.1
content-type: application/json
{
"player": "{{$guid}}",
"date": "{{$datetime rfc1123|iso8601}}",
"points":{{$randomInt 0 100}}
}