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?
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With