Google App Engine + Python中的REST API?
如何通过Google App Engine和Python创建RESTful API?我已经尝试过使用Cloud
Endpoints,但是该文档并不专注于RESTful API。是否有类似于django-tastypie的GAE?
-
RESTful api可以基于EndPoint API构建。有一些工具可以帮助您简化工作:
appengine REST服务器(不基于端点)
Google App Engine应用程序的嵌入式服务器,无需额外的工作即可通过REST API公开您的数据模型。
https://code.google.com/p/appengine-rest-
server/另一个基于端点
通过扩展ndb.Model类和终结点库提供的功能,该库使您可以直接与API方法中的模型实体进行交互,而不必与ProtoRPC请求进行交互。例如,代替:
https://github.com/GoogleCloudPlatform/endpoints-proto-
datastore编辑1:
我为端点编写了RESTFul api生成器。
# generate restful api in one line BigDataLab = EndpointRestBuilder(GPCode).build( api_name="BigDataLab", name="bigdatalab", version="v1", description="My Little Api" )
回购:https :
//github.com/Tagtoo/endpoints-proto-datastore-
rest