1. Trang chủ
  2. » Công Nghệ Thông Tin

REST in Practice pdf

448 3,5K 0

Đ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

Thông tin cơ bản

Định dạng
Số trang 448
Dung lượng 12,23 MB

Nội dung

[...]... machines talking to one another through the Web We rather like it that way Resources The book is accompanied by a website: http://restinpractice.com There you’ll find working code samples from the book, links to other resources, errata, and community information We will make every effort to continuously update the site with more information What Did You Think About the Book? We are very interested in. .. HTTP actions, but in the HTTP specification the term method is used instead We’ll stick with verb in this book because method suggests object-oriented thinking, whereas we tend to think in terms of resources Thinking in Resources 11 In addition to verbs, HTTP also defines a collection of response codes, such as 200 OK, 201 Created, and 404 Not Found, that coordinate the interactions instigated by the... is a heady mix of business, research, government, social, and individual interests This diverse constituency makes the Web a chaotic place—the only consistency being the consistent variety of the interests represented there; the only unifying factor the seemingly never-ending thread of connections that lead from gaming to commerce, to dating to enterprise administration, as we see in Figure 1-1 Despite... through projecting its representations onto the Web By distinguishing between the “real” and the “information” resource, we recognize that objects in the real world can have properties that are not captured in any of their representations In this book, we’re primarily interested in representations of information resources, and where we talk of a resource or “underlying resource,” it’s the information... book: Italic Indicates Internet addresses, such as domain names and URIs, and new items where they are defined Constant width Indicates method, variable, and class names in programs; also, XML element and attribute names, and HTTP idioms Constant width bold Indicates emphasis in program code lines Note This icon signifies a tip, suggestion, or general note warning This icon indicates a warning or caution... distributed computing: it explicitly acknowledged that we can’t be in control of the whole system all the time Compared to classic distributed systems thinking, the Web’s seeming ambivalence to dangling pointers is heresy But it is precisely this shift toward a web-centric way of building computer systems that is the focus of this book Thinking in Resources Resources are the fundamental building blocks of... Architecture to the REST Architectural Style Intrigued by the Web, researchers studied its rapid growth and sought to understand the reasons for its success In that spirit, the Web’s architectural underpinnings were investigated in a seminal work that supports much of our thinking around contemporary web-based systems As part of his doctoral work, Roy Fielding generalized the Web’s architectural principles and... We see it in action every day on the Web, when we follow the links to other pages within our browsers In this book, we show how the same principles can be used to enable computer-to-computer interactions REST and the Rest of This Book While REST captures the fundamental principles that underlie the Web, there are still occasions where practice sidesteps theoretical guidance Even so, the term REST has... people think we should go further, using HTTP not as a convenient tunnel, but to embrace the way the Web works as a foundation for systems collaboration This thinking gathers together under the name of REST. ” It refers to Roy Fielding’s PhD thesis, which is far more often referred to than it is read There is a growing notion that following the principles of REST offers a fruitful path to making networked... website: http://restinpractice.com We will post corrections on both websites as soon as possible after confirming the identified issue O’Reilly can also fix errata in future printings of the book and on Safari, so you can help make the book even better We’ll credit your assistance on the website and in any future editions too! Conventions Used in This Book The following font conventions are used in this book: . problems.” —Colin Jack Senior Software Developer REST in Practice Jim Webber, Savas Parastatidis, and Ian Robinson Beijing · Cambridge · Farnham · Köln · Sebastopol · Tokyo REST in Practice by. 108 Hypermedia Protocols 112 Implementing a Hypermedia Service 128 Building the Ordering Service in Java 128 Building the Ordering Service in .NET 140 Ready, Set, Action 152 6 Scaling Out . . . . . . . . alt="" Advance Praise for REST in Practice “Jim, Savas, and Ian manage to make the notoriously abstract concepts behind RESTful in- tegration useful and applicable in day-to-day work, as well

Ngày đăng: 29/03/2014, 22:20

TỪ KHÓA LIÊN QUAN