An open API service indexing awesome lists of open source software.

https://github.com/jonahandersson/dotnet-minimal-web-api-example

.NET 7 Example of Minimal API C# .NET
https://github.com/jonahandersson/dotnet-minimal-web-api-example

asp-net-core aspnetcore dot-net-7 dotnet dotnet-6 minimal-api swagger swagger-api web-api webapi

Last synced: 5 months ago
JSON representation

.NET 7 Example of Minimal API C# .NET

Awesome Lists containing this project

README

        

# C# .NET 7 Minimal Web API
##### Example source code with simple CRUD Operations (PUT, POST, GET, DELETE) with Swagger/Open API

#### NOTE: Ongoing project

#### DESCRIPTION:

Simple example in C# .NET 7 for minimal web APIs with basic CRUD operations and example data

##### MINIMAL APIs - ORIGIN AND WHAT?

Minimal APIs are architected to create HTTP APIs with minimal dependencies. They are ideal for microservices and apps that want to include only the minimum files, features, and dependencies in ASP.NET Core. History of the minimal API traces back in November 2019.

More details about it blogged on my website Minimal Web APIs in .NET and Azure API Management Combined

Below is the image that shows how minimal API works with OpenAPI (Swagger)
![alt text](https://github.com/jonahandersson/dotnet-minimal-web-api-example/blob/master/minimalAPIDemoExample.png )

OpenAPI (Swagger) Test Run Query Get Data that returns expected data in JSON format
![image](https://user-images.githubusercontent.com/14919667/208229781-226b3a19-e1eb-41ba-b12b-e4abfe7ce303.png)

### REFERENCES, EXAMPLES AND QUICKSTARTS

- [Tutorial: Create a minimal web API with ASP.NET Core](https://docs.microsoft.com/en-us/aspnet/core/tutorials/min-web-api?view=aspnetcore-6.0&tabs=visual-studio?WT.mc_id=AZ-MVP-5004251)
- [Minimal Web APIs in .NET and Azure API Management Combined by Jonah Andersson](https://jonahandersson.tech/minimal-web-apis-in-net-and-azure-api-management-combined/)
- [Microsoft Docs: Minimal APIs Overview](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis?view=aspnetcore-6.0?WT.mc_id=AZ-MVP-5004251)
- [Introduction to Minimal APIs in .NET 6 by Claudio Bernasconi](https://www.claudiobernasconi.ch/2022/02/23/introduction-to-minimal-apis-in-dotnet6/)
- [Code Maze: Minimal APIs in .NET 6](https://code-maze.com/dotnet-minimal-api/)
- [Code Maze:Configuring and Using Swagger UI in ASP.NET Core Web API](https://code-maze.com/swagger-ui-asp-net-core-web-api)