llatinov / SampleDotNetCore2RestStub

.NET Core 2.0 REST API running on Docker Linux container

Home Page:https://automationrhapsody.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

.NET Core 2.0 REST API running on Docker Linux container

https://automationrhapsody.com/


Languages

Language:C# 92.1%Language:Shell 7.0%Language:Dockerfile 1.0%