NSwag - SWAGGER For ASP.NET CORE and AUTOMATIC Type Generation For TypeScript |

preview_player
Показать описание
Hey Friends, "The OpenAPI Specification, originally known as the Swagger Specification,
is a specification for machine-readable interface files for describing, producing,
consuming, and visualizing RESTful web services"

In this video, I will walk you through on how to set up an OpenAPI spec (Swagger endpoint) for your ASP.NET
Core Web API, using NSwag. NSwag provides tools to generate OpenAPI specs and generate
client code to consume these APIs. I will also show how to automatically generate typescript clients and types to consume the API using MSBuild tasks. Every time we build the
project (csproj), it will automatically generate the associated typescript types from the
Data Transfer Objects (DTO) used in the API Controllers.

This allows us to easily integrate our front-end application without backend APIs, giving us
full type safety. Any time we update our DTO's it will also show the associated errors in our
frontend code right at compile time.

Come say hi! ✋

Make sure to SUBSCRIBE to the channel. THANK YOU for helping me grow this channel !!
Рекомендации по теме
Комментарии
Автор

My man! You explained this better than anyone else I could find! So many incomplete explanations, but you just walk us through it. Thank you!

bigchunk
Автор

This was an excellent walkthrough. You addressed many potential areas of confusion and your explanation was thorough but perfectly concise. Will be coming back to reference as I adopt NSwag myself, thank you!

ofnoisealteredtastes
Автор

quality content . Thank you Rahul. it is easy to brush my skills in .net in which I developed more than a year ago. Not a single second of video is waste. I appreciate that you've respected the viewers to provide "To the point" information.

kraman
Автор

Ok, you took the throne. You are the new boss of making much needed tutorials

cool
Автор

This is the third video of yours I've watched....very clear and concise, like the other two. Well done Rahul

jamesthompson
Автор

Another addition for knowledge base to improve! great work! I would like to see CI/CD with Git - TeamCity - Docker - Octopus as well!! Sorry huge list!!! I am addicted to your content, easy to digest!

starman
Автор

Finally a step by step tutorial thank u \m/ the official documentation is confusing as hell

nat-moba
Автор

This was really helpful and easy to follow Rahul. I loved the extra tips on how you can avoid code generation on your pipelines. Thank you!

mohammadalinia
Автор

Awesome tutorial! Would love to see how your CI/CD pipeline works for an aspnetcore, typescript react app

PeterParker-nhdi
Автор

Really clear and to the point, excellent work. Unfortunately for me nSwag studio just hangs or crashes on my project and never generates anything.

TonyGrayCanada
Автор

Great video. Your teaching style is awesome. Can you please do the series on .Net Web API unit & integration testing?? Thanks

akirablac
Автор

Hi Rahul, thanks it was an amazing explanation. Can we do it for angular typescript and using Nswag should be mandatory?

manasipalkar
Автор

Hi Rahul, this was extremely helpful. Great video, keep up the good work and thanks for sharing this with us.

DavidReidChannel
Автор

Amazing coincidence! One of my colleagues just implemented swagger in a new project at work...

triyuga
Автор

Thanks for the detailed video on swagger. One question related to TS support in this spa template, How can we add typescript here. Is it something we have to explicitly do with CRA and replace the content in clientApp folder?

dhirajpandeydhirjpndy
Автор

Muchas gracias, fue de muchas utilidad, las aclaraciones hechas ayudaron a configurar un caso con distintas configuraciones

elpiruwebmaster
Автор

This is Amazing! Wish I had seen your videos before.

TonoNamnum
Автор

Great tutorial thanks. I have a Q. Why do you write your own api methods instead of using nswag? Seems like so much work that could be 1-button automated.

KCAbramson
Автор

Awsome explaination !!! Simply the best!!

techrelated
Автор

this is excellent and clear. Thank you. I have a question. What if you are working on an enterprise application and there are tons of controllers, do you also put all type definitions in one file? thanks

pvchio