I think we're going to have to agree to disagree here.  In addition to
the quote from the Wikipedia article below, a quick google of Amazon's
SimpleDB show them defining URLs with query strings as RESTful:

http://docs.amazonwebservices.com/AmazonSimpleDB/2007-11-07/DeveloperGuide/index.html?MakingRESTRequests.html

not to say that Wikipedia or Amazon are necessisarily right but I
haven't seen any definitions that say empirically that URLs with query
strings are not RESTful.

On Oct 23, 4:12 pm, "Carl Nobile" <[EMAIL PROTECTED]> wrote:
> Yes, but a command line with arguments is not RESTful. This is REST:
>
> /v1/users/  -> GET, HEAD, OPTION, PUT
> /v1/users/{user name}/ -> DELETE, HEAD, GET, OPTION, PUT
>
> You break down the URIs into business units, something that the CEO of the
> company can understand not something that only developers understand. You
> don't send all sorts of info that goes into an SQL query on a command line.
> You setup the URIs to handle all the different USE CASES that are necessary
> to do the work you need done. I'm not saying you cannot use CGI variables,
> but they are not used like they used to be. Yes, this is more work for the
> developer, but makes your web services loosely  coupled and more idempotent
> allowing them to be used for many different things. REST is used when you
> are building horizontal layers (new way) not vertical silos (old way).
>
> If you are using HTML pages in a REST environment it is probably not REST or
> at best it's a REST/RPC hybrid.
>
> If you want to continue this chat find my email on my web site and email 
> me:http://www.tetrasys.homelinux.org/
>
> -Carl
>
>
>
> On Thu, Oct 23, 2008 at 3:48 PM, wmiller <[EMAIL PROTECTED]> wrote:
>
> > I think it depends on how you define a stateless cacheable resource.
> > I would like someone to clearly and explicitly demonstrate how a web
> > URL with a query string does not have these RESTful properties.
>
> > e.g.http://en.wikipedia.org/wiki/Representational_State_Transfer
>
> > "One can argue that any sufficiently rich command line interface can
> > be considered "ReSTful" ... in that a fully qualified command line and
> > set of switches/options and arguments can access any accessible
> > application state. A web URL with query string is effectively a sort
> > of command line with arguments."
>
> > On Oct 23, 3:27 pm, "Carl Nobile" <[EMAIL PROTECTED]> wrote:
> > > Actually no, that would not be REST if you do everything from one URL.
> > You
> > > need to read RESTful Web Services by Leonard Richardson & Sam Ruby ISBN:
> > > 978-0-596-52926-0. This book has become the RESTful bible. Also read
> > > RFC-2616 (http://www.faqs.org/rfcs/rfc2616.html) the HTTP 1.1 standard
> > > document it explains the use of the HTTP methods, DELETE, GET, HEAD,
> > OPTION,
> > > POST,  and PUT. There are two more but are not used in REST. You will
> > also
> > > be using a lot more status codes besides 200, 404, 500.
>
> > > -Carl
>
> > > On Thu, Oct 23, 2008 at 3:11 PM, wmiller <[EMAIL PROTECTED]>
> > wrote:
>
> > > > On Oct 23, 12:15 pm, "Carl Nobile" <[EMAIL PROTECTED]> wrote:
> > > > > If you're doing REST, which is what I do, you need to keep in mind
> > that
> > > > REST
> > > > > is very URI intensive. Trying to define all of them in apache config
> > > > files
> > > > > is an impossible task. Remember these are URIs not URLs. URIs point
> > to a
> > > > > virtual object not a physical one and with a large database you can
> > have
> > > > > millions of them. Trying to do these in apache even using REGEX and
> > > > rewrite
> > > > > rules will never be as dynamically able to handle the number of URIs
> > you
> > > > > could have in a REST web service, doing it in code is a much more
> > robust
> > > > way
> > > > > to do it.
>
> > > > > If you are really mapping files to URLs then maybe REST isn't what
> > you
> > > > need.
>
> > > > > -Carl
>
> > > > why do they have to be mutually exclusive?  A single physical html
> > > > file can have RESTful properties and serve as a basis for looking up
> > > > many items in a database:
>
> > > >http://example.com/index.html?order_no=4
>
> > > > The above has all the qualities of being RESTful.  It points to a
> > > > stateless resource and it's cacheable.
>
> > > --
>
> > ---------------------------------------------------------------------------
> > ----
> > > Carl J. Nobile (Software Engineer)
> > > [EMAIL PROTECTED]
>
> > ---------------------------------------------------------------------------
> > ----
>
> --
> --------------------------------------------------------------------------- 
> ----
> Carl J. Nobile (Software Engineer)
> [EMAIL PROTECTED]
> --------------------------------------------------------------------------- 
> ----
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to modwsgi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to