Copyright 2008 Boomi, Inc. All rights reserved.
Basic REST server for Google App Engine Applications using the builtin Datastore API.
For extended feature list, see http://code.google.com/p/appengine-rest-server/
========
For example client usage, see example.txt.
========
To use with an existing application:
import rest
application = webapp.WSGIApplication([ <... existing webservice urls ...> ('/rest/.*', rest.Dispatcher) ], ...)
rest.Dispatcher.base_url = "/rest"
rest.Dispatcher.add_models_from_module(name)
rest.Dispatcher.add_models_from_module(my_model_module)
rest.Dispatcher.add_models({ "foo": FooModel, "bar": BarModel})
rest.Dispatcher.add_models({ "foo" : (FooModel, rest.READ_ONLY_MODEL_METHODS), "bar" : (BarModel, ["GET_METADATA", "GET", "POST", "PUT"], "cache" : (CacheModel, ["GET", "DELETE"] })
rest.Dispatcher.authenticator = MyAuthenticator() rest.Dispatcher.authorizer = MyAuthorizer()