RESTful Web Services"Every developer working with the Web needs to read this book." -- David Heinemeier Hansson, creator of the Rails framework "RESTful Web Services finally provides a practical roadmap for constructing services that embrace the Web, instead of trying to route around it." -- Adam Trachtenberg, PHP author and EBay Web Services Evangelist You've built web sites that can be used by humans. But can you also build web sites that are usable by machines? That's where the future lies, and that's what RESTful Web Services shows you how to do. The World Wide Web is the most popular distributed application in history, and Web services and mashups have turned it into a powerful distributed computing platform. But today's web service technologies have lost sight of the simplicity that made the Web successful. They don't work like the Web, and they're missing out on its advantages. This book puts the "Web" back into web services. It shows how you can connect to the programmable web with the technologies you already use every day. The key is REST, the architectural style that drives the Web. This book:
|
Contents
Chapter 1 The Programmable Web and Its Inhabitants | 1 |
Chapter 2 Writing Web Service Clients | 23 |
Chapter 3 What Makes RESTful Services Different? | 49 |
Chapter 4 The ResourceOriented Architecture | 79 |
Chapter 5 Designing ReadOnly ResourceOriented Services | 107 |
Chapter 6 Designing ReadWrite ResourceOriented Services | 143 |
Chapter 7 A Service Implementation | 167 |
Chapter 8 REST and ROA Best Practices | 215 |
Chapter 10 The ResourceOriented Architecture Versus Big Web Services | 299 |
Chapter 11 Ajax Applications as REST Clients | 315 |
Chapter 12 Frameworks for RESTful Services | 339 |
Appendix A Some Resources for REST and Some RESTful Resources | 365 |
Appendix B The HTTP Response Code Top 42 | 371 |
Appendix C The HTTP Header Top Infinity | 389 |
409 | |
Chapter 9 The Building Blocks of Services | 259 |
Other editions - View all
Common terms and phrases
ActiveRecord ActiveResource Ajax application Amazon Amazon S3 Atom feed Atom Publishing Protocol authentication Bad Request bookmarks browser bucket bucket list cache called Chapter create custom place data set data structure database define del.icio.us Django encoding end end end user entity-body ETag Example expose fetch Flickr Google HTTP’s uniform interface hypermedia implement JavaScript JSON key-value pairs Last-Modified look metadata method information microformat modify Mount Rushmore object overloaded POST parse parser planet protocol proxy PUT request Rails representation formats Request header Resource-Oriented Architecture response code response header RESTful services RESTful web services Restlet RPC-style Ruby Ruby on Rails scoping information search results service client SOAP social bookmarking specify standard statelessness status code string tells the client there’s user account user’s WADL WADL file web browser weblog What’s WSDL XHTML XML document XML-RPC XMLHttpRequest XPath