Rest makes the Web better!

Source: Internet
Author: User
Rest makes the Web better!

What is representational state transfer (rest )?
Building Web services the rest way
Python web frameworks and rest
Dispatching in a rest Protocol Application
Selector: a restful URL dispatcher.
Robaccia: a restful Web framework. (Yes, the mini web framework !)
Wsgicollection: Make robaccia even more restful.
Use JSON restfully
Using rest with Ajax

    1. What is rest?Rest is an architecture style of the network system. Our Web is a good example of this architecture style. Everything is a resource, and Web is composed of these resources. Each resource is identified by a URL. When we access a URL through a clientRepresentationThen return. So the clientStateIt changes. So it is calledRepresentation stateTransfer! The server does not save the state, which makes the client's requests relatively independent, as long as the client'sStateUnchanged, the same client requests always get the sameRepresentation.

    2. Design Principles of restful Web Services
      • Identifies all resources to be exposed,
      • For each resource design URL, the resource should be a noun rather than a verb, for example should use http://www.parts-depot.com/parts/00345 rather than a http://www.parts-depot.com/parts/getPart? Id = 00345
      • You can only view resources to classify resources based on whether the user can modify them. The former can only perform get requests, and the latter can use post, put, and/or delete
      • No islands. Representations of all resources should be linked through hyperlinks

    3. Last aspectCodeRight

 

table issuer Huang Yi

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.