.NET Core 2.0 REST API running on Docker Linux container
Switch branches/tags
Nothing to show
Clone or download
Latest commit 0d72a98 Apr 26, 2018

README.md

SampleDotNetCore2RestStub

Code examples for following posts:

Build

  • Install .NET Core SDK
  • Open cmd.exe and navigate to project's folder.
  • Build project with following command

dotnet build

Run

Run project with following command

dotnet run

Functionalities

There are several functionalities implemented in the stub. See linked posts for more details how to use them.

Persons

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.

Version

http://localhost:5000/api/version returns a configuration value that is read from external config file.

Secure Persons

http://localhost:5000/secure/person/all with Authorization header