《RESTful Web Services》电子书下载

RESTful Web Servicestxt,chm,pdf,epub,mobi下载
作者: Leonard Richardson / Sam Ruby
出版社: O'Reilly Media
出版年: 2007-5-18
页数: 454
定价: USD 39.99
装帧: Paperback
ISBN: 9780596529260

内容简介  · · · · · ·

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 ...




作者简介  · · · · · ·

Leonard Richardson (http://www.crummy.com/) is the author of the Ruby Cookbook (O'Reilly) and of several open source libraries, including Beautiful Soup. A California native, he currently lives in New York.

Sam Ruby is a prominent software developer who has made significant contributions to the many of the Apache Software Foundation's open source projects, and to the standardiz...



目录  · · · · · ·

Foreword xi
Preface xiii
1. The Programmable Web and Its Inhabitants 1
Kinds of Things on the Programmable Web 4
HTTP: Documents in Envelopes 5
Method Information 8
· · · · · · ()
Foreword xi
Preface xiii
1. The Programmable Web and Its Inhabitants 1
Kinds of Things on the Programmable Web 4
HTTP: Documents in Envelopes 5
Method Information 8
Scoping Information 11
The Competing Architectures 13
Technologies on the Programmable Web 18
Leftover Terminology 20
2. Writing Web Service Clients 23
Web Services Are Web Sites 23
del.icio.us: The Sample Application 26
Making the Request: HTTP Libraries 29
Processing the Response: XML Parsers 38
JSON Parsers: Handling Serialized Data 44
Clients Made Easy with WADL 47
3. What Makes RESTful Services Different? 49
Introducing the Simple Storage Service 49
Object-Oriented Design of S3 50
Resources 52
HTTP Response Codes 54
An S3 Client 55
Request Signing and Access Control 64
Using the S3 Client Library 70
Clients Made Transparent with ActiveResource 71
Parting Words 77
4. The Resource-Oriented Architecture 79
Resource-Oriented What Now? 79
What’s a Resource? 81
URIs 81
Addressability 84
Statelessness 86
Representations 91
Links and Connectedness 94
The Uniform Interface 96
That’s It! 105
5. Designing Read-Only Resource-Oriented Services 107
Resource Design 108
Turning Requirements Into Read-Only Resources 109
Figure Out the Data Set 110
Split the Data Set into Resources 112
Name the Resources 117
Design Your Representations 123
Link the Resources to Each Other 135
The HTTP Response 137
Conclusion 140
6. Designing Read/Write Resource-Oriented Services 143
User Accounts as Resources 144
Custom Places 157
A Look Back at the Map Service 165
7. A Service Implementation 167
A Social Bookmarking Web Service 167
Figuring Out the Data Set 168
Resource Design 171
Design the Representation(s) Accepted from the Client 183
Design the Representation(s) Served to the Client 184
Connect Resources to Each Other 185
What’s Supposed to Happen? 186
What Might Go Wrong? 187
Controller Code 188
Model Code 205
What Does the Client Need to Know? 209
8. REST and ROA Best Practices 215
Resource-Oriented Basics 215
The Generic ROA Procedure 216
Addressability 216
State and Statelessness 217
Connectedness 218
The Uniform Interface 218
This Stuff Matters 221
Resource Design 227
URI Design 233
Outgoing Representations 234
Incoming Representations 234
Service Versioning 235
Permanent URIs Versus Readable URIs 236
Standard Features of HTTP 237
Faking PUT and DELETE 251
The Trouble with Cookies 252
Why Should a User Trust the HTTP Client? 253
9. The Building Blocks of Services 259
Representation Formats 259
Prepackaged Control Flows 272
Hypermedia Technologies 284
10. The Resource-Oriented Architecture Versus Big Web Services 299
What Problems Are Big Web Services Trying to Solve? 300
SOAP 300
WSDL 304
UDDI 309
Security 310
Reliable Messaging 311
Transactions 312
BPEL, ESB, and SOA 313
Conclusion 314
11. Ajax Applications as REST Clients 315
From AJAX to Ajax 315
The Ajax Architecture 316
A del.icio.us Example 317
The Advantages of Ajax 320
The Disadvantages of Ajax 321
REST Goes Better 322
Making the Request 323
Handling the Response 324
JSON 325
Don’t Bogart the Benefits of REST 326
Cross-Browser Issues and Ajax Libraries 327
Subverting the Browser Security Model 331
12. Frameworks for RESTful Services 339
Ruby on Rails 339
Restlet 343
Django 355
A. Some Resources for REST and Some RESTful Resources 365
B. The HTTP Response Code Top 42 371
C. The HTTP Header Top Infinity 389
Index 409
· · · · · · ()

下载地址

发布者:梦里你非来辨

文件说明:zip / 解压密码:yiquhai.com

迅雷下载:您需要先后,才能查看

网盘下载:您需要先后,才能查看

关于内容:内容自于互联网,如果发现有违规内容请联系管理员删除!

作者: 梦里你非来辨

该用户很懒,还没有介绍自己。

36 条评论

发表评论

  1. 彤彤 彤彤说道:
    1#

    值得一看。挺有意思的。

  2. Lynn小馨馨 Lynn小馨馨说道:
    2#

    烧脑 经典

  3. 许蕾丝儒 许蕾丝儒说道:
    3#

    描述领域之多

  4. 珺灵月 珺灵月说道:
    4#

    一口气看完,真正是好书。

  5. 显示更多