A little understanding of rest style

Source: Internet
Author: User
Tags representational state transfer

  1. The full name of rest is representational state transfer, which is an architectural design style. State transfer is said to transfer the representation of resource state between client and server side

  2. The main principles of rest include: The URL represents the resource, and the HTTP method represents the operation. Get/post/put/delete/increment/change/delete respectively

  3. It is a kind of design way of resource-oriented service

  4. It emphasizes resource-centric, and regulates the style of URIs

  5. In rest, a resource can be understood as a URI, represented as a form of resource rendering, such as returning JSON or XML

  6. main features:

    1. stateless, communication must be stateless in nature, session state is guaranteed to be saved on client

    2. cache, the client can cache the response data, and later the same request can be reused

    3. layered system, by restricting the behavior of components, By decomposing the schema into layers of several tiers, the complexity of the entire system provides a boundary that improves the underlying independence

    4. on-demand code to extend the functionality of the client by downloading and executing some code

This article is from the "ten-li Rice flower" blog, please be sure to keep this source http://5880861.blog.51cto.com/5870861/1809704

A little understanding of rest style

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.