Rest based webservices with Cherrypy

4 views
Skip to first unread message

pantagruel

unread,
Apr 16, 2007, 5:36:56 PM4/16/07
to cherrypy-users
Hi,

I want to make some sample Rest based webservices with Cherrypy, some
of the things I need to do for it are:

restrict particular methods from working on particular URIs, return
particular headers dependent on what Method was used.

make a post to an external site, get response, process, save processed
response locally, return new URI as response.

Anyone have examples of these kind of things in Cherrypy? Especially
of checking what method was used on a resource.

Cheers,
Bryan Rasmussen

anders pearson

unread,
Apr 16, 2007, 5:52:54 PM4/16/07
to cherryp...@googlegroups.com
On 2007-04-16 21:36:56 -0000, pantagruel wrote:
> Anyone have examples of these kind of things in Cherrypy? Especially
> of checking what method was used on a resource.

see:

http://code.google.com/p/microapps/wiki/RestResource

You can easy_install it.

--
anders pearson : http://www.columbia.edu/~anders/
C C N M T L : http://www.ccnmtl.columbia.edu/
weblog : http://thraxil.org/

Sylvain Hellegouarch

unread,
Apr 17, 2007, 2:38:26 AM4/17/07
to cherryp...@googlegroups.com

With CherryPy 3 you can replace the default dispatcher with a HTTP
Method one. See an example there:

https://code.cherrypyessentials.com/trunk/photoblog-0.1.0/services/rest/

- Sylvain

Reply all
Reply to author
Forward
0 new messages