rest.elkstein.org
Learn REST: A Tutorial: 12.6. Using REST in Python
http://rest.elkstein.org/2008/02/using-rest-in-python.html
Learn REST: A Tutorial. A fast-training course for REST. Ransfer, a new approach to systems architecture and a lightweight alternative to web services. 126 Using REST in Python. Makes reading URLs trivial:. Import urllib2 url = 'http:/ www.acme.com/products/3322' response = urllib2.urlopen(url).read(). Errors are reported as exceptions (. A POST request is just as easy, simply passing (encoded) request data as an extra parameter to. Note that encoding is done using a function from the. 1 What is REST?
rest.elkstein.org
Learn REST: A Tutorial: 12.2. Using REST in Java
http://rest.elkstein.org/2008/02/using-rest-in-java.html
Learn REST: A Tutorial. A fast-training course for REST. Ransfer, a new approach to systems architecture and a lightweight alternative to web services. 122 Using REST in Java. Issuing HTTP GET Requests. The key class here is. Object. Sadly,. Method's signature specifies that it returns the superclass type,. And we have to downcast the result. The following method issues a request and returns the entire response as one long string:. This code is very raw; it should be properly padded with. Public static S...
rest.elkstein.org
Learn REST: A Tutorial: 8. REST Architecture Components
http://rest.elkstein.org/2008/02/rest-architecture-components.html
Learn REST: A Tutorial. A fast-training course for REST. Ransfer, a new approach to systems architecture and a lightweight alternative to web services. 8 REST Architecture Components. Key components of a REST architecture:. Which are identified by logical URLs. Both state. Are represented using resources. The logical URLs imply that the resources are universally addressable. By other parts of the system. Resources are the key element of a true RESTful design. And then a ". A web of resources. Whenever po...
rest.elkstein.org
Learn REST: A Tutorial: 10. ROA vs. SOA, REST vs. SOAP
http://rest.elkstein.org/2008/02/roa-vs-soa-rest-vs-soap.html
Learn REST: A Tutorial. A fast-training course for REST. Ransfer, a new approach to systems architecture and a lightweight alternative to web services. 10 ROA vs. SOA, REST vs. SOAP. ROA (REST Oriented Architecture) is just a fancy name for a SOA (Service Based Architecture) using REST services. For example, when explaining why they chose REST over SOAP, Yahoo! People write that they " believe REST has a lower barrier to entry, is easier to use than SOAP, and is entirely sufficient for [Yahoo's] services.
rest.elkstein.org
Learn REST: A Tutorial: 5. REST Server Responses
http://rest.elkstein.org/2008/02/rest-server-responses.html
Learn REST: A Tutorial. A fast-training course for REST. Ransfer, a new approach to systems architecture and a lightweight alternative to web services. 5 REST Server Responses. A server response in REST is often an XML file; for example,. However, other formats can also be used; unlike SOAP services, REST is not. Bound to XML in any way. Possible formats include CSV. Comma-separated values) and JSON. One option is not. Acceptable as a REST response format, except in very specific cases: HTML, or any othe...
rest.elkstein.org
Learn REST: A Tutorial: 6. Real REST Examples
http://rest.elkstein.org/2008/02/real-rest-examples.html
Learn REST: A Tutorial. A fast-training course for REST. Ransfer, a new approach to systems architecture and a lightweight alternative to web services. 6 Real REST Examples. So without further ado, some REST services:. The Google Glass API, known as "Mirror API", is a pure REST API. Here is an excellent video talk. About this API. (The actual API discussion starts after 16 minutes or so.). Twitter has a REST API. Offer several REST services, e.g., for their S3 storage solution. By Dr M. Elkstein. Serious...
rest.elkstein.org
Learn REST: A Tutorial: 7. AJAX and REST
http://rest.elkstein.org/2008/02/ajax-and-rest.html
Learn REST: A Tutorial. A fast-training course for REST. Ransfer, a new approach to systems architecture and a lightweight alternative to web services. 7 AJAX and REST. Is a popular web development technique that makes web pages interactive using JavaScript. In AJAX, requests are sent to the server using. Objects. The response is used by the JavaScript code to dynamically change the current page. In many ways, AJAX applications follow the REST design principles. Each. By Dr M. Elkstein. Sorry, Im confused.
rest.elkstein.org
Learn REST: A Tutorial: 12.1. Using REST in C#
http://rest.elkstein.org/2008/02/using-rest-in-c-sharp.html
Learn REST: A Tutorial. A fast-training course for REST. Ransfer, a new approach to systems architecture and a lightweight alternative to web services. 121 Using REST in C#. Issuing HTTP GET Requests. The key classes here are. The following method issues a request and returns the entire response as one long string:. Remember that if the request URL includes parameters, they must be properly encoded (e.g., a space is. Namespace has a class called. With a static method called. For just such encoding. April...
rest.elkstein.org
Learn REST: A Tutorial: 12.7. Using REST in Ruby
http://rest.elkstein.org/2008/02/using-rest-in-ruby.html
Learn REST: A Tutorial. A fast-training course for REST. Ransfer, a new approach to systems architecture and a lightweight alternative to web services. 127 Using REST in Ruby. Sending HTTP requests in Ruby is extremely easy. We use the class Net: HTTP. To do all the magic:. Require 'net/http' url = 'http:/ www.acme.com/products/3322' # ACME boomerang. Resp = Net: HTTP.get response(URI.parse(url) resp text = resp.body. In the example above) will be of type. If the response is 2 xx. HTTP OK code), or.
rest.elkstein.org
Learn REST: A Tutorial: 12. REST Examples in Different Languages
http://rest.elkstein.org/2008/02/rest-examples-in-different-languages.html
Learn REST: A Tutorial. A fast-training course for REST. Ransfer, a new approach to systems architecture and a lightweight alternative to web services. 12 REST Examples in Different Languages. The following sections provide brief examples for accessing REST services in different programming languages. More than anything else, they present mechanisms for sending HTTP GET and/or POST requests in each language; the rest of using REST is simply a matter of architectural design. By Dr M. Elkstein. Can you pro...