Self Hosted REST Microservice using OWIN and ASP.NET Web API 2

Channel:
Subscribers:
24,800
Published on ● Video Link: https://www.youtube.com/watch?v=AM2HtQTAQaY



Duration: 6:38
27,114 views
92


This video demonstrates creating a simple Self Hosted REST service using OWIN and WebAPI2.
I then create a simple web page to retrieve data from the REST service.
The C# Desktop project requires two NuGet Packages.
Open the NuGet Package manager and run the following two lines.
Install-Package Microsoft.AspNet.WebApi.OwinSelfHost
Install-Package Microsoft.AspNet.WebApi.Cors

The video also demonstrates the need to EnableCors with the System.Web.Http.HttpConfiguration object to allow cross origin resource sharing.

Text version of this tutorial at
https://seanwasere.com/self-hosted-rest-microservice-using-owin-and-asp-net-web-api-2/

I also have a very similar but slightly more advanced project at my GitHub page
https://github.com/Sean-Bradley/SeansOWINRestfulService







Tags:
owin
asp.net
web api 2
c#
self hosted microservice
webapi2
REST
resftful