Reputation: 6029
I want to provide a REST API for my Django application which will run on Google App engine. I stumbled upon appengine-rest-server and found to be useful. But i would like to get some real world usage examples if any, and any gotchas. Is there any better alternatives to consider?
Upvotes: 8
Views: 1762
Reputation: 175
Currently, appengine-rest-server doesn't support ndb models.
Upvotes: 0
Reputation: 1002
UPDATE i recommend to take a look on: django-tastypie which turned out to work even nicer than django-piston it helps you also with things like versioning your API and mamange multiple endpoints nicly
Upvotes: 2
Reputation: 15143
I'm using django-nonrel with tastypie. I needed to make a couple of small code changes at the time, but I think the latest versions in the repos work together.
http://eatdev.tumblr.com/post/12076483835/tastypie-on-django-nonrel-on-app-engine
Because of the lack of many-to-many relations, I've been using ListProperties, and they seem to work fine with tastypie.
tastypie APIs are designed to match models. If your API will be creating/getting/updating/deleting instances of your models, tastypie will require less code.
django-piston is very popular too, but I haven't tried it on app engine.
Upvotes: 6
Reputation: 1291
I think that currently the best option for writing a REST API is django-piston https://bitbucket.org/jespern/django-piston, and I think that it should work perfectly with Google AppEngine, although I never tried it.
Upvotes: 2
Reputation: 4822
I've used restlet on app engine without any issues. http://www.restlet.org/
I stopped using it in favor of just using basic HttpServlet for posts and gets of json data.
Upvotes: 0