appengine-rest-server icon indicating copy to clipboard operation
appengine-rest-server copied to clipboard

handle ndb models

Open GoogleCodeExporter opened this issue 9 years ago • 8 comments

You cannot use the rest-server with ndb models.

Original issue reported on code.google.com by [email protected] on 14 May 2012 at 8:39

GoogleCodeExporter avatar Mar 15 '15 00:03 GoogleCodeExporter

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

Original comment by [email protected] on 15 May 2012 at 12:13

  • Added labels: Type-Enhancement, Priority-Low
  • Removed labels: Type-Defect, Priority-Medium

GoogleCodeExporter avatar Mar 15 '15 00:03 GoogleCodeExporter

This would be very useful. I was just thinking of migrating my app ti use ndb.

Original comment by [email protected] on 7 Feb 2013 at 9:03

GoogleCodeExporter avatar Mar 15 '15 00:03 GoogleCodeExporter

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

Original comment by [email protected] on 7 Feb 2013 at 9:06

GoogleCodeExporter avatar Mar 15 '15 00:03 GoogleCodeExporter

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 [email protected] on 7 Feb 2013 at 9:58

GoogleCodeExporter avatar Mar 15 '15 00:03 GoogleCodeExporter

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

Original comment by [email protected] on 26 Mar 2013 at 3:04

GoogleCodeExporter avatar Mar 15 '15 00:03 GoogleCodeExporter

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 [email protected] on 23 Oct 2013 at 7:36

GoogleCodeExporter avatar Mar 15 '15 00:03 GoogleCodeExporter

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 [email protected] on 23 Oct 2013 at 7:56

GoogleCodeExporter avatar Mar 15 '15 00:03 GoogleCodeExporter

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 [email protected] on 24 Oct 2013 at 8:53

GoogleCodeExporter avatar Mar 15 '15 00:03 GoogleCodeExporter