ASP.NET Core 5 & 3 & 2.2 REST API Tutorial 1 - Setup and Swagger configuration

preview_player
Показать описание

Hello everybody I'm Nick and in this video we will start setting up a REST API and configuring Swagger.

Social media:

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

I´m on Dotnet Core 3.1 and had to change the configuration (AddSwaggerGen) to: x.SwaggerDoc("v1", new OpenApiInfo { Title = "Title of API", Version = "v1" });


Thank You for a very good tutorial series!

BristlyBright
Автор

Nick - this series is the best and most complete asp net core web api series I have found. Thanks so much for it. You keep it simple but still go beyond the basics and illustrate building web APIs with best practices. Thank you!

pankajchamria
Автор

Νικολα πραγματικά έχεις κανει πολύ καλή δουλειά στα tutorial.

athanasmb
Автор

Hi Nick!
First of all, thanks for the knowledge sharing! You're the best YouTuber for this content that I ever seen and I consume a lot of YouTube tech channels/videos.
I'm seeing this video in 2022 but I already saw most of your videos.
Continue the good work.
Thanks.

pncsoares
Автор

For people who had same error like me on .NET core 3.0 after build:

"(Error while validating the service descriptor 'ServiceType: Lifetime: Transient ImplementationType: Failed to compare two elements in the array.)"


You can install Swashbuckle.AspNetCore -Version 5.0.0-rc instead of 4.0.1 version like on video. Here is how to install it by console:




and change line from
x.SwaggerDoc("v1", new Info
to
x.SwaggerDoc("v1", new


i hope it will help u


btw. thanks for great guide :)

nitze
Автор

This is EXACTLY what I need right now. Thanks so much for all your hard work putting this together. I'll be watching and coding along with all of these videos.

WarrenGarabrandt
Автор

I would say it would be the best tutorial in .net core. Thanks . Save me a lot of time. You should also publish in Udemy

renilbabu
Автор

By far the best Dotnet tutorial serie I have seen so far! Thank you!
Perfect tempo and easy to understand explanations even for someone who is not used to C# and Dotnet.

The only think I would recommend/wish for future videos is to lower the screen resolution (not only zoom in on a single file).
It's not as pleasant for you to work with, but it's easier for the viewer to see everything (The solution sidebar is still tiny even tho you zoom in on the class file)

mikaelnilsson
Автор

i follow same steps on the video and on 11:02 i got error :
Severity Code Description Project File Line Suppression State
Error CS1061 'SwaggerOptions' does not contain a definition for 'JsonRoute' and no accessible extension method 'JsonRoute' accepting a first argument of type 'SwaggerOptions' could be found (are you missing a using directive or an assembly reference?) TestRestApi 58 Active

Hicham_SaAh
Автор

Thank you so much nick for sharing knowledge with the community ❤️

ashishverma
Автор

Thank you so much. Can't described in words how helpful it was.

mithunkumarroy
Автор

Thank you, Nick. This is the most comprehensive tutorial I ever have seen.

mrivyd
Автор

Your content is very good. Please increase the font size or zoom levels to make easier watching it on big screens.

adityashinde
Автор

Hey Chapsas! Thanks, for everything. X

spikyspam
Автор

You should make more videos!! Excelente course! :D

joseroman
Автор

For the love of all tht is lovely, ZOOM IN.

Otherwise, grat work. Thank you forthe awesome tutorial

roostermaind
Автор

I checked all the videos it mostly shows that you are a good programmer however they are very bad for people learning which is I believe the goal of those videos. It is a mass of coding going very fast and without any explanations.

marcdurtal
Автор

Thanks Nick, the series is too good. great work bro.

shuvo
Автор

i am facing a problem.
option.RouteTemplate = swaggerOptions.JsonRoute
in this line there is an error showing
Error CS1061 'SwaggerOptions' does not contain a definition for 'JsonRoute' and no accessible extension method 'JsonRoute' accepting a first argument of type 'SwaggerOptions' could be found (are you missing a using directive or an assembly reference?)
what should i do?

reactvscode
Автор

in Startup.cs, which one dependency you use? the TweetBook.Option or if I use two of them, dotnet core is confused (aka ambiguous), if I only use TweetBook.Option, I cannot use option.SwaggerDoc("v1", new Info{Title = "TweetBook", Version = "v1"}); . Would you mind help me please? Thank you in advance.

thomaspotterdotexe