Go to file
michele a664d09065
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Merge branch 'master' into campaign
2021-09-24 10:09:23 +00:00
.vscode docker stuff 2020-11-24 15:25:07 +00:00
Assets migration scripts 2021-09-23 16:07:33 +01:00
BaseCompileImage fix drone compilation 2021-01-17 22:24:14 +00:00
Sledgemapper small fixes 2021-09-24 11:02:22 +01:00
Sledgemapper.Api fix player invitation 2021-09-24 11:00:24 +01:00
Sledgemapper.Shared fix note bugs 2021-09-23 12:47:48 +01:00
.dockerignore docker stuff 2020-11-24 15:25:07 +00:00
.drone.yml fix cd 2021-08-21 21:13:26 +00:00
.editorconfig more refactorin 2020-11-06 20:08:27 +00:00
.gitignore cleanup 2021-02-20 00:21:03 +00:00
build.sh fix build 2020-11-27 21:58:26 +00:00
Dockerfile build tweaks 2020-11-30 11:20:35 +00:00
nuget.config removing monogame feed 2021-09-23 16:50:34 +01:00
README.md db and auth refactoring 2021-02-20 00:18:07 +00:00
Sledgemapper.sln more cleanup 2020-11-18 11:22:46 +00:00
Sledgemapper.sln.DotSettings fixes and cleanup 2021-09-21 11:09:26 +01:00

Map

to start the container run:

docker run --name=<name>  -p:5000:80 -v /home/michele/sledgemapper/:/app/db -d privateregistry.michelescandura.com/michele/sledgemapper:<version>

Curl

Register user

 curl -i -X POST -H "Content-Type: application/json" http://localhost:5000/users/register -d '{\"FirstName\":\"Michele\",\"LastName\":\"Scandura\", \"Username\":\"michele.scandura@outlook.com\", \"Password\":\"password1\", \"Initials\":\"MS\"}'

Login

 curl -i -X POST -H "Content-Type: application/json" http://localhost:5000/users/authenticate -d '{\"Username\":\"michele.scandura@outlook.com\", \"Password\":\"password1\"}'

New Campaign

curl -i -X POST -H "Content-Type: application/json" -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6IjEiLCJuYmYiOjE2MTM3MjgzMjksImV4cCI6MTYxNDMzMzEyOCwiaWF0IjoxNjEzNzI4MzI5fQ.VEsDbYUTnnvpgWnB5buE88JyGx_cg3TJb5ybC3eLvmc" http://localhost:5000/campaign/highfell -d '""'

Get Campaigns

curl -i -X GET -H "Content-Type: application/json" -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6IjEiLCJuYmYiOjE2MTM3MjgzMjksImV4cCI6MTYxNDMzMzEyOCwiaWF0IjoxNjEzNzI4MzI5fQ.VEsDbYUTnnvpgWnB5buE88JyGx_cg3TJb5ybC3eLvmc" http://localhost:5000/campaign -d '""'
curl -i -X POST -H "Content-Type: application/json" http://localhost:5000/AuthManagement/register -d '{\"FirstName\":\"Michele\",\"LastName\":\"Scandura\", \"UserName\":\"michele\", \"Password\":\"Password1!\", \"Initials\":\"MS\", \"Email\":\"michele.scandura@outlook.com\"}'
curl -i -X POST -H "Content-Type: application/json" http://localhost:5000/AuthManagement/login -d '{ \"Password\":\"Password1!\", \"Email\":\"michele.scandura@outlook.com\"}'