googlecloudendpoints discovery doc将https://附加到基和根u

2024-04-29 21:34:50 发布

您现在位置:Python中文网/ 问答频道 /正文

已经发现发现,使用端点scfg.py将https://附加到端点中提供的主机名api.用于例如:

endpoints.api(name='test',
    version='v1',
    description='description',
    audiences=AUDIENCES,
    allowed_client_ids=CLIENT_IDS,
    hostname='abc.com')(TestService)

生成的发现文档中有问题的部分如下:

^{pr2}$

我只需要http而不是https附加到上面的url。有办法实现吗?在

请帮忙。 提前谢谢。在


Tags: namepyhttpstestapiversiondescription端点
1条回答
网友
1楼 · 发布于 2024-04-29 21:34:50

不支持自定义域。如果使用hostname='myapp.appspot.com',则必须使用https,因为下面的路径

https://myapp.appspot.com/_ah/api/.*

由Google的API基础设施而不是你的应用程序控制。对于这些uri,只允许https。在

相关问题 更多 >