Build a RESTful API in ASP.NET 6.0 in 9 Steps!

Поділитися
Вставка
  • Опубліковано 11 січ 2025

КОМЕНТАРІ • 69

  • @MortezaMadadi
    @MortezaMadadi 5 місяців тому +14

    Unlike other videos wasting the time on UA-cam, your video is short, useful, and right to the point. Thank you!

  • @robertmurrell3852
    @robertmurrell3852 Рік тому +13

    I can't tell you how long I've been looking for a resource to teach me how to build an API like I didn't already know how. Thank you so much for this!

  • @brittosmonteiro
    @brittosmonteiro 4 місяці тому +4

    I'm a frontend guy who had never had experience with C#. This tutorial was simply amazing. I followed the steps and it's working pretty fine. Thank you so much.

  • @Kirochii
    @Kirochii Місяць тому +1

    Dude. I've been trying my hardest to find a concise to the point video on APIs with a proper explanation and how they're designed, worked, etc on a beginner level. You're the first one I managed to find that not only explained it but actually simplified the whole thing. Thank you so much.

  • @tutorialsEU
    @tutorialsEU  2 роки тому +4

    🚀C# Progress Academy - Skyrocket your C# skills with the ultimate course bundle: academy.tutorials.eu/p/csharp-progress-academy

    • @hassanqayyum3134
      @hassanqayyum3134 2 роки тому +1

      make scalable and secure rest API in ASP.Net 6 by following best practices and Architectural Principles.

  • @noetovar5
    @noetovar5 2 місяці тому +1

    To the point and easy to understand. I appreciate how well you explain the steps that are easy to follow. thank you.

  • @dragonfalcon8474
    @dragonfalcon8474 2 роки тому +11

    This was actually very helpful. A nice overview, of a subject that can be complex depending on the scale of the project.

  • @SheCreatesGames
    @SheCreatesGames 2 роки тому +4

    I really like how simple and useful this is! Your explanations made RESTful API so easy to understand

  • @Tty490
    @Tty490 Рік тому +2

    Thank you for the nice teaching. I had watched another longer video before this one, so was able to understand better than a newcomer would. I had to slow down the video though since it was too fast for me. suggestion - If possible please add a description of what Swagger is and what it does. Thanks

  • @vaidasrackauskas2371
    @vaidasrackauskas2371 2 роки тому +2

    The fastest and simplest explanation I've seen. Thank you!

  • @kopilkaiser8991
    @kopilkaiser8991 Рік тому

    Best teacher in the industry ⭐️👏

  • @estar500
    @estar500 Рік тому +2

    Excellent video, I especially like how short and to the point it is.

  • @weamhaleemi4984
    @weamhaleemi4984 2 роки тому +2

    Thank you ! super beneficial in just 12 minutes

  • @publicalias8172
    @publicalias8172 Рік тому

    Really like this style of video. It may not be for absolute beginners how to setup the IDE etc- but there are so many videos covering those topics, we need more hands-on THIS IS HOW TO DO IT videos! lol

  • @中国彭延超
    @中国彭延超 5 місяців тому

    Short and nice, suitable for me!

  • @arsarsars1able
    @arsarsars1able 2 роки тому +1

    Helpfull video. Thanks and love to watch more to increase my knowledge.
    If someone was a bignner he can easy learn from this video.

  • @jeetendraprasadPune
    @jeetendraprasadPune 2 роки тому +3

    Nice and Simple for beginners.😃

  • @prohacker5086
    @prohacker5086 5 місяців тому

    Your intro is very energetic I'm glad I habe clicked on this video

  • @rehamalbulushi520
    @rehamalbulushi520 Рік тому

    your efforts are highly appreciated

  • @ramseykarr6870
    @ramseykarr6870 2 роки тому +1

    Very good tutorial... keep the videos coming....🙏

  • @KwidzaxD
    @KwidzaxD Рік тому +4

    One of the principles of the Restful api is not to use verbs in the Uri so instead of /GetAll it should be /all

  • @srinithipanand7476
    @srinithipanand7476 9 місяців тому

    You really helped me out for my work. It was really really really a great help. God Bless.

  • @3am.D3v
    @3am.D3v Рік тому

    Tks , your lesson so ez to follow .

  • @jasper5016
    @jasper5016 Рік тому +1

    This is a really good video. I feel that MS unnecessarily made that DbCotext creation lengthy.

  • @kevnss
    @kevnss 2 місяці тому

    This is definitely one of the best videos on this apim. One quick question, is there any example video or a repo that does pretty much similar task but using an existing Azure SQL DB as back end database?

  • @FG-uk3in
    @FG-uk3in Рік тому

    Excellent and very helpful video. Thanks a lot.

  • @1983jll
    @1983jll Рік тому

    Thank you very much your tutorial makes it easy and also pretty understandable. I can now provide basic API in C#

  • @TaiwoAdefala
    @TaiwoAdefala 2 роки тому +1

    Thank you, very helpful.... Can you help create a tutorial on how to consume a web service to be used in web api application?

  • @gustigusti2094
    @gustigusti2094 Рік тому

    Compact and easy to understand. Thanks

  • @yasirsaddiqui8171
    @yasirsaddiqui8171 2 роки тому +2

    Thank you for uploading an easy and quick api learning tutorial. Now i would appreciate if you make another video and connect the same api with sql server db using stored procedure with authentication and authorization. Also the update not working please check.

  • @toast_salad
    @toast_salad Рік тому

    you did a great job on this video thank you

  • @jordantrajkov9549
    @jordantrajkov9549 6 місяців тому +1

    Love it thank so much

  • @eliy5550
    @eliy5550 2 роки тому

    AWESOME TUTORIAL

  • @ryansmith6179
    @ryansmith6179 10 місяців тому

    Hi nice stuff a little bit fast but a good starting point. Thanks

  • @a2011q
    @a2011q 2 роки тому

    Hi, thank you so much, content is very helpfull.

  • @reetyt2017
    @reetyt2017 2 роки тому +2

    A very simple to create API. One question though: is it ok to access directly the database from controller without using a unit of work or a data transfer object?

    • @tutorialsEU
      @tutorialsEU  2 роки тому

      Hi, ideally you could create a data-access-layer and a CRUD-interface for accessing data but if you want to keep it easy for simple usage you can access the db directly from controller :-)

  • @Mcokumu
    @Mcokumu 6 місяців тому

    thank you so much bro

  • @Nolly_CIA
    @Nolly_CIA 2 роки тому

    Vielen dank Jannick

  • @charlesssgraham
    @charlesssgraham Рік тому

    Awesome! 🔥

  • @Thomaskbird
    @Thomaskbird Рік тому +1

    Great video, I've been running this code and trying to get the update to work, it seems as though everything is passed correctly but it never updates. Would you be able to provide any feedback on what could be causing this?

  • @riccarrasquilla379
    @riccarrasquilla379 Рік тому

    thanks for the video

  • @theodorn
    @theodorn 2 роки тому +1

    Danke schön!

  • @Rishraff
    @Rishraff 4 місяці тому

    That core template is not available anymore. What do we use?

  • @nourazahraaharajli1800
    @nourazahraaharajli1800 6 місяців тому

    What if I wanted to use sql server for the database connection rather than an in memory one?

  • @rabinkos
    @rabinkos 2 роки тому +1

    Hi I really enjoyed the video and learned a lot. Alas you got a bug.
    In CreateEdit method you cannot edit data, change context by just _context.SaveChanges() since you are not sending the new value back to db.

    • @guardadotube
      @guardadotube 2 роки тому +1

      I had to add a line of code to detach the state prior to modifying the booking. As below:
      [HttpPost]
      public JsonResult CreateEdit(HotelBooking booking)
      {
      if (booking.Id == 0)
      {
      _context.Bookings.Add(booking);
      }
      else
      {
      var bookingInDb = _context.Bookings.Find(booking.Id);
      if (bookingInDb == null)
      return new JsonResult(NotFound());
      _context.Entry(bookingInDb).State = Microsoft.EntityFrameworkCore.EntityState.Detached;
      bookingInDb = booking;
      _context.Update(bookingInDb);
      }
      _context.SaveChanges();
      return new JsonResult(Ok(booking));
      }//end CreateEdit

  • @sejlaskrijelj8326
    @sejlaskrijelj8326 Місяць тому

    when we test the API, why does the ID 8 not exist? We did not put a range. I am a little bit confused it is my first time with stuff like this

  • @ahmadzrein1867
    @ahmadzrein1867 Рік тому

    thanks is there a video to work api restfull with .net maui

  • @StefanoGabriele1983
    @StefanoGabriele1983 Рік тому

    I don’t think is right to respond 200 and inside the json a 404: shouldn’t we respond 404 as a code result?

  • @alpaydemirr
    @alpaydemirr 2 роки тому

    can i use this api in reactnative

  • @usamaafzal5482
    @usamaafzal5482 2 роки тому +1

    Saved My Day

  • @chriscalver8595
    @chriscalver8595 10 місяців тому

    Awesome

  • @Wild_cat_lovers
    @Wild_cat_lovers Рік тому +1

    But you didn't told you crested a folder named as data

  • @BrowsingScholar
    @BrowsingScholar Місяць тому

    You used swagger but did not explain how to use it. I am now confused more.

    • @BrowsingScholar
      @BrowsingScholar Місяць тому

      Also, does it matter if I use SQL server or MySQL for the in memory database?

  • @asteekgoswami7733
    @asteekgoswami7733 Рік тому

    sir please make a video of restful api in asp.net with mongodb 🙏🥺🥺

  • @Rishraff
    @Rishraff 4 місяці тому

    Outdated and does not work.

  • @Rishraff
    @Rishraff 4 місяці тому

    This tutorial goes way too fast. Also show us what we are going to be making at the start of the video.

  • @leonxrdo6561
    @leonxrdo6561 2 роки тому

    Eiskalt von Coding mit Jannick geklaut

  • @stickyman18
    @stickyman18 10 місяців тому

    horrible

  • @maksymilian-zajac
    @maksymilian-zajac Рік тому

    you should delete the video

  • @paulpich69
    @paulpich69 2 роки тому

    When I get to entering using Microsoft.EntityFrameworkCore; it tells highlights that namespace in red. Do you need to install any prerequisite package?

  • @hateem8287
    @hateem8287 Рік тому +2

    BookingInDb = booking; won't work since they're reference types C:
    we can do this instead:
    bookingInDb.RoomNumbner = booking.RoomNumbner;
    bookingInDb.ClientName = booking.ClientName;
    or simply: _context.Bookings.Update(booking);

  • @proqnex
    @proqnex 2 роки тому

    For anyone update wasn't work use this.
    if (booking.Id == 0)
    {
    _context.Bookings.Add(booking);
    }else if(booking.Id == null)
    {
    return new JsonResult(NotFound());
    }
    else
    {
    _context.Bookings.Update(booking);
    }
    _context.SaveChanges();
    return new JsonResult(Ok(booking));