On Sun, Jun 15, 2008 at 1:12 PM, KJ <[EMAIL PROTECTED]> wrote:
> Would Pylons be a good choice for implementing a JSON-RPC-based web
> service?
>
> If yes, can someone point me to a good example?  (Actually, I'd be
> interested in seeing examples of any Pylons-based web service, even if
> it doesn't use JSON.)
>
> If not what other framework would more suited for this task?

I decided to implement a RESTful, JSON API instead of using JSON-RPC.
That means:

* All the parameters are put in GET and POST parameters.
* I shove as much stuff in the URL as makes sense.
* I use HTTP response codes to indicate errors.
* I put whatever the heck I want in the JSON response.
* I use a JSON response for both successes and many failures.

It's not as brain-dead simple as XML-RPC use to be, but it's working for me.

Reading the Wikipedia page on REST was helpful for me.

Best Regards,
-jj

-- 
I, for one, welcome our new Facebook overlords!
http://jjinux.blogspot.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to