List Info

Thread: Rest based webservices with Cherrypy




Rest based webservices with Cherrypy
country flaguser name
United States
2007-04-16 16:36:56
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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Rest based webservices with Cherrypy
country flaguser name
United States
2007-04-16 16:52:54
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.col
umbia.edu/
        weblog : http://thraxil.org/
Re: Rest based webservices with Cherrypy
country flaguser name
United Kingdom
2007-04-17 01:38:26
pantagruel wrote:
> 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.
> 

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

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

- Sylvain

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )