A ReST interface for appengine datastore.Restify accepts and returns data only in JSON format.Restify is CSOR compatible.
import webapp2
import ReSTify
application = webapp2.WSGIApplication(
[
('/api/.*', ReSTify.ReST),
],
debug=True)
Retrieve all the entities in the particular datastore /api/<model_name>/
Gets information about an entity /api/<model_name>/<id>/
Create an entity in the particular datastore /api/<model_name>/
Delete a particular entity /api/<model_name>/<id>/
Edit a particular entity /api/<model_name>/<id>/
- 200 -> Ok -> When the requested data is retrieved successfully
- 201 -> Created -> When a new object is created
- 404 -> Not Found -> When the requested data was not found in the server.
- 400 -> Bad request -> When the request id or model name is incorrect
- 204 -> No Content -> When data is deleted successfully from the server and there is no data to retrieve