class MyModel(ndb.Model):
    property1 = ndb.StringProperty()
property2 = ndb.StringProperty()
owner = ndb.KeyPropertyProperty(kind='User')


class RESTMeta:
    user_owner_property = 'owner'
include_output_properties = ['property1']
app = webapp2.WSGIApplication([RESTHandler('/api/mymodel', MyModel,
    permissions={'GET': PERMISSION_ANYONE, 'POST':
    PERMISSION_LOGGED_IN_USER, 'PUT': PERMISSION_OWNER_USER, 'DELETE':
    PERMISSION_ADMIN}, put_callback=lambda model, data: model),
    UserRESTHandler('/api/users', user_model=MyUser,
    user_details_permission=PERMISSION_OWNER_USER, verify_email_address=
    True, verification_email={'sender': 'John Doe <john@doe.com>',
    'subject': 'Verify your email address', 'body_text':
    'Click here {{ user.full_name }}: {{ verification_url }}', 'body_html':
    '<a href="{{ verification_url }}">Click here</a> {{ user.full_name }}'},
    verification_successful_url='/verification_successful',
    verification_failed_url='/verification_failed', reset_password_url=
    '/reset_password', reset_password_email={'sender':
    'John Doe <john@doe.com>', 'subject': 'Please reset your password',
    'body_text': 'Reset here: {{ verification_url }}', 'body_html':
    '<a href="{{ verification_url }}">Click here</a> to reset'})], debug=
    True, config=config)
REST API в Google App Engine + Python?