[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] REST::Application


On 7/2/05, Christopher Hicks <suppressed> wrote:
> On Fri, 1 Jul 2005, Cees Hek wrote:
> > I don't know what REST stands for or what a RESTful
> > webapp is, so I am a little bit lost on this one.
> 
> Roy Thomas Fielding wrote a doctoral dissertation in 2000 which can be
> found online ( http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm
> ) which defined REST.  REST is a set of principles for designing web apps
> that everyone should at least be familiar with.  The core idea was the
> URL's should make sense and could be used to perform queries or refer to
> unique items.  SOAP and cgiapp tend to have a single URL for everything
> and data sent via POST, so there's no URL that refers to object #123.

I don't necessarily agree with this last statement. I often use a combination of
PATH_INFO and either mod_rewrite or .htaccess with cgiapp, so I might have
something like:

    http://www.example.com/articles/view/123

which would be a unique URL to view article 123. (This would either rewrite the
URL to point to a script, or .htaccess would mark the resource 'articles' as
executable.)

I think cgiapp works fine for RESTful applications, personally -- so long as you
utilize PATH_INFO to do the final URL mapping.

-- 
Matthew Weier O'Phinney
suppressed
http://weierophinney.net/matthew/

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.