Industry Level REST API using .NET 6 - Tutorial for Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ต.ค. 2024

ความคิดเห็น • 215

  • @ipoop4359
    @ipoop4359 ปีที่แล้ว +29

    This tutorial is more for people who have experience in building RESTFULL applications. I used to make them in javascript and now I switched to C# so its more like a refresher for the syntax

    • @memoryleakerz
      @memoryleakerz 3 หลายเดือนก่อน +1

      Hell yeah! same here, from TypeScript to C#, which feels a bit more natual than JS -> C#, but I cannot believe how rich the .NET Framework is!
      And how is it from the first line of code, has the feeling to that it was built for industry standards. Just a great way of building APIs

  • @sepi4
    @sepi4 11 หลายเดือนก่อน +13

    Wow that teacher is in a hurry! Would nice to see this without copilot and with more explanations.

  • @broutality
    @broutality ปีที่แล้ว +111

    Copilot is fun and all, but on a tutorial for beginners it's really annoying pausing the video all the time to go back and check what you wrote because it suggested it and you moved on :)
    Really nice tutorial!!

    • @aronreis
      @aronreis ปีที่แล้ว +7

      I actually had to open his repository to know what exactly was on the screen because he doesn't use word wrap

    • @mikicerise6250
      @mikicerise6250 ปีที่แล้ว +7

      Yeah. You can follow if you're just beginner with REST API stuff, not C#, but basically a lot of namespaces and boilerplate code gets generated for him very fast by his AI assistant. Personally I think it's better to write it all out yourself when you're doing katas like this. It's kind of worth it though to hear him say "yeeeessssssss" every time he approves of some AI suggestion. 😍

    • @zZzlBoredlzZz
      @zZzlBoredlzZz ปีที่แล้ว +1

      You can still pause and type the block. The video would be quite a bit longer if he had to type it all out every time. It's not as bad as a time skip where suddenly there's 50 extra lines of code.

  • @amantinband
    @amantinband 2 ปีที่แล้ว +40

    This was a fun one to make. Really eager to hear what you think! 🤙🏼

    • @jan0195
      @jan0195 2 ปีที่แล้ว +2

      This is the best video on the topic that I've seen.

    • @TuanAnhVan-z2j
      @TuanAnhVan-z2j 5 หลายเดือนก่อน

      please, can i have the extension that open a window and you select options to generate code for Constructors,.. and other action sir? thank you

    • @TuanAnhVan-z2j
      @TuanAnhVan-z2j 5 หลายเดือนก่อน

      FOund it guys. I think it is the IntelliCode hotkey that he used which is Ctrl + .

  • @csilipo
    @csilipo 2 ปีที่แล้ว +18

    Hi, I like the way you quickly go thru the tutorial. Some presenters spend hrs on just one concept. Tks
    Carlo

  • @kingofhiskingdom4616
    @kingofhiskingdom4616 2 ปีที่แล้ว +20

    Congratulations on 6M subscribers . The family is getting bigger day after day 🌹😍😍

  • @brcdube
    @brcdube 2 ปีที่แล้ว +15

    .Net 6 and Spring Boot are my favourite backend frameworks

    • @fieryscorpion
      @fieryscorpion 2 ปีที่แล้ว +7

      .NET is much more enjoyable to develop with compared to Java/ Spring tbh.

  • @andregraes
    @andregraes ปีที่แล้ว +5

    it's the first time I set the speed of the video to 75%! But it's a great content! Thank you!

  • @overcadostudios
    @overcadostudios ปีที่แล้ว +6

    Thank you so much. I was looking for this exact topic and now I have an API I can use for my game studio. It's not breakfasts but the concept is exactly the same. It's definitely a good amount of work to get this much done and we haven't even talked about the database part or securing the endpoints. Looking forward to that.

  • @sandipgupta4506
    @sandipgupta4506 3 หลายเดือนก่อน

    I am new here ..
    And everything is just keep on going.... nothing is explained properly....
    Most useful for experienced ones.

  • @srdjus4064
    @srdjus4064 3 หลายเดือนก่อน

    Finally a video with nice pace, and without spending too much time on explaining basic stuff.

  • @romanemul1
    @romanemul1 2 ปีที่แล้ว +80

    I think this video is only for refresher purposes. Nothing new can be learned since nothing is explained.

  • @DivyaGuda
    @DivyaGuda 4 หลายเดือนก่อน

    Thank you so much for this tutorial. It was great creating my first api and i enjoyed it alot. The way you explained was very nice and on to the point.❤

  • @tgfhtgfh4309
    @tgfhtgfh4309 2 ปีที่แล้ว +44

    Learning APIs from Tyson Fury himself! What a day!

  • @ItsMePhoebe
    @ItsMePhoebe 2 ปีที่แล้ว +11

    The timing on this is perfect, thank you!

  • @私はBRです
    @私はBRです 2 ปีที่แล้ว +5

    My congratulations to 6 million subscribers. Your channel is so cool🔥❤️

  • @Artemisexe-gx4rt
    @Artemisexe-gx4rt ปีที่แล้ว +56

    I think it would have been helpful if he went over the extensions he had installed first, or at least listed them in the description, because his files have some code auto generated in them and it would have been helpful to be able to have a similar experience instead of cutting a pasting from the repo files each time.

    • @luanassis9842
      @luanassis9842 ปีที่แล้ว +5

      Agree

    • @robertguzman6462
      @robertguzman6462 11 หลายเดือนก่อน +1

      Look for his youtube channel. He has already made a video dedicate to the extensions he uses

  • @bakihz7997
    @bakihz7997 2 ปีที่แล้ว +12

    Great video. Although I can't follow your shortcuts. Which shortcuts do you use? Can you point me to where I can learn these shortcuts? Which extension?

  • @ibrahim-SO
    @ibrahim-SO ปีที่แล้ว +4

    Reminder for 21:52: if you create a class named :Breakfast then name the class Breakfast, this can cause compiler error. I get the error and fixed by changing the class name

  • @seanmui8772
    @seanmui8772 2 ปีที่แล้ว +2

    I've just seen real software engineering bare naked.. Thanks for the efforts to make this video.

    • @amantinband
      @amantinband 2 ปีที่แล้ว +2

      Thanks, Sean 😊

    • @seanmui8772
      @seanmui8772 2 ปีที่แล้ว

      @@amantinband Following you via your TH-cam Channel.

  • @pritpalsingh5927
    @pritpalsingh5927 ปีที่แล้ว +1

    all i will remember from this tutorial is that every time the code get suggested, he says YES!!! , but its good for beginner point of view, thanks for the video

  • @IcedCupcakes
    @IcedCupcakes 11 หลายเดือนก่อน +1

    Not for complete beginner programmers but for C# and .NET beginners with other programming experience. I have frontend experience and I'm pausing a lot to google stuff lol

  • @felixliles9389
    @felixliles9389 4 หลายเดือนก่อน +1

    Well done

  • @rohan-san8148
    @rohan-san8148 3 หลายเดือนก่อน

    thank you so much for this tutorial. can you make a tutorial, about how can we undo and redo the deleted and updated function in c# .net.

  • @shockin95
    @shockin95 7 หลายเดือนก่อน

    Well, I guess this one is more appropriated for those who are already familiar with high-typing languages like Java for example. I've been building a few RESTful apps in Java using Spring and it really shocked me how similar both syntaxes actually are.

    • @RealValkor
      @RealValkor 5 หลายเดือนก่อน

      Same here, started learning java recently and it's shocking how similar it is to C# lol.

  • @adelajami8731
    @adelajami8731 ปีที่แล้ว +1

    Thanks a lot for the valuable information, it is really nice. i would say as i am coming from php Laravel background, Laravel is more advanced in terms of how it is ready to handle and map the request using FormRequest Class for data validation, data rules, and check user authorization, same goes for handling RestFul results, for instance, 404 error, Laravel ORM Eloquent has findOrFail() to return 404 directly. Thanks again and looking forward to a new video. Happy to do joint video to compare between asp and laravel

  • @JuniorMayhe
    @JuniorMayhe ปีที่แล้ว +4

    Thanks for sharing this. My concern here is that you have developed a tightly coupled solution heavily dependent on your ErrorOr package. If there arises a need to remove or replace this package, it could impose a substantial workload on developers. Additionally, adding this package appears to complicate the solution, making it harder to maintain. It is essential to notify viewers at the beginning of the video that the solution presented relies entirely on a third-party package. 😓😓

    • @sebastianmedina5106
      @sebastianmedina5106 11 หลายเดือนก่อน

      agree, It is sad to know that it did not conform to a standard and that we will not see a code like this outside.

  • @sohammahi7621
    @sohammahi7621 2 ปีที่แล้ว +6

    Very Good Knowledge

    • @amantinband
      @amantinband 2 ปีที่แล้ว

      Thanks, Soham 🙏

    • @dhanviakash726
      @dhanviakash726 2 ปีที่แล้ว

      Can I know from where can I learn .net for web development in vs code not visual studio, because my lapy does not support visual studio

  • @Hemecan.
    @Hemecan. 2 ปีที่แล้ว +1

    Hello from Turkey 🇹🇷

  • @CloudNey
    @CloudNey 2 ปีที่แล้ว +6

    Amazing!!

    • @amantinband
      @amantinband 2 ปีที่แล้ว +1

      Thanks, CloudNey!

  • @dylan-j-gerrits
    @dylan-j-gerrits 2 ปีที่แล้ว +6

    The video is good, but it lacks of explanation about why and what you are doing something.

  • @loryteck
    @loryteck ปีที่แล้ว +8

    Sacrificing a lot of readability over some fancy sophisticate code, which make sense to people who use c# for a long time(maybe) but not for begginers or even intermediate developers, sometimes the best code is the way the whole team write code, not because you wrote 5 lines less is better. Just my opinion, discovered a lot of thing that I didn't know about but after all not sure I will implement them, as took me time to understand them while I want my code to be understood in 5 seconds when you read it.

    • @andtv1992
      @andtv1992 ปีที่แล้ว

      Do you how to use that syntax? VSCode highlights all the code as error when I use that syntax and I haven't found a way to fix it. Am I missing any extension or something?

  • @LegitoTV
    @LegitoTV 2 ปีที่แล้ว

    Thank you for another great video, can't wait to finish it!

  • @rayankhan12
    @rayankhan12 2 ปีที่แล้ว +9

    I really want to follow this course but it doesn't mention the prerequisites (which every course should) so as a beginner to programming, I don't want to waste my time watching something I don't understand :)

    • @amantinband
      @amantinband 2 ปีที่แล้ว +10

      Ooh, that's great feedback. Thanks, Rayan!
      Tech prerequisites:
      C#/.NET, JSON, HTTP, client-server communication
      Software prerequistes:
      .NET 6 SDK, VSCode
      I have a tutorial for setting VSCode similar to what I have in the video: th-cam.com/video/m9HvsB1-hAo/w-d-xo.html

    • @bakihz7997
      @bakihz7997 2 ปีที่แล้ว

      @@amantinband Thank you so much

  • @bobsort
    @bobsort 2 ปีที่แล้ว +11

    With windows 95, everyone was so excited that they don't have to stare into a black screen of text and don't have to write an entire line of commands to do a simple task like openning an editor. These days, seems developers are going retro all the way, and like to type in every command to do things that you can do with just a right click or a keyboard shortcut.
    Also I wouldn't suggest surrounding blocks of code with braces unless it is really necessary, you are teaching a thing to new developers that will cause days of headache for seniors to debug.
    As for data store, when I teach juniors, I always put the data in a different class that does the crud internally (DAL concept), then call methods of that class instead to avoid distracting them from what actually are trying to learn. (your storage is inside your service code

    • @oziousmegasus9201
      @oziousmegasus9201 2 ปีที่แล้ว +2

      personally, knowing how buttons of IDEs do the works is nessesary. Juniors then can use IDEs without questioning what lays under the hood. Furthermore, devs should know how to use terminal.

  • @Omerfr31
    @Omerfr31 2 ปีที่แล้ว +2

    Great tutorial!

  • @n.o.s.e.-nostressenglish4556
    @n.o.s.e.-nostressenglish4556 2 ปีที่แล้ว +1

    good, thanks! I need to learn REST API

  • @sharecodecamp
    @sharecodecamp 2 ปีที่แล้ว +3

    Awesome work !.. 🥰🥰

  • @faris.abuali
    @faris.abuali ปีที่แล้ว

    Much informative!
    Thanks

  • @mariadelosangeleshernandez2698
    @mariadelosangeleshernandez2698 2 ปีที่แล้ว +1

    Thank you, it works perfect!

  • @Roads_india
    @Roads_india 2 ปีที่แล้ว +1

    Industry level. Thats what i need

  • @ofio
    @ofio ปีที่แล้ว +2

    Do yourself a favor and put playback speed back to normal @ 0.75.

  • @bijianwu5124
    @bijianwu5124 ปีที่แล้ว

    simply amazing! thanks for it

  • @phunguyentrong722
    @phunguyentrong722 2 ปีที่แล้ว

    best, hope someday php also have industry-level tutorials like this

    • @fieryscorpion
      @fieryscorpion 2 ปีที่แล้ว

      .NET is much more enjoyable to develop with compared to PHP, Java, Python etc.

    • @name_less227
      @name_less227 2 ปีที่แล้ว

      @@fieryscorpion .NET is a framework, not a language.

  • @sravanthipulakhandam-l3h
    @sravanthipulakhandam-l3h ปีที่แล้ว +1

    Very good content, I have a question- why design patterns not implemented

  • @TheStringBreaker
    @TheStringBreaker 2 ปีที่แล้ว

    *Phenomenal video!*

  • @mohsinafzal3852
    @mohsinafzal3852 ปีที่แล้ว +1

    After watching 15 minutes i am like.. kehna kya chahte ho.. however it's a good work sir but should be more descriptive.. especially for shortcuts

  • @dev0_018
    @dev0_018 ปีที่แล้ว

    very well explained, thax for sharing

  • @bernardoapelt
    @bernardoapelt 8 หลายเดือนก่อน

    Amazing!!!, thank a lot

  • @piertFB
    @piertFB 2 ปีที่แล้ว +5

    dudes whats the name od that extension that autocomplete properties or constructors? :/
    PD.
    I like this course

    • @digitalfragrant
      @digitalfragrant 8 หลายเดือนก่อน

      it is autopilot I guess

  • @mr.bezlimix3207
    @mr.bezlimix3207 6 หลายเดือนก่อน

    bro, u best

  • @Furki4_4
    @Furki4_4 ปีที่แล้ว

    I love you freeCodeCamp, just... just wanted to say that 😊

  • @aalbero
    @aalbero 2 ปีที่แล้ว +4

    This video was amazing, I learned so much, thank you!
    I have one question regarding the From factory methods. Are they breaking the "correct" dependency direction? where your Model only needs to know about itself?
    These seem very handy as you reuse code of creating a breakfast form a request. But now your Model needs to know about the Create and Upsert request records. And if you keep adding more types to create a breakfast from, your model needs to keep adding factory methods and have dependencies on all those external types. Could that be a problem? If so, what coudl be a solution to it?

  • @Duelweb
    @Duelweb 2 ปีที่แล้ว

    Great video !! Thank you!!

  • @fieryscorpion
    @fieryscorpion 2 ปีที่แล้ว

    Amazing content. Thanks!

  • @gabriel-torres3077
    @gabriel-torres3077 ปีที่แล้ว +8

    What extensions do you use on vscode?

  • @NotAHomelessGamer
    @NotAHomelessGamer ปีที่แล้ว +1

    What template are we suppose to use for these projects in visual studio 2022? Why are you pasting the code for the api in a tutorial video for creating an api at 6:57?

  • @ToMontrond
    @ToMontrond ปีที่แล้ว

    Thank you for sharing your knowledge. I have one question - why did you create a new entity (breakfast) using the PUT method?

  • @ArmoFreekickerz
    @ArmoFreekickerz ปีที่แล้ว

    which terminal is he using ?
    looks really nice

  • @StratOnFire
    @StratOnFire ปีที่แล้ว

    Thanks so much!

  • @ruslanlevkov7484
    @ruslanlevkov7484 2 ปีที่แล้ว +2

    What terminal do you use? Please share the settings for it.

  • @VincentGroenewold
    @VincentGroenewold 2 ปีที่แล้ว +4

    Someone is displaying features of some presentation software I think. :)

    • @amantinband
      @amantinband 2 ปีที่แล้ว +2

      Haha It's figma 😎

  • @automationguy5600
    @automationguy5600 2 ปีที่แล้ว

    downloaded, it worked, the author ty

  • @marcoitalia97
    @marcoitalia97 ปีที่แล้ว

    Thanks mate. 💌

  • @mikicerise6250
    @mikicerise6250 ปีที่แล้ว

    You say the sexiest "yes" I've ever heard. It's practically ASMR. 😂

  • @AveN7ers
    @AveN7ers 2 ปีที่แล้ว +29

    It's a bit fast not gonna lie. I find myself pausing and rewinding every 5 seconds just to keep up. Either explain more what you're doing and why or label it as an intermediate/advanced course not a beginners course.

    • @hervinsonsamson1531
      @hervinsonsamson1531 2 ปีที่แล้ว +1

      I agree

    • @ameykulkarni8165
      @ameykulkarni8165 2 ปีที่แล้ว +1

      Absolutely true.

    • @christian.mar.garcia
      @christian.mar.garcia ปีที่แล้ว +7

      Well, the title says industry level, so I think that is not beginner level.

    • @AbdullahWins
      @AbdullahWins 6 หลายเดือนก่อน +4

      people will complain even if it's free.😅
      just slow down the video, take notes, research what you don't understand.
      this is how you self learn. and first of all, learn to appreciate what you get for free. 🙆🏻

    • @thewalrusdragon9579
      @thewalrusdragon9579 4 หลายเดือนก่อน

      @@AbdullahWinsit’s a fair criticism of the lesson though. You think freeCodeCamp puts all this time putting these together but don’t care about the user feedback just because they provide it for free? They still make money off of site traffic and views, so they definitely care to make sure their target audience happy with their product. If it’s not “too fast” for you then great, that’s good for you, doesn’t mean you get to be the gatekeeper of criticism on their platform.

  • @ajbali
    @ajbali 2 ปีที่แล้ว +1

    What code completion extension are you using? It is so cool!

  • @lifeisbeautifu1
    @lifeisbeautifu1 11 หลายเดือนก่อน

    Amazing.

  • @keshav.mishra
    @keshav.mishra 2 ปีที่แล้ว +1

    Pleasure that we have freecode camp xD

  • @abdulpianist9731
    @abdulpianist9731 ปีที่แล้ว

    short and crisp

  • @kopilkaiser8991
    @kopilkaiser8991 ปีที่แล้ว +1

    I always watch teaching tutorial videos. Your programming style is polished, understandable, and you are able to explain simplifying the concepts 👌🏼

  • @invictuz4803
    @invictuz4803 ปีที่แล้ว +1

    I know it's not important but I really don't get the use case of this app. Private breakfast events?

  • @quachhengtony7651
    @quachhengtony7651 ปีที่แล้ว +1

    Haha love the "....yes"

  • @edjogu
    @edjogu 2 ปีที่แล้ว +4

    Maravilloso!!!! One question, in which application did you make the Backend Service Architecture diagram? Thanks :)

  • @brijeshmorya9737
    @brijeshmorya9737 2 ปีที่แล้ว +4

    Good content

    • @amantinband
      @amantinband 2 ปีที่แล้ว +1

      Thanks, Brijesh 🤙

  • @davidhoong3817
    @davidhoong3817 2 ปีที่แล้ว +2

    what's your used extension for IntelliSens ecode completion? It is pretty cool! I want it.

  • @sydguitar99
    @sydguitar99 ปีที่แล้ว +2

    So what program is he using when creating the project and solution?

  • @yoanbello6891
    @yoanbello6891 2 ปีที่แล้ว +2

    Is this tutorial for beginners in the world of API?

    • @amantinband
      @amantinband 2 ปีที่แล้ว

      Hi Yoan, I was hoping to create a tutorial that is suitable also for beginners in the world of web APIs. Would love to hear your feedback and if the various visuals help understand the concepts 🙂

    • @yoanbello6891
      @yoanbello6891 2 ปีที่แล้ว +3

      @@amantinband i think is not si easy. Very fast pace

  • @thatcipher
    @thatcipher ปีที่แล้ว

    Totally offtopic and dont know if its already asked here
    But how do you setup the terminal like that?

  • @itexpert4193
    @itexpert4193 2 ปีที่แล้ว +2

    great

  • @MrCalletennis
    @MrCalletennis 4 หลายเดือนก่อน +1

    Where is the definition of the api that just randomly gets pasted out of nowhere?

  • @nesa6582
    @nesa6582 ปีที่แล้ว

    So if i was doing some project following this architecture and i was to implement Ef core, i would install it in BBF.Contracts folder??????

  • @quachhengtony7651
    @quachhengtony7651 2 ปีที่แล้ว +2

    .NET goated

  • @YBXtreminal
    @YBXtreminal 2 ปีที่แล้ว +2

    יוחאי ימלך

  • @2005Azm
    @2005Azm 2 ปีที่แล้ว

    Wonderful

  • @hansregli8678
    @hansregli8678 11 หลายเดือนก่อน +2

    The ErrorOr type is a sign of totally overengineering. Think about what you are really doing. Because you think you need to combine two results, the error code and the object, you package those into a new object which will use up some server power. Not necessary at all. Nobody requests that the Service must return all data in the result. You can simply write 'public ErrorCode GetBreakfast(out Breakfast)'. If everything is ok return Ok and the breakfast, if not ok return 'NotFound' or another code plus breakfast as 'null'. Easy peasy. No need for first enpackaging both into a new object and later on taking them apart again. If you want multiple error codes, for which I don't see the need at all, since you can't return this to the user, you can return 'List'. If you want multiple error codes for internal documentation, just write them into the server log. This all adheres to the KISS principle.

  • @alexanlp
    @alexanlp 2 ปีที่แล้ว +1

    Simple and objetive.
    Which extension you used to auto complete the code?

    • @aalbero
      @aalbero 2 ปีที่แล้ว +2

      I believe it's GitHub copilot

    • @alexanlp
      @alexanlp 2 ปีที่แล้ว

      @@aalbero really, have a robot int the footer of vs code

    • @AveN7ers
      @AveN7ers 2 ปีที่แล้ว

      Visual Studio 2022 has that feature interestingly

  • @rdothl5
    @rdothl5 ปีที่แล้ว

    Couldnt you just save statusCode number to Error class along with its string representation?

  • @kewqie
    @kewqie 2 ปีที่แล้ว +1

    For me MatchFirst() accepts a single error, not a List, thus not matching the Problem() arguments you have in your example. What am I missing?

  • @virajkerkar
    @virajkerkar หลายเดือนก่อน

    which tool do you use to show the flow?

  • @soumadip_banerjee
    @soumadip_banerjee 2 ปีที่แล้ว +3

    ❤️

  • @shoooozzzz
    @shoooozzzz 2 ปีที่แล้ว +3

    **intellisense makes suggestion**
    Yeeees

  • @RedlioNxTR
    @RedlioNxTR 6 หลายเดือนก่อน

    OK video, not for total beginners, but more like "how I like to do it just because.." so you can use it as a step-by-step walkthrough on setting it up.

  • @dtnguyen75
    @dtnguyen75 7 หลายเดือนก่อน

    How do you get the PowerShell commandline to show the .NET core version?

  • @ildefonsocastro5219
    @ildefonsocastro5219 2 ปีที่แล้ว +2

    Love the video i just encounter a problem, when trying 18:10 request i get "HTTP/1.1 500 Internal Server Error" why could it be?

    • @weizhao7896
      @weizhao7896 2 ปีที่แล้ว +1

      me too, but i get an error 404...

  • @Roy-h2q
    @Roy-h2q 6 หลายเดือนก่อน

    I'm starting to learn C# , does anyone what is the IDE for the Models that auto fill in the getter and setter?

  • @suzanahmedgalal4149
    @suzanahmedgalal4149 2 ปีที่แล้ว +1

    0:50 There's 'f' missing in the header of the video

  • @zhangzz9563
    @zhangzz9563 2 ปีที่แล้ว +4

    Hello, I'm from China. Since YouToBe is not accessible in China, can I upload your teaching video to China's domestic website? I'll flag the source of the video.

  • @rsemihkoca
    @rsemihkoca 10 หลายเดือนก่อน

    24:04 how did you get that list of Unwrap arguments etc ?

  • @kirwakelvinkering3122
    @kirwakelvinkering3122 ปีที่แล้ว +1

    Am trying to install dotnet SDK in ubuntu 22.04 and already am getting stuck 😂,