Simple example in C# .NET 7 for minimal web APIs with basic CRUD operations and example data
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)
OpenAPI (Swagger) Test Run Query Get Data that returns expected data in JSON format
- Tutorial: Create a minimal web API with ASP.NET Core
- Minimal Web APIs in .NET and Azure API Management Combined by Jonah Andersson
- Microsoft Docs: Minimal APIs Overview
- Introduction to Minimal APIs in .NET 6 by Claudio Bernasconi
- Code Maze: Minimal APIs in .NET 6
- Code Maze:Configuring and Using Swagger UI in ASP.NET Core Web API