Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
confused about REST API / Query API
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jan-Philip Gehrcke  
View profile  
 More options Jun 14 2009, 10:53 am
From: Jan-Philip Gehrcke <jgehr...@googlemail.com>
Date: Sun, 14 Jun 2009 07:53:25 -0700 (PDT)
Local: Sun, Jun 14 2009 10:53 am
Subject: confused about REST API / Query API
Hey there,

maybe this is a bit off-topic, but I would like to clarify the terms
REST API/Query API with your help. And since boto implemented both of
them, I hope it's not totally wrong.

Regarding S3, Amazon names the REST API/SOAP API as options. At EC2
one can choose between SOAP API/Query API. Can EC2's Query API be
called REST API, too?

I'm not sure about the terms. Wikipedia says (among others): REST
describes "any simple interface that transmits domain-specific data
over HTTP, without an additional messaging layer such as SOAP".

At S3 the REST API requests use HTTP body data, while the EC2 Query
API requests only use the "request line" (or URL). In both cases the
responses contain XML data. So.. I think there is an additional
messaging layer in both cases and I am confused!

Can you help me out there? How would you describe these EC2/S3 REST/
Query API's to a computer scientist? :-)

Thank you,

Jan-Philip Gehrcke


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Neil Soman  
View profile  
 More options Jun 14 2009, 12:13 pm
From: Neil Soman <neilso...@gmail.com>
Date: Sun, 14 Jun 2009 09:13:49 -0700
Local: Sun, Jun 14 2009 12:13 pm
Subject: Re: [boto-users] confused about REST API / Query API
Hello,

I can try to take a stab at it.

REST deals with resources. In case of the S3 API, resources are the
service, buckets and objects. It doesn't matter if the format is JSON,
HTML or XML. There are resources represented by URIs and operations on
the URI representation of the resource are used to manipulate the
resource. That is REST.

Amazon's EC2 Query API does not represent a resource as a URI.
Operations are encoded as URIs but the user is not manipulating a URI
that corresponds to a resource. For instance, if you want to create a
security group, you encode an operation "CreateSecurityGroup" in the
URI, but you are not really manipulating a URI that represents a
resource, i.e. the security group in this case.

See Chapter 5 of Fielding's thesis where it was first defined I think.

http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm

Hope that helps.
neil

On Sun, Jun 14, 2009 at 7:53 AM, Jan-Philip


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mitchell Garnaat  
View profile  
 More options Jun 14 2009, 1:17 pm
From: Mitchell Garnaat <mitch.garn...@gmail.com>
Date: Sun, 14 Jun 2009 13:17:26 -0400
Local: Sun, Jun 14 2009 1:17 pm
Subject: Re: [boto-users] Re: confused about REST API / Query API

I think that's a good explanation.  I would add one thing.  The AWS Query
interfaces use only the GET verb and the actual action being performed is
passed as a parameter in the request.  Also, they always return a 200 OK.  A
real REST interface (like the S3 interface or the original but no longer
available SQS interface) use a rich set of HTTP verbs (GET, PUT, DELETE,
POST, HEAD) and leverage the HTTP response codes defined in the spec.

The AWS Query interface is really like SOAP messages transported via HTTP
GET requests.  At least that's how I think of it.

Mitch


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jan-Philip Gehrcke  
View profile  
 More options Jun 14 2009, 7:55 pm
From: Jan-Philip Gehrcke <jgehr...@googlemail.com>
Date: Sun, 14 Jun 2009 16:55:29 -0700 (PDT)
Local: Sun, Jun 14 2009 7:55 pm
Subject: Re: confused about REST API / Query API
Thank you Neil and Mitch, you helped me a lot!

On 14 Jun., 19:17, Mitchell Garnaat <mitch.garn...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jan-Philip Gehrcke  
View profile  
 More options Jun 29 2009, 8:26 am
From: Jan-Philip Gehrcke <jgehr...@googlemail.com>
Date: Mon, 29 Jun 2009 05:26:01 -0700 (PDT)
Local: Mon, Jun 29 2009 8:26 am
Subject: Re: confused about REST API / Query API
I looked in a book to read about this topic again and found a really
nice summary explaining differences between REST and Query API and
stating a reason why SOAP API is not that famous on client side. If
you like to read this part, too, see below.

Furthermore, I concerned myself with the different API terms and
realizations within AWS. It turns out that the names for the APIs are
not always chosen consequently.

You can read about both, the book excerpt and the inconsistency, in
this blog post:
http://gehrcke.de/2009/06/aws-about-api/

Jan-Philip

On 15 Jun., 01:55, Jan-Philip Gehrcke <jgehr...@googlemail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »