Rest API - Best Practices - Design

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 มิ.ย. 2024
  • Get a Free System Design Roadmap PDF with 145 pages by subscribing to our monthly newsletter: 1levelup.dev/roadmap
    ✏️📘 Summary Notes: 1levelup.dev/blog/consistent-...
    0:00 - Introduction
    0:52 - Stateless API
    2:29 - Making Stateful Apps Stateless
    4:37 - No action for the API
    7:52 - Do not return plain text
    9:35 - Recipe for disaster
    12:38 - Handling Exceptions
    14:26 - Worth to HATEOAS?
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @luczztem
    @luczztem 8 หลายเดือนก่อน +24

    I've never seen a so well made video about APIs, and I watch a LOT of coding related content! Congrats and thanks bro this one is a gem.

  • @DannyLearnsPega
    @DannyLearnsPega 10 หลายเดือนก่อน +11

    Great content. Straight to the point. :)
    If you don't mind me asking, what software do you use for your animations and texts?

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

    Very useful and quite understandable. Very good quality. Thank you!

  • @MrChest001
    @MrChest001 7 หลายเดือนก่อน +3

    This video just made me to re-learn everything I know about Rest API

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

    Thank you so much for this. This video is very informative, straight to the point and so well done

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

    Very nicely explained, thanks a lot!

  • @caiotrevisan6057
    @caiotrevisan6057 5 หลายเดือนก่อน +3

    I love the content I just wished it was louder hehe. Thx.

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

    Good stuff! Congrats and thank you

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

    Amazing explanation !!!

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

    Nice video. Like few nowadays short and to the point

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

    Great Video. Thank you for your effort.

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

    Your videos are very informative and awesome

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

    Helpful video, subbed!

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

    great video, thank you!!!

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

    Great video has always. Can you design a core banking application? mainly how transfers, deposit and withdrawers work, for large scale bank app

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

    Great content

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

    Awesome channel

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

    Excellent 😍

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

    Great video!
    Where do you make your slides?

  • @adesh116
    @adesh116 10 หลายเดือนก่อน +5

    Could you please expand on the uri naming section for real world scenarios.. i would like to know how to name apis for non crud operation ie what would your name your api that is used to upload or download a file, send out a notification or even login, signup, reset password for a user (as according to rest naming scheme /users/login isnt right as login is an action). This is something I see being missed by a lot of tutorials.

    • @t0nn1x
      @t0nn1x 8 หลายเดือนก่อน +2

      I don't want to upset you, but these are all CRUD operations)

    •  8 หลายเดือนก่อน +2

      It's been a while since your comment, but basically login, signin up, uploading a file could be described as different operations
      login (POST): You request your credentials to be processed on the server and as a response you get authorization credentials
      signup (POST): you send your data to register/create a new user
      besides that, it's not a good practice to send credentials, passwords, usernames as URI parameters given that those could be sniffed by some middle man
      upload a file (POST): api/files
      download a file (GET): api/files/{fileId]
      notifications:
      - global notification for all users POST: api/notifications
      - notifications for a given user: PUT: api/notifications/users/{userId}
      - get notifications GET: api/notifications (based on the logged user you give back their notifications)
      - reset password is a request to get something: usually as a POST, you send some data to be checked and used to get you a recovery pass or a recovery token or sth.

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

    Nice video

  • @user-ik7rp8qz5g
    @user-ik7rp8qz5g 7 หลายเดือนก่อน +1

    6:40 why path parameter is better than query parameter?

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

    Good video

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

    father order 🤣🤣
    good video btw

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

    Nice

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

    awsome

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

    pls create new content your video is good

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

    6:29 works only for nouns with a different plural spelling

  • @TienTran-dn3jl
    @TienTran-dn3jl ปีที่แล้ว

    Your videos are instrestring. How do you thing about Search Engine?

  • @okokok840
    @okokok840 16 วันที่ผ่านมา

    comeback pls goddddddddddddddddddddddddddddddddddd

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

    I will still use POST instead of GET when the "read" query is that complex: REST is so dumb.

  • @okokok840
    @okokok840 18 วันที่ผ่านมา

    comeback pls goddddddddddddddddddddddddddddddddddd