Create Your First Web API Using Visual Studio With C# Beginners Guide

Поделиться
HTML-код
  • Опубликовано: 13 июн 2024
  • Watch the updated video here: links.thedevlife.co/youtube/w...
    Important links
    INSTAGRAM: links.thedevlife.co/instagram...
    DISCORD: links.thedevlife.co/discord/t...
    FACEBOOK: links.thedevlife.co/facebook/...
    Learn how to create your first Web API project using ASP.NET in Visual Studio 2019. In this easy-to-follow video, we show how easily you can create your first RESTful API using Visual Studio with C#, taking advantage of .NET Core 3.1
    0:00 Introduction
    0:07 Install Visual Studio 2019
    1:09 Create Visual Studio Project
    3:30 Add Controller(s) in ASP.NET Project
    4:09 Create Controller Action in ASP.NET Project
    5:05 How Routing Works in ASP.NET
    6:54 How to Manage Nuget Packages
    8:42 How to Install Postman
    9:09 How to Use Postman to Test
    10:40 How to Use a Self-Signed Certificate with Postman
    11:35 How to Make an HTTP Post Request using Postman
    12:29 How to Accept JSON in your ASP.NET API
    13:49 Conclusion
    Music Credit to Pink Skies / user-363995690
    #thedevlife #webapi #aspnet #netcore #restapi #rest #restful
  • НаукаНаука

