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
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/
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