Beautiful REST & JSON APIs

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ม.ค. 2025

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

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

    Great talk! This completely laid out everything about REST APIs. With reasonable best practices too. Best practices that are indeed true to Facebook, Twitter, Google REST APIs. Thanks a lot for this.

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

    Missed a quote before the value at 31:55

  • @VinceThyng
    @VinceThyng 10 ปีที่แล้ว

    Awesome video. Just want I needed while getting started on designing a REST+JSON based service.

    • @hitchco
      @hitchco 10 ปีที่แล้ว

      In nodejs I hope

  • @sheerun
    @sheerun 11 ปีที่แล้ว

    I'd additionally:
    1. Use X - header field instead of parameters like _body (for example X-H TTP-Method)
    3. In post response return only Location to resource, no content. Well configured API client will follow redirection and fetch new resource (including browsers)
    4. Use absolute or even relative links in JSON (no need to include domain)
    5. Use PATCH for partial updates, and POST for issuing actions on resources.
    6. Use underscore instead of camel case in JSON (readable; ruby client?)

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

    Very nice and informative talk. One question on security aspect; what are the best practices (or what are the practices Stormpath follows) to handle XSS and CSRF? Thank you.

  • @azhder
    @azhder 11 ปีที่แล้ว

    rfc 5789 is not without undefined use-cases, I think there will be another rfc supplementing (or replacing) it

  • @prax39
    @prax39 11 ปีที่แล้ว

    I know rails 4.0 has embraced Patch as their defacto update method, which might help push the rfc 5789 forward..

  • @StevenNess
    @StevenNess 11 ปีที่แล้ว

    Excellent talk, and great information. Thanks!

  • @prax39
    @prax39 11 ปีที่แล้ว

    Great video! are the slides posted anywhere?

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

    Amazing talk! Thanks

  • @danielalmeida7140
    @danielalmeida7140 9 ปีที่แล้ว

    Why does everything have to have hrefs spit out?
    Why is it that I can't just ask for an account (for example) and have everything expanded by default?

    • @the-real-chaosaffe
      @the-real-chaosaffe 8 ปีที่แล้ว

      +Daniel Lima de Almeida there are several reasons as mentioned in the video. A few of those are
      - Metered API's
      - Not required in all (most) instances
      - Reduce serve latency

  • @MattRussellUK
    @MattRussellUK 11 ปีที่แล้ว +3

    Hmm...partial updates are totally idempotent in my book.

  • @sethysiba
    @sethysiba 10 ปีที่แล้ว

    Thanks this was pretty helpful

  • @praguepanda
    @praguepanda 11 ปีที่แล้ว

    The convention is to use underscores instead of camelCase in JSON.

    • @grzegorztomasiak
      @grzegorztomasiak 5 ปีที่แล้ว

      that is not true. Even though there is no offical standard, it's observed that camelCase is the way to go

  • @prax39
    @prax39 11 ปีที่แล้ว

    found it thanks!

  • @andreineculau
    @andreineculau 11 ปีที่แล้ว

    If you are a newbie trying to learn about H TTP and REST, then take all of this with lots of grains of salt.