Комментарии • 92

  • @thedevlife
    @thedevlife  5 месяцев назад

    You might also be interested in learning the top reasons why self-taught developers fail -> ruclips.net/video/-_OQ8h9ts80/видео.htmlsi=9AZSIkZckVszMfCA

  • @traiantrante4211
    @traiantrante4211 2 года назад +17

    Thank you, man, this was a painless 30 minutes compared to a paifull 2 days of research prior to this. I can now get on with the project.

    • @thedevlife
      @thedevlife  2 года назад +1

      You are welcome. I’m glad the video helped you out. 👍

  • @husamhabbal1419
    @husamhabbal1419 3 года назад +15

    Thank you bro for this quick, short, easy to follow introduction which gives me a good idea about creating API. Keeeep going man.

    • @thedevlife
      @thedevlife  3 года назад

      Thank you, I appreciate the feedback. 🙏

  • @bismarksodre297
    @bismarksodre297 2 года назад +3

    Thank you, man, the best tutorial I've seen so far.

  • @sowmyas5606
    @sowmyas5606 3 года назад +4

    Thank you so much... After wasting lot of my time finally got perfect video ...

    • @thedevlife
      @thedevlife  3 года назад +1

      I’m glad I was able to help.

  • @automationtesting3149
    @automationtesting3149 3 года назад +2

    I am really finding it useful and am able to learn C# really well

    • @thedevlife
      @thedevlife  3 года назад

      that's great. Keeps us motivated to create more content.

  • @nicolewoolworth7530
    @nicolewoolworth7530 Год назад +1

    Thank you!! Painless and works.

    • @thedevlife
      @thedevlife  Год назад

      I’m glad it worked for you.

  • @matthewbaier766
    @matthewbaier766 2 года назад +12

    Good video
    In the future I think you can skip downloading visual studio since using API’s is already a more advance topic, so I think it’s safe to assume each person watching this video has visual studio downloaded

    • @thedevlife
      @thedevlife  2 года назад +6

      When I created the video I was debating whether that would make the video longer without adding any value. Thank you for your feedback.

  • @seijumimurasakibara5516
    @seijumimurasakibara5516 11 месяцев назад +1

    thank you for this! it makes the understanding easier!

    • @thedevlife
      @thedevlife  11 месяцев назад

      Thanks for letting me know, that motivates me to keep making more videos.

  • @AllAboutDataTechnology
    @AllAboutDataTechnology 6 месяцев назад +1

    good work, very clear and concise. Thanks!

    • @thedevlife
      @thedevlife  6 месяцев назад

      I’m glad you found this helpful.

  • @muhireroger7349
    @muhireroger7349 2 года назад +1

    Hahahha You had me on "Thanks for watching". That was original😂

  • @alfredoarsMont
    @alfredoarsMont 4 года назад +4

    Thanks Bro! It is a good video, I hope you can upload a video with a basic CRUD and a route as it you told us.

    • @thedevlife
      @thedevlife  4 года назад +1

      I’m planning to release that in the next week or two.

  • @danny11541
    @danny11541 2 года назад +1

    I learned more from your video than 4 hours of googling APIs

    • @thedevlife
      @thedevlife  2 года назад

      🙏🙏 thank you, you just made my day :)

  • @ts01121482
    @ts01121482 2 года назад

    thx, it is useful, i from Taiwan.

  • @giacomoraucci5819
    @giacomoraucci5819 3 года назад +4

    You mentioned that you may create a video that connects to a database. Has such a video been made using MS SQL Server? thanks.

    • @thedevlife
      @thedevlife  3 года назад

      Yes, here is the link to that video: ruclips.net/video/VtaBalFQcso/видео.html

  • @optimistms
    @optimistms Год назад

    Good and easy to follow, Thanks, one more thing, where one world is that very nice Desktop background?

  • @lilkrasz868
    @lilkrasz868 2 года назад

    its looks so easy how i see ;-; i learning my self 1.5 months and.. really see progress to understanding many things wow, its so cool!

    • @thedevlife
      @thedevlife  2 года назад

      It’s awesome that you are making progress. I love hearing that b

    • @thedevlife
      @thedevlife  2 года назад

      It’s awesome you are making progress. I like hearing that b

  • @gamertitan1501
    @gamertitan1501 Год назад

    Cant believe the way you are perfect

  • @BeastZzoBeast
    @BeastZzoBeast 4 года назад +2

    Nice video. Looking forward to more API and backend related videos.

    • @thedevlife
      @thedevlife  4 года назад

      Thank you. We’ll be working on those 👍

  • @hasbulla_rsa
    @hasbulla_rsa 3 года назад +4

    Like the background music!

  • @abbasgates9302
    @abbasgates9302 Год назад +1

    Thank you. The video quality should be higher so we can zoom in.

  • @PepsiMan42069
    @PepsiMan42069 2 года назад

    poggers tutorial broski

  • @christiangonzales1330
    @christiangonzales1330 2 года назад +1

    mine is not showing the controller folders. is this somthing i need to create? I cant even see it to click on it

  • @aniljose8613
    @aniljose8613 2 года назад

    Good one!. I would like to see to create Web API with basic Auth. If you can refer any video like, really appreciate

  • @codeodyssey
    @codeodyssey 4 года назад +1

    Good video 👍🏻

  • @kwstaslalaounis3212
    @kwstaslalaounis3212 Год назад +1

    Thank you i did very good job!!!

    • @thedevlife
      @thedevlife  Год назад +1

      I’m glad you liked the video.

  • @manjulaparameshwara283
    @manjulaparameshwara283 2 года назад

    Thank a lot. It's easy to understand. Please help me with this kind of short videos which is easy to follow and learn. God bless you.

    • @manjulaparameshwara283
      @manjulaparameshwara283 2 года назад

      Hi you have mentioned that we have to use api/hello. But controller name is api/HelloController right. How it is working with just api/hello. Kindly help me to understand. Thanks in advance.

    • @thedevlife
      @thedevlife  2 года назад +1

      That is part of the convention used in .NET. It automatically uses the word(s) before controller.

    • @manjulaparameshwara283
      @manjulaparameshwara283 2 года назад

      @@thedevlife Thanks :). how to understand and get the correct controller name.

  • @artorias6966
    @artorias6966 2 года назад +1

    This was a good tutorial, but it didn't work for me. I don't even have an Error. When i press "Send" nothing happens

  • @TheJimboCOD
    @TheJimboCOD 3 года назад +3

    I might be missing an installation but I don’t have the option to create a ‘ASP.NET Core Web Application’ when I create a new project

    • @thedevlife
      @thedevlife  3 года назад

      You might need to modify your visual studio installation.

    • @babyyoda1968
      @babyyoda1968 3 года назад

      It might be renamed to ASP.NET Core Web API. Choose that one. Basically any ASP.NET web application will do

    • @irissupercoolsy
      @irissupercoolsy 3 года назад

      It's probably just called ASP.NET Core Web Api

  • @carolinasilva4909
    @carolinasilva4909 2 года назад +1

    Hello thanks for the video. Very good. I have a question. How Can I deploy this kind of app in IIS Server?

    • @thedevlife
      @thedevlife  2 года назад

      Apologies for the late reply. Once you are ready you can deploy your API project/solution and you can copy and paste the files to the application you created in IIS.

  • @ingmarneple6072
    @ingmarneple6072 Год назад

    Hallo, when I try to ‘run’ the weather application without Chaning anything it asks me: dontnets wants to enter key “…..” in your keychain. But where can I find this password?

  • @IAce1
    @IAce1 2 года назад +1

    idk why i always have this, i followed it and instantly at the start when searching for "web" I get a bit different things and once I click on the most upper one because that's the closest one I get different files. I don't get controllers, I get Pages and some other scripts...
    Edit: I figured out how to make it work. Ty for the video!

  • @nigelnaicker7948
    @nigelnaicker7948 3 года назад

    great video

  • @lasindunuwanga5292
    @lasindunuwanga5292 3 года назад +1

    Awesome

    • @thedevlife
      @thedevlife  3 года назад

      Thank you 🙏 the new 2021 version will be out soon with database connections.

  • @navjotsingh2457
    @navjotsingh2457 Год назад

    Cool

  • @iloveallahsoomuch2292
    @iloveallahsoomuch2292 2 года назад

    What is postman for?

  • @hdwzidane
    @hdwzidane Год назад

    Thanks alot, this is truly for beginners like me :)

    • @thedevlife
      @thedevlife  Год назад

      I’m glad it helped.

    • @hdwzidane
      @hdwzidane Год назад

      @@thedevlife do you have any more videos about post method to SQL server? the API will get any values from sensor and insert the values to database

    • @iamchesco
      @iamchesco Год назад

      @@hdwzidane watch my API series, there is a video where I show how to do CRUD

    • @hdwzidane
      @hdwzidane Год назад

      @@iamchesco thanks alot.

  • @dddrrr7139
    @dddrrr7139 Год назад

    i dont see the weather api, could it be only on community?

    • @thedevlife
      @thedevlife  Год назад

      Did you choose minimal API when creating the project?

  • @zpropartygamer
    @zpropartygamer 10 месяцев назад +1

    mine didn't come with the controllers folder. I don't know what to do

    • @thedevlife
      @thedevlife  10 месяцев назад

      Things have changed a bit, try again and notice a checkbox that says minimal apis. You don’t want minimal APIs.

    • @zpropartygamer
      @zpropartygamer 10 месяцев назад

      @@thedevlife that doesn’t even show up as an option for me lol.

    • @zpropartygamer
      @zpropartygamer 10 месяцев назад

      My visual studio version is 2019 if that helps

  • @reynaldogareza3998
    @reynaldogareza3998 2 года назад

    Me watching this and had no idea whats going on ...but i still watching this because i want to become dev someday and start studying com sci nxt year...

    • @thedevlife
      @thedevlife  2 года назад

      Nice!! Keep working at it.

  • @kostassifa8052
    @kostassifa8052 3 года назад

    jesus christ i understood the basic api in 14 minutes

    • @thedevlife
      @thedevlife  3 года назад

      I’m glad you found the video helpful 🙏

  • @mbawuikestanley6930
    @mbawuikestanley6930 Год назад

    Shout up

  • @Tall-Cool-Drink
    @Tall-Cool-Drink 3 года назад +1

    Except for that "DAD" joke @ 3:24, this was a good video.
    ha ha ....

    • @thedevlife
      @thedevlife  3 года назад

      Just trying to be funny LOL

    • @Tall-Cool-Drink
      @Tall-Cool-Drink 3 года назад

      @@thedevlife
      Can you create a video to demonstrate creating an RESTful API using "Web Application (Model-View-Controller)" and Swagger?

    • @melissa.heying
      @melissa.heying 3 года назад

      That was the best part lol

  • @rish_31
    @rish_31 2 года назад

    To do 'Web_API Trial!,

  • @user-xq2cd1rj3v
    @user-xq2cd1rj3v Год назад

    It's time to hack pentagon 😎

  • @mw-cf5dr
    @mw-cf5dr Год назад

    This doesnt work for me, I put the api/hello in and cannot find the page.
    Also my ASP project did not start with a weatherForecast.cs

    • @thedevlife
      @thedevlife  Год назад +1

      Which version of Visual Studio are you running?

  • @fooballers7883
    @fooballers7883 8 месяцев назад +1

    lose the music... good video other wise.