Build a .NET SDK with OpenAPI and NSwag | .NET Conf 2022

  Рет қаралды 13,187

dotnet

dotnet

Жыл бұрын

"In this session, I'll walk you through the process of building a modern Web API leveraging the latest .NET features and generating an SDK with broad compatibility with other .NET versions or even other languages, thanks to OpenAPI!
We're going to use Minimal APIs, User JWTs, OpenAPI, Swagger, NSwag and review how you can expand your SDK support to other programming languages. "
www.dotnetconf.net
#DotNet #dotnetconf #dotnet7
🙋‍♀️🙋‍♂️ Get your questions answered on the Microsoft Q&A for .NET: aka.ms/dotnet-qa
🏫 Learn C#, F#, and .NET with free self-guided learning from Microsoft Learn: aka.ms/learndotnet

Пікірлер: 7
@tacci2568
@tacci2568 Жыл бұрын
Can you tell me how to acces the response status?
@mgbrain9675
@mgbrain9675 7 ай бұрын
I have a problem, it's about generating ApiException class. if we generate first openapi, no problem to generate this class but when we try to add second open api reference , generator doesn,t generate ApiException. How can I fix this bug?
@MaxiTB
@MaxiTB Жыл бұрын
I'm pretty sure HttpClient is an IDisposable. Even tho this is a beginner tutorial (because it uses minimal API for the service), proper memory management should always be shown in tutorials to scare away managers from coding ;-)
@_torgeek9108
@_torgeek9108 Жыл бұрын
Lol, it sure is disposable until you the socket exhaustion headache shows its ugly head on your project if IHttpClientFactory is not used instead 😅
@MaxiTB
@MaxiTB Жыл бұрын
@@_torgeek9108 I don't see your point; not disposing HttpClient instances created via IHttpClientFactory is even worse because the connection pool relies on speed reclaiming of unused instances which is signaled with Dispose().
@user-pm7kt8tm1s
@user-pm7kt8tm1s 8 ай бұрын
It's managed by DI and does NOT require manual disposal. Please learn you stuff before posting
@MaxiTB
@MaxiTB 8 ай бұрын
@@user-pm7kt8tm1s Yeah right, var client = new HttpClient(); automatically magically pulls out and manages the instance in the non existing service provider. Sounds about right, thanks for your wisdom Mr. Random-Clueless-Poster or LLM bot. Ah, it's always good to know my job is safe.
Building .NET apps on WSL | .NET Conf 2022
36:43
dotnet
Рет қаралды 7 М.
OpenAPI & .NET: You're Doing It Wrong - Mark Rendle - NDC Oslo 2023
57:15
Amazing weight loss transformation !! 😱😱
00:24
Tibo InShape
Рет қаралды 59 МЛН
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 9 МЛН
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22
REST API and OpenAPI: It’s Not an Either/Or Question
9:17
IBM Technology
Рет қаралды 205 М.
Swagger is Going Away in .NET 9!
10:48
Nick Chapsas
Рет қаралды 91 М.
“.NET 9 Is Killing MediatR, MassTransit & Wolverine!”
11:59
Nick Chapsas
Рет қаралды 82 М.
.NET ❤️’s WebAssembly in .NET 7 | .NET Conf 2022
26:08
🤖 Automate API with Nswag ( Generating C#, Typescript http clients )
14:31
Full Stack Developer 🎭
Рет қаралды 3,5 М.
Кратко про OpenAPI и Swagger
26:43
IT как Конструктор
Рет қаралды 48 М.
Looks very comfortable. #leddisplay #ledscreen #ledwall #eagerled
0:19
LED Screen Factory-EagerLED
Рет қаралды 3,8 МЛН