Go to file
Michele Scandura 75dad86ba4
All checks were successful
continuous-integration/drone/push Build is passing
New campaign system
2021-09-23 09:44:56 +01:00
.vscode New campaign system 2021-09-23 09:44:56 +01:00
Assets New campaign system 2021-09-23 09:44:56 +01:00
BaseCompileImage New campaign system 2021-09-23 09:44:56 +01:00
Sledgemapper New campaign system 2021-09-23 09:44:56 +01:00
Sledgemapper.Api New campaign system 2021-09-23 09:44:56 +01:00
Sledgemapper.Shared New campaign system 2021-09-23 09:44:56 +01:00
.dockerignore New campaign system 2021-09-23 09:44:56 +01:00
.drone.yml New campaign system 2021-09-23 09:44:56 +01:00
.editorconfig New campaign system 2021-09-23 09:44:56 +01:00
.gitignore New campaign system 2021-09-23 09:44:56 +01:00
build.sh New campaign system 2021-09-23 09:44:56 +01:00
Dockerfile New campaign system 2021-09-23 09:44:56 +01:00
nuget.config New campaign system 2021-09-23 09:44:56 +01:00
README.md New campaign system 2021-09-23 09:44:56 +01:00
Sledgemapper.sln New campaign system 2021-09-23 09:44:56 +01:00
Sledgemapper.sln.DotSettings New campaign system 2021-09-23 09:44:56 +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\"}'