RESTful API Overview

Source: Internet
Author: User
Tags representational state transfer

RESTful API Parsing

1, what is the restful API.

Rrst:representational State Transfer (representational status handover or representational state transfer)

Rrst a software architecture style that defines a set of architectural principles that programmers use to design resource-centric Web services (APIs)

Maximum characteristics: simple.

REST is often built on widely popular protocols and standards such as http,uri,xml,html.

Amazon, Yahoo and so on.

Client <==>server

Page state transitions

Status: An open page, a URL address content (still).

Conversion: page or content changes.

Stateless: Server does not rely on client state.

Both server and client have status.

As long as there is a state of things that are still.

Stateless: Do not rely on each other's state.

Web Apps

HTTP

Url

2, RESTful API pros and cons.

Relying on protocols or standards such as HTTP, reuse conventions, easy integration.

Build services that change from times to times.

Eliminates client throttling for the API.

It contains all the parameters, contexts, and data required to generate a response from a server-side component in the header and body.

Because of its characteristics:

Enables load balancing, failover, proxy, and gateway server clusters to be organized in a service topology, allowing requests to be routed from one server to another as needed, reducing overall response time for Web service calls.

To scale up with an intermediary server, the REST application needs to send a separate, complete request, and the server processes the request without relying on the application context or state.

Cons: Rely on HTTP and other protocols, have some relevant technical understanding, in order to correctly build the rest format API.

RESTful API Overview

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.