Skip to content

Releases: morganPigeron/backendScore

minimal version

20 Mar 12:18

Choose a tag to compare

minimal version Pre-release
Pre-release

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}}
}