Original address: http://rest.elkstein.org/
Learn rest: a tutorial
A fast-training courseRest-
RePresentationalSTateTRansfer, 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.