Go to file
Michele Scandura b8d27a2a6f
All checks were successful
continuous-integration/drone/push Build is passing
ui
2021-09-15 16:54:41 +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 ui 2021-09-15 16:54:41 +01:00
Sledgemapper.Api moving ui code to mainwidget 2021-09-05 22:05:30 +01:00
Sledgemapper.Shared Get campaign list 2021-06-02 23:10:37 +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 Merge branch 'campaign' of https://git.michelescandura.com/michele/sledgemapper into campaign 2021-08-27 10:55:29 +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\"}'