No description
Find a file
Michele cb9d6387d1
Some checks reported errors
continuous-integration/drone/push Build encountered an error
will it break
2021-08-20 14:47:48 +01:00
.vscode docker stuff 2020-11-24 15:25:07 +00:00
Assets refactoring backend structure 2021-02-15 23:35:55 +00:00
BaseCompileImage fix drone compilation 2021-01-17 22:24:14 +00:00
Sledgemapper revert monogame dev upgrade 2021-08-20 14:38:52 +01:00
Sledgemapper.Api wiring up new auth endpoint 2021-05-28 23:14:40 +01:00
Sledgemapper.Shared wiring up new auth endpoint 2021-05-28 23:14:40 +01:00
.dockerignore docker stuff 2020-11-24 15:25:07 +00:00
.drone.yml will it break 2021-08-20 14:47:48 +01: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 monogame dev update 2021-08-20 14:11: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

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\"}'