Tài liệu RESTful Web Services doc

440 2.4K 5
Tài liệu RESTful Web Services doc

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... of Yahoo!’s web services (http://developer.yahoo.com/) • Most other read-only web services that don’t use SOAP • Static web sites • Many web applications, especially read-only ones like search engines ‡ More than you’d think The Google SOAP API for web search technically has a RESTful architecture So do many other read-only SOAP and XML-RPC services But these are bad architectures for web services, because... it easy to implement RESTful web services: Ruby on Rails, Restlet (for Java), and Django (for Python) We also have three appendixes we hope you find useful: Appendix A, Some Resources for REST and Some RESTful Resources The first part lists interesting standards, tutorials, and communities related to RESTful web services The second part lists some existing, public RESTful web services that you can... Amazon Web Services account (http://aws.amazon.com/) and customize the Ruby code with your Access Key ID Here’s a sample run of the program: $ ruby amazon-search.rb C1D4NQS41IMK2 "restful web services" "RESTful Web Services" by Leonard Richardson, Sam Ruby "Hacking with Ruby: Ruby and Rails for the Real World" by Mark Watson At its best, the programmable web works the same way as the human web When... Here we explain the Ajax architecture for web applications in terms of web services: an Ajax application is just a web service client that runs inside your web browser That makes this chapter an extension of Chapter 2 We show how to write clients for RESTful web services using XMLHttpRequest and the standard JavaScript library Chapter 12, Frameworks for RESTful Services In the final chapter we cover three... something goes wrong If you provide RESTful web services, you can spend your complexity on additional features, or on making multiple services interact Success in providing services also means being part of the Web instead of just “on” the Web: making your information available under the same rules that govern well-designed web sites The closer you are to the basic web protocols, the easier this is The... issues: how to design and implement RESTful web services, and clients for those services Our secondary focus is on theory: what it means to be RESTful, and why web services should be more RESTful instead of less We don’t cover everything, but we try to hit today’s big topics, and because this is the first book of its kind, we return to the core issue—how to design a RESTful service—over and over again... program starts acting like a web browser It makes an HTTP request to a URI: in this case, something like http://xml.amazon.com/onca/xml3?KeywordSearch =restful +web+ services& mode=books&f=xml&type=lite&page=1 The web server at xml.amazon.com responds with an XML document This document, shown in Example 1-3, describes the search results, just like the HTML document you see in your web browser, but in a more... questions that web services answer differently, I can group web services by their answers to the questions In my studies I’ve identified three common web service architectures: RESTful resource-oriented, RPC-style, and REST-RPC hybrid I’ll cover each in turn RESTful, Resource-Oriented Architectures The main topic of this book is the web service architectures which can be considered RESTful: those which... Now, lots of architectures are technically RESTful, ‡ but I want to focus on the architectures that are best for web services So when I talk about RESTful web services, I mean services that look like the Web I’m calling this kind of service resource-oriented In Chapter 3 I’ll introduce the basic concepts of resource-oriented REST, in the context of a real web service: Amazon’s Simple Storage Service... commonsense set of rules for designing RESTful web services We also show you the view from the client side: how you can write programs to consume RESTful services Our examples include realworld RESTful services like Amazon’s Simple Storage Service (S3), the various incarnations of the Atom Publishing Protocol, and Google Maps We also take popular services that fall short of RESTfulness, like the del.icio.us . and implement RESTful web services, and clients for those services. Our secondary focus is on theory: what it means to be RESTful, and why web services should. you can im- plement web services without implementing Big Web Services: that the Web should be all the service you need. We believe the Web s basic technologies

Ngày đăng: 16/02/2014, 13:20

Từ khóa liên quan

Mục lục

  • RESTful Web Services

    • Table of Contents

    • Foreword

    • Preface

      • The Web Is Simple

      • Big Web Services Are Not Simple

      • The Story of the REST

      • Reuniting the Webs

      • What’s in This Book?

      • Administrative Notes

      • Conventions Used in This Book

      • Using Code Examples

      • Safari® Enabled

      • How to Contact Us

      • Acknowledgments

      • Chapter 1. The Programmable Web and Its Inhabitants

        • Kinds of Things on the Programmable Web

        • HTTP: Documents in Envelopes

        • Method Information

        • Scoping Information

        • The Competing Architectures

          • RESTful, Resource-Oriented Architectures

          • RPC-Style Architectures

          • REST-RPC Hybrid Architectures

Tài liệu cùng người dùng

Tài liệu liên quan