Changes for .NET 7 minimal API scaffolders
See original GitHub issue- Add whitespace route group definition and first API definition
- Remove all
Produces
extension method calls (they aren’t needed when usingTypedResults
or returning the object to be serialized directly) - Remove all calls to
WithTags
from API definitions and instead have single call on the group definition - Move call to
WithOpenApi
from group definition to API definitions (that method is designed to allow editing a specificOpenApiOperation
so is more useful on the endpoint definitions directly IMO) - Update non-EF Core scaffolder to also use
TypedResults
- Question: Do we want to add an option for using strongly typed results?
- My thinking is “yes” because they represent an alternate of writing the API but not necessarily a “better” way and some folks may prefer using
Results
and theProduces
approach
- My thinking is “yes” because they represent an alternate of writing the API but not necessarily a “better” way and some folks may prefer using
Issue Analytics
- State:
- Created a year ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Content for Minimal APIs scaffolding with .NET 7 features
The team will be rolling out a number of features for .NET 7, some of which we want to include in our scaffolding...
Read more >Scaffold Identity in ASP.NET Core projects
You might want to generate source code so you can modify the code and change the behavior. For example, you could instruct the...
Read more >What's New in .NET 7 for Minimal APIs?
What New Features Did .NET 7 Bring to Minimal APIs? · 1. Endpoint Filters · 2. Typed Results · 3. Route Groups.
Read more >Scaffolding Minimal Api with a separate DbContext project ...
I have a solution name BugDemo consisting of 2 projects. Here is the github repo. a class library named Data . an Asp.Net...
Read more >7 Awesome New Features in .NET 7 - YouTube
NET Core 06:20 - Minimal API Grouping 09:10 - C# 11 and F# 7 (required, raw string literals, and more) 13:05 - Container...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Capturing feedback from meeting today:
All these have been addressed I believe, for anything else let’s use new(er) issues. Thanks.