Rest-type Web Services

Source: Internet
Author: User
Tags representational state transfer

"REST" is the acronym ROY Filding (Roy Fielding) created in his doctoral dissertation. The 5th chapter of Fielding's thesis outlines the principles of knowing that a Web service is known as rest-style or restful. He is the main author of the HTTP1.1 specification and one of the creators of the Apache Software Foundation.

There is a big difference between rest and soap. Soap is a messaging protocol in which the message is an XML document, and rest is the style of a software architecture. It is used in distributed hypermedia systems, or in systems that are stored in text, graphics, audio, and other media formats in the network and interconnected through hyperlinks. The World Wide Web is an example. In the Web, HTTP is both a transport protocol and a messaging system, because HTTP requests and responses are messages. The payload of an HTTP message can use the MIME (Multipurpose Internet Mail Extension, Multipurpose Internet Mail Extension) type System. MIME types are available, such as Text/html,application/octet-stream and AUDIO/MPEG3.

Rest represents the representational state transfer (representational, Transfer), where "resources" are not present in abbreviations in the abstract concept of rest. A restful resource (resource) refers to something that is accessed through HTTP because it has a name, which is the URI (Uniform resource Identifier, Uniform Resource representation). The URI has two subtypes: one is the URL that we are familiar with, it specifies a location, and the other is a urn, just the name of a symbol, but not a location. URIs are unified (Uniform) because they have to be constructed in some way, with the syntax for the URI (syntax). In summary, a URI is a canonical name for a resource.

Rest-type Web Services

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.