Skip to content

Using various hosting ways in order to setup a web api

Notifications You must be signed in to change notification settings

aimenux/WebApiHostingDemo

Repository files navigation

.NET

WebApiHostingDemo

Exploring various hosting ways in order to setup a web api

In this repo, i m exploring various hosting ways in order to setup a web api

1️⃣ Example01 use default template with controller(s) and top level statements program class

2️⃣ Example02 use startup class with controller(s) and program class based on generic host

3️⃣ Example03 use startup class with controller(s) and program class based on web application

4️⃣ Example04 is very similar to Example03 with an elegant way to call startup class behind the scenes

5️⃣ Example05 use minimal api template

Tools : vs22, net 6.0, web api, serilog, integration-testing, fluent-assertions, nsubstitute

Releases

No releases published

Packages

No packages published

Languages