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

preview_player
Показать описание
"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. "

#DotNet #dotnetconf #dotnet7

Рекомендации по теме
Комментарии
Автор

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?

mgbrain
Автор

Can you tell me how to acces the response status?

tacci
Автор

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 ;-)

MaxiTB