Learning rest together (6) -- real rest example

Source: Internet
Author: User

Original address: http://rest.elkstein.org/

Learn rest: a tutorial

A fast-training courseRest-
Re
PresentationalSTateTRansfer, a new approach to systems architecture and a lightweight alternative to Web Services

Rest-transition of expressive state-quick learning tutorial, a new system architecture method that can replace the lightweight Web service protocol.

_______________________________________________________________________________________

Only some service providers that provide resp APIs are listed here. It is worth mentioning that some of them also provide WDLS (Web Service) APIs. In addition, you can choose to use rest or web service. However, in most cases, when both of them are available, rest calls are very convenient, and the results are easier to process and use, and the resources used are relatively small.

Providers that provide rest services:

  • FamousTwitter APIAll are rest.
  • Yahoo!Most services provide rest APIs. These services include :,
    • Search API
    • Map
    • Photo,
    • Transportation
    • And so on.
  • Flickr,
  • Amazon.comProvide some rest services, such as S3 storage solutions (see section 6th ),
  • AtomIs to replace the restful architecture of RSS.

(The list of rest APIS is countless)

Here is a simple example: the URL below is for Yahoo! The Web Search Service sends a rest request: http://search.yahooapis.com/WebSearchService/V1/webSearch? Appid = yahoodemo & query = rest. Click it and observe the XML result. You can use it directly andNoIt is encapsulated in the SOAP envelope, and there is no useless information.

  • A rest request contains two parameters. "appid" is used to identify an application. "query" refers to a query.
  • If you plan to use Yahoo! Make sure that you have created your own apid. References.

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.