`

A Brief Introduction to REST

阅读更多

Author: Stefan Tilkov
from: InfoQ

 

 

---------------------------------------------
https://docs.google.com/fileview?id=0B9_1SZT2TitfYjY2OTNmZmQtYjYxYi00YThhLWEyZWQtNTNiOTUzYjE1NTIz&hl=en&authkey=CPvU4bwK
---------------------------------------------


Notes:

 

1). Give every "thing" a ID

Use URIs to identify everything that merits being identifiable, specifically, all of the “high-level” resources that your application provides, whether they represent individual items, collections of items, virtual and physical objects, or computation results.

 

 

2). Link things together

Hypermedia as the engine of application state "HATEOAS"

 

 

3). Use standard methods

For clients to be able to interact with your resources, they should implement the default application protocol (HTTP) correctly, i.e. make use of the standard methods GET, PUT, POST, DELETE.

 

 

4). Resources with multiple representations

Provide multiple representations of resources for different needs.

 

 

5). Communicate statelessly

REST mandates that state be either turned into resource state, or kept on the client. In other words, a server should not have to retain some sort of communication state for any of the clients it communicates with beyond a single request. The most obvious reason for this is scalability — the number of clients interacting would seriously impact the server’s footprint if it had to keep client state.

 

 

 

分享到:
评论

相关推荐

    Modular Programming with PHP 7(PACKT,2016)

    We start with a brief introduction to the new features of PHP 7, some of which open a door to new concepts used in modular development. With design patterns being at the heart of all modular PHP code,...

    Intelligent Multimedia Systems

    Introduction to Visual Basic The ATM Simulation in Visual Basic Some Comments about Visual Basic and the ATM Simulation Chapter Summary CHAPTER 3—The Multimedia Database Introduction ...

    RESTFUL BEST PRACTICES

    Designed to be brief, this document provides recommendations and some cookbook-style discussion on many of the common questions around REST and provides some short background information to offer ...

    Manning.Spring.in.Action.4th.Edition.2014.11.epub

    17.1. A brief introduction to asynchronous messaging 17.1.1. Sending messages 17.1.2. Assessing the benefits of asynchronous messaging 17.2. Sending messages with JMS 17.2.1. Setting up a message ...

    Thinking in LINQ

    Here is a brief walk-through of the chapters: • Chapter 1: Thinking Functionally Our generation of programmers has been raised with object-oriented programming ideas. This initial chapter is ...

    Practical C++ Programming C++编程实践

    A Brief History of C++ C++ Organization How to Learn C++ 2. The Basics of Program Writing Programs from Conception to Execution Creating a Real Program Getting Help in Unix Getting Help in an IDE ...

    Salesforce doc: Integration Patterns and Practices

    - **Pattern Summary**: A brief overview of the pattern and its applicability. - **Pattern Approach**: Detailed steps and considerations for implementing the pattern. - **Pattern Selection Guide**: ...

    再谈RESTful_API的安全.pdf

    RESTful API已经被各个web应用广泛采用,而且业界已经有很多的框架供我们使用。本议题讲解RESTful API一些常见的设计漏洞,以及如何利用一个...REST brief introduction Secure your RESTful API Some attack examples

    BobBuilder_app

    Here is a brief overview of all the terms used to describe RaptorDB: Embedded: You can use RaptorDB inside your application as you would any other DLL, and you don't need to install services or run ...

    hadoop_the_definitive_guide_3nd_edition

    A Brief History of Hadoop 9 Apache Hadoop and the Hadoop Ecosystem 12 Hadoop Releases 13 What’s Covered in this Book 14 Compatibility 15 2. MapReduce . . . . . . . . . . . . . . . . . . . . . . . . ....

Global site tag (gtag.js) - Google Analytics