API-ly Ever After: OpenAPI in .NET 9

  Рет қаралды 9,847

dotnet

dotnet

Күн бұрын

In .NET 9, ASP.NET Core ships with built-in support for generating OpenAPI documents from minimal and controller-based APIs. In this session, we'll cover the key features of this new support, explore integration scenarios for OpenAPI, and discuss how your team can make the most of OpenAPI.
Connect with .NET:
Blog: aka.ms/dotnet/...
Twitter: aka.ms/dotnet/...
TikTok: aka.ms/dotnet/...
Mastodon: aka.ms/dotnet/...
LinkedIn: aka.ms/dotnet/...
Facebook: aka.ms/dotnet/...
Docs: learn.microsof...
Forums: aka.ms/dotnet/...
🙋‍♀️Q&A: aka.ms/dotnet-qa
👨‍🎓Microsoft Learn: aka.ms/learndo...
#dotnet

Пікірлер: 12
@d3vil5oldier
@d3vil5oldier 11 күн бұрын
This was awesome. I manage to fix my code where Scalar wouldn't show the authentication type in the drop-down menu. Thank you Safia and Mike.
@VladyslavHorbachov
@VladyslavHorbachov 2 ай бұрын
Great demo! I'd like to see some presentation about Kiota and how it's integrated with current open API workflows as well.
@alexlo5655
@alexlo5655 2 ай бұрын
Great demo! Do you have a source code for it on a GitHub?
@eugene5096
@eugene5096 2 ай бұрын
Thank you guys, just wonder why things that are done in schema transformer could not be done via attributes ?
@kurumi690
@kurumi690 2 ай бұрын
My first thought is because of NativeAOT friendly, or we need to create some source gen
@safiaabdalla5656
@safiaabdalla5656 2 ай бұрын
There's no out-of-the-box attributes for settings examples for types so we relay on transformers for this. For these kinds of situations, transformers provide more flexibility and reduce the amount of new API that needs to be added.
@passionblackbay
@passionblackbay 2 ай бұрын
@@safiaabdalla5656 Transformers work well for security schemes and requirements, but they feel awkward for defining example values. With the Swashbuckle generator, it's at least possible to use XML comments for classes and route/query params, which is more convenient. However, is there an example available for using transformers specifically with example values for route/query parameters? Having an [Example()] or [Examples()] attribute (like [description()]) would be far more convenient...
@gibbonaci
@gibbonaci 2 ай бұрын
what about fluentvalidation here?
@safiaabdalla5656
@safiaabdalla5656 2 ай бұрын
We don't provide built-in support for mapping FluentValidation configurations to OpenAPI documents but it is something that FluentValidation can provide by building on top of the transformers API in their own packages.
@andrijs1521
@andrijs1521 2 ай бұрын
Could you please provide source code for this presentation?
@gibbonaci
@gibbonaci 2 ай бұрын
There's one thing I would like to point out after initial testing, the `dotnet watch` command is not rebuilding the definitions so hot reloading needs to be turned off!
Build hybrid apps with .NET MAUI
26:25
dotnet
Рет қаралды 10 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
What's new in .NET 9 and C# 13
19:21
Filip Ekberg
Рет қаралды 22 М.
How to Implement API Versioning for Minimal APIs | ASP.NET Core 8
18:11
Milan Jovanović
Рет қаралды 19 М.
What's new in C# 13
40:03
dotnet
Рет қаралды 27 М.
Swagger is Gone in .NET 9! Replace It With This.
9:34
Nick Chapsas
Рет қаралды 99 М.
Configuring and Using Swagger in an ASP.NET Core Application
13:13
What's New in .NET MAUI in .NET 9
40:15
dotnet
Рет қаралды 14 М.
Performance Improvements in .NET 9
38:41
dotnet
Рет қаралды 34 М.
What's New for ASP.NET Core & Blazor in .NET 9
40:26
dotnet
Рет қаралды 35 М.
The Only .NET Scheduler You Should Be Using!
16:38
Nick Chapsas
Рет қаралды 60 М.
The Return of Procedural Programming - Richard Feldman
52:53
ChariotSolutions
Рет қаралды 66 М.