Code examples for following posts:
- Build a REST API with .NET Core 2 and run it on Docker Linux container
- .NET Core integration testing and mock dependencies
- Code coverage of .NET Core unit tests with OpenCover
- .NET Core code coverage on Linux with MiniCover
- Install .NET Core SDK
- Open cmd.exe and navigate to project's folder.
- Build project with following command
dotnet build
Run project with following command
dotnet run
There are several functionalities implemented in the stub. See linked posts for more details how to use them.
Database where you can add, get or remove persons with JSON showing RESTful web services functionality described in blog post. GET endpoints are: http://localhost:5000/person/all, http://localhost:5000/person/get/{id}, http://localhost:5000/person/remove. POST endpoint is: http://localhost:5000/person/save.
http://localhost:5000/api/version returns a configuration value that is read from external config file.
http://localhost:5000/secure/person/all with Authorization header