Is there sample app that provides REST API?

564 views
Skip to first unread message

Jemes Hsu

unread,
Jan 29, 2012, 9:46:51 PM1/29/12
to pylons-...@googlegroups.com
I'm new to Pyramid and would like to get an overview of how one implements REST API in Pyramid. Is there any such sample app? 

Sample app idea for Pyramid guru to quickly cook up one and blog about it:

Both EmberJS and BackboneJS tutorial has a TODO list example app that access a backend REST API. It would be great to adapt the sample app to use a Pyramid REST backend. For example this guy uses Rails as backend http://www.cerebris.com/blog/2012/01/24/beginning-ember-js-on-rails-part-1/


Wyatt Baldwin

unread,
Jan 29, 2012, 11:48:04 PM1/29/12
to pylons-...@googlegroups.com
There are at least two packages aimed specifically at building RESTful APIs on top of Pyramid: Cornice and pyramid_restler. Cornice is more mature and better documented. pyramid_restler provides a very basic SQLAlchemy/Mako/jQuery sample app here: https://bitbucket.org/wyatt/pyramid_restler/src/67ecf062d9b2/examples.

https://github.com/mozilla-services/cornice
https://bitbucket.org/wyatt/pyramid_restler

Tarek Ziadé

unread,
Jan 29, 2012, 11:51:36 PM1/29/12
to pylons-...@googlegroups.com

For cornice we've uploaded some docs at http://packages.python.org/cornice

Cheers

On Jan 29, 2012 8:48 PM, "Wyatt Baldwin" <wyatt.le...@gmail.com> wrote:

Jemes Hsu

unread,
Jan 30, 2012, 9:41:32 AM1/30/12
to pylons-...@googlegroups.com
Thanks for all the pointers.
Reply all
Reply to author
Forward
0 new messages