Infovark Underground

  • news
    • infoblog
    • underground
  • product
  • download
  • buy
  • support
  • about
    • ← WCF Bad Request
    • Firebird 2.1 Released →

    Review: Restful Web Services

    10 Apr 2008 by Dean in Books, REST / 3 Comments

    As we mentioned recently, we’re building the infovark server using the REST pattern. Since REST is more a loose set of guidelines than a strict series of rules, it’s hard for implementers to know where to begin.

    OK, you could go to the source, chapter 5 of Roy Fielding’s dissertation. Or you could check out the somewhat academic discussions on the REST wiki, though there hasn’t been much activity lately. You can occasionally find good advice from the odd blog post, like the REST for the Rest of Us article at Open Garden. But ironically, there’s not a whole lot of material about implementing REST web services available on the web yet. (If you know of good links, leave a comment.)

    RESTful Web Services

    For the practical, gritty details of how it’s actually done, you’ll need the Restful Web Services book by Sam Ruby and Leonard Richardson. They describe the principles that inform REST-ian (RESTafarian?) design in detail, taking you step-by-step through two different sample applications. If you’re a Ruby programmer using Rails, you’ll find the book especially valuable, since that’s the language and framework in which most of the examples are done. For those of us using different technology, it’s the thought process behind the examples that is most illuminating.

    This is because the key challenge of the REST paradigm is the fact that it can’t really be implemented on today’s web without some workarounds. REST will come into its own with HTML 5. The book steers an interesting course between how REST web services might be done in HTML 5 with how they must be done today. I think the authors get the balance right, but at times it can make for a frustrating read for someone wanting practical advice about building a REST service right now.

    But that’s less a criticism of the book than of the openness of the REST concept itself. The occasional what-if digression the authors make is a small price to pay for the amount of sound guidance you get. The appendixes alone, which discuss things like which HTTP status codes and headers are worth implementing and which are worth forgetting, will save you far more time than you’ll lose in reading how great things will be when HTML forms finally support the PUT method.

    Until that day comes, keep this book handy.

    Related posts

    1. Put the “Web” Back in Web Services
    2. Review: The Pragmatic Programmer
    3. Review: Working Effectively with Legacy Code
    4. Using WCF for REST, Part 1
    5. Review: Brownfield Application Development in .NET
    • Tweet
    • Tags:
    • REST
    • Review

    3 Comments

    • web services tool

      I have gone through this site information For those of us using different technology, it’s the thought process behind the examples that is most illuminating.Its all about web service.

      12 Apr 2008 12:04 pm
      Reply
      • Restamon

        Very nice.

        … and you can still do a PUT in an Ajax call from a browser, or on the server side in Java via something like HTTPClient: http://hc.apache.org/httpclient-3.x/methods/put.html. That’s still not an HTML form, but it’s a start!

        17 Apr 2008 07:04 pm
        Reply
        • Rinsing the SOAP from WCF (or, RESTful WCF Hyperlink Acupuncture) | The Freak Parade

          [...] is cited by just about every blogger that even has the word REST pop up their comments. And it was reviewed here. I have a copy on order, so I can’t tell you first hand how great it is, but I have read its [...]

          Leave a Comment

          Posting your comment...

          Subscribe to these comments via email

          • Categories

            • .NET (41)
            • AJAX (3)
            • Books (7)
            • HTML (9)
            • Infovark (8)
            • Programming (48)
            • REST (11)
            • SQL (3)
            • Testing (3)
            • Tools (13)
            • UI (3)
            • WCF (11)
            • Web Services (8)
            • WPF (4)
            • XML (4)
          • Archives

          • Get future articles


             

          • Blogroll

            • Ajaxian
            • Anne Van Kesteren
            • Brain.Save()
            • Coding Horror
            • Eric Sink
            • Joel Spolsky
            • John Resig
            • Mark Pilgrim
            • Raymond Chen
            • Scott Hansleman
            • Secret Geek
            • Steve Yegge
            • The Daily WTF
            • The Database Programmer
          • Meta

            • Log in
            • Entries RSS
            • Comments RSS
            • WordPress.org
        • Site map

          • News
          • Product
          • Download
          • Buy
          • Support
          • About
        • Recent Posts

          • Review: Brownfield Application Development in .NET
          • Using Modal Dialogs with a Splash Screen in WPF
          • Highlighting query terms in a WPF TextBlock
          • Getting XAML Hyperlink text to wrap
          • How to format the XAML Hyperlink NavigateUri
        • Twitter

          Copyright 2011 Infovark, Inc. All rights reserved.