Deep Dive into REST API Design and Implementation Best Practices

Поделиться
HTML-код
  • Опубликовано: 21 ноя 2024
  • REST API best practices require effective REST API design and implementation that are often omitted in REST API tutorials for beginners. In this video, we're gonna go over important topics such as REST API endpoint naming, architecture, async operation, partial loading, error handling, security, HATEOAS, filtering, pagination, API versioning, and much more.
    ======⚡⚡⚡======
    Consider supporting the channel by clicking the "Thanks" button ❤️
    🙌 Become my Patreon and get exclusive perks: / softdevdiaries
    💼 Follow me on LinkedIn and drop me a message if you'd like: / gusgadirov
    💻 Also, let's connect on GitHub: github.com/gusgad
    📚 Resources:
    learn.microsof...
    And don't forget to subscribe for more videos like this 😊

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

  • @DebapriyaMukherjee-y5y
    @DebapriyaMukherjee-y5y Месяц назад +3

    This is the best video I have came across after wasting time in so many craps.

  • @shinyshark2247
    @shinyshark2247 8 месяцев назад +5

    A warning for what is said at 5:43 - pagination does help performance by reducing the amount of records that are retrieved. If, however, you decide you want to include a property such as 'TotalItems' and use a count for that, be mindful of how you retrieve this count. In some scenarios, you might still be retrieving all the records you didn't want to retrieve.

    • @jaredroder2842
      @jaredroder2842 Месяц назад

      Maybe add an endpoint? GET /api/collection/count

  • @itsfoss5268
    @itsfoss5268 9 месяцев назад +7

    I have learnt alot in 12 minutes than I did in a whole academic year for my CS degree. Cheers mate 🎉

  • @collinskariuki7089
    @collinskariuki7089 11 месяцев назад +3

    I am currently learning about APIs and your video has been immensely helpful. Thank you so much for creating this content. I subscribed right away

  • @abdulazeez.98
    @abdulazeez.98 Год назад +11

    Awesome video. It’s really hard to find videos with such clarity and details on youtube. The animations are top notch 👌

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

      Thanks a ton! I felt like the animations are a bit rusty, so need to improve those maybe :)

  • @gunnarliljas8459
    @gunnarliljas8459 Год назад +8

    Wouldn't call it it a deep dive. More a wide dive. But, still, very good, An excellent introduction that could be starter for any API journey.

  • @BABEENGINEER
    @BABEENGINEER Год назад +4

    This vid is so soothing and informative!

  • @abdelwahidbenzerrouk8271
    @abdelwahidbenzerrouk8271 9 месяцев назад

    Good video, I would love to see how to deal with API Naming when you have some actions that are not representative by HTTP methods.

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

    Just to clarify for anyone, at 5:58 the +author and -datePublished means that the author category will be sorted in an ascending order and datePublished will be sorted in a descending order

  • @erezbenkimon3899
    @erezbenkimon3899 8 месяцев назад

    very good content dude. I will create a notebook from this video for future reference.
    keep going , you earned my subscription :)

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

    So helpful to understand the real world application architechture

  • @mravacado1587
    @mravacado1587 2 месяца назад +1

    Versions can also be specified in the header

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

    Got Very Solid understanding of Rest API 🙌😄

  • @truechecker680
    @truechecker680 23 дня назад

    I have question. Let's say, we have /api/towns endpoint and we have multiple PATCH actions on this endpoint like enable-town (change param isEnabled to true) etc... How can u operate on just one endpoint, when there are multiple PATCH actions? For this reason, I was using /api/towns/{id}/enable, /api/towns/{id}/change-tax-value but dunno if its best practice.

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

    Best video ever.!! Thank you brother❤

  • @Other-stuff-sports-lm1ok
    @Other-stuff-sports-lm1ok Год назад

    great content! keep it going, you'll be the next big Tech youtuber

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

    Would it not be the best to sort and order at the query level for API that you consume yourself e.g for a First Party SPA? Also please if can do a video on HATEOAS.

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

    This is excellent video exceptionally done

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

    Great explanation!

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

    This video is one of the best

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

    Earned a new subscriber, thanks.

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

    Excellent. Thanks!

  • @nihshrey
    @nihshrey 7 месяцев назад

    This video is brilliant.

  • @ogagaDotTech
    @ogagaDotTech 4 месяца назад

    Excellent

  • @javadmh7827
    @javadmh7827 2 месяца назад

    Nice One 😍

  • @SmartWizzard
    @SmartWizzard Год назад +2

    From 7:05 it's getting confusing not because of words but lack of examples, can you please provide another video with examples that give details for all these requests, header responses, and response messages.

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

      Hey I won't be able to make a follow-up on that most likely, but I'd suggest checking out the page I linked in the description, you'll find all the needed examples there! :)

  • @AnshulMarele-gbaa
    @AnshulMarele-gbaa 2 месяца назад

    Hi,
    I have my Excel file which is updated through an odbc connection. But how can I sync/connect that Excel data into Google Sheets that could be updated automatically in periodic intervals. Any Solution?
    Thanks

  • @sidekick3rida
    @sidekick3rida 7 месяцев назад

    Thanks, I learned a lot. But-how-are-hyphens-more_readable_than_underscores? Subjective, I guess.

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

    Adding version to endpoints and resources on their address/query strings leads to a brittle implementation.. always better to have API version and resource version on the HTTP headers. This will enable a better developer experience and less coupling between your microservices.

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

    there are also action based APIs not only resource based

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

    These things, OData got them right !But somehow, it's not so widespread...

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

    Sir do you earn 100k euros a year as a software developer in Germany? Plz reply. Thanks a lot.

    • @cariyaputta
      @cariyaputta Год назад +6

      It's quite weird to directly ask stranger for their salary like this.