出版時(shí)間:2007 出版社:東南大學(xué)出版社 作者:Leonard Richardson,Sam Ruby 頁(yè)數(shù):419
Tag標(biāo)簽:無(wú)
內(nèi)容概要
你也許曾經(jīng)建立過(guò)可供他人使用的網(wǎng)站,但是,你能否創(chuàng)建可供機(jī)器使用的網(wǎng)站?萬(wàn)維網(wǎng)(World Wide Web)不僅僅只是一個(gè)巨大的分布式應(yīng)用——應(yīng)該把它視為一個(gè)分布式計(jì)算平臺(tái)。Web services、聚合(mashup)和Ajax應(yīng)用都以Web作為平臺(tái)。而今天的Web services技術(shù)早已失去了Web賴以成功的簡(jiǎn)潔性,它們并不像Web那樣工作,并且正日益喪失其原有的優(yōu)勢(shì)?! ”緯尅癢eb”回歸Web services。它闡述了如何以你日常所使用的技術(shù)訪問(wèn)可編程的Web。其關(guān)鍵就在于REST,它是驅(qū)動(dòng)Web的架構(gòu)樣式。本書包括以下內(nèi)容: ·強(qiáng)調(diào)Web基礎(chǔ)技術(shù)的力量 —— HTTP應(yīng)用協(xié)議、URI命名標(biāo)準(zhǔn)與XML標(biāo)記語(yǔ)言 ·介紹面向資源的架構(gòu)(ROA),設(shè)計(jì)RESTful Web Services的常識(shí)規(guī)則集合 ·揭示RESTful的設(shè)計(jì)如何比遠(yuǎn)程過(guò)程調(diào)用(RPC)更為簡(jiǎn)單、具有更多功能以及擴(kuò)展性 ·包含RESTful Web services的真實(shí)案例,如Amazon的簡(jiǎn)單存儲(chǔ)服務(wù)與Atom發(fā)布協(xié)議等 ·探討各種流行編程語(yǔ)言的Web services客戶端 ·展示如何用三種流行框架實(shí)現(xiàn)RESTful services —— Ruby on Rails、Restlet(基于Java)和Django(基于Python) ·關(guān)注實(shí)際問(wèn)題,諸如怎樣設(shè)計(jì)和實(shí)現(xiàn)RESTful Web services與客戶端等 《RESTful Web Services》是對(duì)真實(shí)Web services運(yùn)用REST設(shè)計(jì)哲學(xué)的第一本書。它為你的成功設(shè)計(jì)樹立了最佳實(shí)踐典范,也為你提供了將設(shè)計(jì)轉(zhuǎn)化為代碼所需的技術(shù)。你不妨充分利用可編程Web的力量——只要與Web合作,而不是與之抵抗。本書將教會(huì)你一切?! ∽ⅲ罕緯鵀槿⑽挠坝“?。
書籍目錄
ForewordPreface1. The Programmable Web and Its InhabitantsKinds of Things on the Programmable WebHTTP: Documents in EnvelopesMethod InformationScoping InformationThe Competing ArchitecturesTechnologies on the Programmable WebLeftover Terminology2. Writing Web Service ClientsWeb Services Are Web Sitesdel.icio.us: The Sample ApplicationMaking the Request: HTTP LibrariesProcessing the Response: XML ParsersJSON Parsers: Handling Serialized DataClients Made Easy with WADL3. What Makes RESTful Services Different?Introducing the Simple Storage ServiceObject-Oriented Design of S3ResourcesHTTP Response CodesAn S3 ClientRequest Signing and Access ControlUsing the S3 Client LibraryClients Made Transparent with ActiveResourceParting Words4. The Resource-Oriented ArchitectureResource-Oriented What Now?Whats a Resource?URIsAddressabilityStatelessnessRepresentationsLinks and ConnectednessThe Uniform InterfaceThats It!5. Designing Read-Only Resource-Oriented ServicesResource DesignTurning Requirements Into Read-Only ResourcesFigure Out the Data SetSplit the Data Set into ResourcesName the ResourcesDesign Your RepresentationsLink the Resources to Each OtherThe HTTP ResponseConclusion6. Designing Read/Write Resource-Oriented ServicesUser Accounts as ResourcesCustom PlacesA Look Back at the Map Service7. AServicelmplementati0nA Social Bookmarking Web ServiceFiguring Out the Data SetResource DesignDesign the Representation(s) Accepted from the ClientDesign the Representation(s) Served to the ClientConnect Resources to Each OtherWhats Supposed to Happen?What Might Go Wrong?Controller CodeModel CodeWhat Does the Client Need to Know?8. REST and ROA Best PracticesResource-Oriented Basics……9. The Building Blocks of Services10. The Resource-Oriented Architecture Versus Big Web Services11. Ajax Applications as REST Clients12. Frameworks for RESTful ServicesA. Some Resources for REST and Some RESTful ResourcesB. The HTTP Response Code Top 42C. The HTTP Header Top InfinityIndex
圖書封面
圖書標(biāo)簽Tags
無(wú)
評(píng)論、評(píng)分、閱讀與下載
RESTful Web Services(影印版) PDF格式下載