際際滷

際際滷Share a Scribd company logo
GET /greeting
                Content-Type: text/plain
                Hello :)




Saturday, September 22, 12
About Me

                     Phil Harvey, @philharvey
                      Web Developer
                      Member of the architecture team
                        The Lampo Group, Inc.
                        daveramsey.com

Saturday, September 22, 12
REST & Hypermedia
                             The Missing Links and Why You Need Them




Saturday, September 22, 12
Purpose



Saturday, September 22, 12
Common Scenario


                             You built an API for a business need...




Saturday, September 22, 12
Common Scenario


                       The business grows, matures, and changes...




Saturday, September 22, 12
Common Scenario


                    Leading to new, unanticipated requirements...




Saturday, September 22, 12
Common Scenario


                             New functionality is needed! But...




Saturday, September 22, 12
Common Scenario


                             You must not break existing clients!




Saturday, September 22, 12
Hypermedia



Saturday, September 22, 12
Saturday, September 22, 12
api.example.com




                        Tickets (/tickets)



                                      Ticket (/ticket)



Saturday, September 22, 12
Three Examples...
                        UPDATE: My three examples are now located in a Gist on GitHub, right here:

                        https://gist.github.com/3766847

                        Feel free to comment on them there. Thanks!

                        - Phil Har vey




Saturday, September 22, 12
Hypermedia Constraint
                     Minimal API surface area
                     Discoverable Transitions
                     Looser coupling, higher extensibility,
                             reduced breakage
                     Independent evolution/innovation of Client
                             and Server systems


Saturday, September 22, 12
Hypermedia gives you
                            wings!


Saturday, September 22, 12
Questions, comments?



Saturday, September 22, 12
Resources

                            Roy Fieldings dissertation:

                                http://www.ics.uci.edu/~鍖elding/pubs/dissertation/top.htm

                            Google groups:

                                API Craft, Hypermedia Web, REST-Discuss

                            Implementing REST/Hypermedia APIs:

                                http://code.google.com/p/implementing-rest/




Saturday, September 22, 12
Thanks!



Saturday, September 22, 12

More Related Content

REST & Hypermedia: the missing links and why you need them - Ruby Hoedown 2012