I've set up a very simple REST API on top of the awesome endpoints-proto-datastore library, which relies on endpoints v1.0.0 included in Google Cloud Built-in Third-party Libraries.
我在令人敬畏的端点 - 原始数据存储库之上建立了一个非常简单的REST API,它依赖于Google Cloud内置第三方库中包含的端点v1.0.0。
This API serves data to an Angular 6 app.
此API为Angular 6应用程序提供数据。
I've set up Firebase/Angularfire authentication as well. Now, when I try to authenticate API calls using Firebase following the example in the docs, I can't use the Firebase "issuer" object required as it is not available in endpoints v1.0.0.
我也设置了Firebase / Angularfire身份验证。现在,当我尝试按照文档中的示例使用Firebase对API调用进行身份验证时,我无法使用Firebase“issuer”对象,因为它在端点v1.0.0中不可用。
Seems the solution is to upgrade endpoints, which I do to v4.3.0 (latest as of today, I've also tried v2, v3).
似乎解决方案是升级端点,我做到v4.3.0(最新截至今天,我也尝试过v2,v3)。
When I run my app, the API does not accept calls to /_ah/spi anymore:
当我运行我的应用程序时,API不再接受对/ _ah / spi的调用:
ValueError: Invalid request path: /_ah/spi/BackendService.getApiConfigs
Any idea what am I doing wrong?
知道我做错了什么吗?
1 个解决方案
#1
0
As shown in the migration docs, in the new Endpoints version, you accept requests on /_ah/api
instead of /_ah/spi
如迁移文档中所示,在新的Endpoints版本中,您接受/ _ah / api上的请求而不是/ _ah / spi
#1
0
As shown in the migration docs, in the new Endpoints version, you accept requests on /_ah/api
instead of /_ah/spi
如迁移文档中所示,在新的Endpoints版本中,您接受/ _ah / api上的请求而不是/ _ah / spi