Mostly to show off coding style.
Create an API to Sort integer arrays. Arrays should be sorted as part of a jobrunner, and the controller should give back an ID of a job, that can then be looked up for status and result.
Please clone or download the project.
run .\build.ps1
from the root of the project, either in your terminal of choice or run the powershell script directly (right click -> Run in powershell).
The script, builds the solution, runs the tests and publishes the release version of the service.
The release version is published to Mergesort_API\bin\Release\netcoreapp2.2\win-x64
run .\run.ps1
from the root of the project, either in your terminal of choice or run the powershell script directly (right click -> Run in powershell).
This will run the service in the console as a selfhosted api.
- Run
docker build -t mergesort .
from the root of the project. - Run
docker run -d -p 5000:5000 --name sorting-api mergesort
Now you can go to http://localhost:5000 to browse the swagger docs and test it out.
The API starts a webserver on http://localhost:5000
The documentation is in the root of the url, so please browse to http://localhost:5000 for the swagger docs