Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Appengine REST library - Python and Django

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?

like image 641
18bytes Avatar asked Dec 25 '11 21:12

18bytes


3 Answers

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.

like image 126
dragonx Avatar answered Nov 18 '22 10:11

dragonx


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.

like image 44
pyriku Avatar answered Nov 18 '22 12:11

pyriku


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

like image 2
martyglaubitz Avatar answered Nov 18 '22 11:11

martyglaubitz