asolfre / appengine-rest-server

Automatically exported from code.google.com/p/appengine-rest-server
Other
0 stars 0 forks source link

handle ndb models #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
NDB: https://developers.google.com/appengine/docs/python/ndb/

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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
https://docs.google.com/document/d/1AefylbadN456_Z7BZOpZEXDq8cR8LYu7QgI7bt5V0Iw/
edit?pli=1

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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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