RESTful API 关于 GAE:endpoints-proto-datastore 与 Cloud Endpoints
RESTful API on GAE: endpoints-proto-datastore vs Cloud Endpoints
我的目标是构建一个由 Google App Engine + NDB Datastore 提供支持的应用程序,它有助于 RESTful API 以便我可以在前端使用 VueJS。
我对这项任务不知所措。根据我的研究,我被指向 endpoints-proto-datastore 和 Google 云端点。 endpoints-proto-datastore 的首页声明如下:
This library is intended to be used with the Python version of Google
Cloud Endpoints.
这句话表明即使这个库也需要、依赖或涉及 Google 云端点。我尝试开始使用 Google Cloud Endpoints,最后涉足 swagger.io 和 Open API。我已经穿过兔子洞几个月了。在这一点上,我正在寻求一些澄清。
我有以下问题:
- 实现我的目标的最佳方法是什么?
- 这两块拼图(Cloud Endpoints 和 endpoints-proto-datastore)之间的关系是什么?
- 开始实现我的目标的最简单方法是什么?
谢谢。
endpoints-proto-datastore 是一个设计用于 Cloud Endpoints Framework for Python 的库。但是,endpoints-proto-datastore 本身并不是 云端点框架 的一部分,并且不受 Google 支持。
虽然可以从任何环境访问 Cloud Datastore,但 ndb Datastore 只能在 App Engine 的标准环境中使用,因此您需要为 Python 使用 Cloud Endpoints Framework,而不是常规的 Cloud Endpoints 功能.
我的目标是构建一个由 Google App Engine + NDB Datastore 提供支持的应用程序,它有助于 RESTful API 以便我可以在前端使用 VueJS。
我对这项任务不知所措。根据我的研究,我被指向 endpoints-proto-datastore 和 Google 云端点。 endpoints-proto-datastore 的首页声明如下:
This library is intended to be used with the Python version of Google Cloud Endpoints.
这句话表明即使这个库也需要、依赖或涉及 Google 云端点。我尝试开始使用 Google Cloud Endpoints,最后涉足 swagger.io 和 Open API。我已经穿过兔子洞几个月了。在这一点上,我正在寻求一些澄清。
我有以下问题:
- 实现我的目标的最佳方法是什么?
- 这两块拼图(Cloud Endpoints 和 endpoints-proto-datastore)之间的关系是什么?
- 开始实现我的目标的最简单方法是什么?
谢谢。
endpoints-proto-datastore 是一个设计用于 Cloud Endpoints Framework for Python 的库。但是,endpoints-proto-datastore 本身并不是 云端点框架 的一部分,并且不受 Google 支持。
虽然可以从任何环境访问 Cloud Datastore,但 ndb Datastore 只能在 App Engine 的标准环境中使用,因此您需要为 Python 使用 Cloud Endpoints Framework,而不是常规的 Cloud Endpoints 功能.