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
- Host: GitHub
- URL: https://github.com/jonahandersson/dotnet-minimal-web-api-example
- Owner: jonahandersson
- Created: 2022-07-06T10:18:19.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-05T19:59:23.000Z (almost 2 years ago)
- Last Synced: 2024-12-24T02:53:33.455Z (6 months ago)
- Topics: asp-net-core, aspnetcore, dot-net-7, dotnet, dotnet-6, minimal-api, swagger, swagger-api, web-api, webapi
- Language: C#
- Homepage:
- Size: 297 KB
- Stars: 10
- Watchers: 3
- Forks: 15
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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)
OpenAPI (Swagger) Test Run Query Get Data that returns expected data in JSON format
### 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)