jahlborn/appengine-rest-server

handle ndb models

Opened this issue · 8 comments

You cannot use the rest-server with ndb models.

Original issue reported on code.google.com by or...@orser.org on 14 May 2012 at 8:39

NDB: https://developers.google.com/appengine/docs/python/ndb/

Original comment by jahlborn@gmail.com on 15 May 2012 at 12:13

  • Added labels: Type-Enhancement, Priority-Low
  • Removed labels: Type-Defect, Priority-Medium
This would be very useful. I was just thinking of migrating my app ti use ndb.

Original comment by muijsenb...@gmail.com on 7 Feb 2013 at 9:03

https://docs.google.com/document/d/1AefylbadN456_Z7BZOpZEXDq8cR8LYu7QgI7bt5V0Iw/
edit?pli=1

Original comment by muijsenb...@gmail.com on 7 Feb 2013 at 9:06

I agree that it is very useful, I used information from that table to migrate 
my own application and also create NDB DAL for web2py which I finally selected 
instead of appengine-rest-server

Original comment by a...@holubec.net on 7 Feb 2013 at 9:58

Maybe you could make it configurable. So you can choose db or ndb.

Original comment by muijsenb...@gmail.com on 26 Mar 2013 at 3:04

Your example page (and other issues here) suggest using this with the AppEngine 
Guestbook example project; however, as of 23 Oct 2013, that project uses ndb 
instead of db, and so appengine-rest-server does NOT work "out of the box" with 
that project. One must go into their guestboook.py and change ndb to db, which 
is 1) not obvious to newbs like myself, and 2) loses functionality of ndb?

Original comment by cpconser...@gmail.com on 23 Oct 2013 at 7:36

Actually, you can't just change ndb to db; you have to change the query setup 
and other things as well. I was able to get this working only because I copied 
the example code in issue 51...

Original comment by cpconser...@gmail.com on 23 Oct 2013 at 7:56

Can appengine endpoints serve as a replacement? Anyway, found it easy to create 
a rest server for ndb ... here's one modeled for ember.js 
https://github.com/kelonye/gae-ember-rest

Original comment by kelonyem...@gmail.com on 24 Oct 2013 at 8:53