Python Google cloud endpoints discovery doc将https://附加到基本url和根url
已经发现,使用endpointscfg.py生成的发现文档将https://附加到endpoints api中提供的主机名。例如:Python Google cloud endpoints discovery doc将https://附加到基本url和根url,python,google-cloud-endpoints,Python,Google Cloud Endpoints,已经发现,使用endpointscfg.py生成的发现文档将https://附加到endpoints api中提供的主机名。例如: endpoints.api(name='test', version='v1', description='description', audiences=AUDIENCES, allowed_client_ids=CLIENT_IDS, hostname='abc.com')(TestService) 生成的发现文档的问题
endpoints.api(name='test',
version='v1',
description='description',
audiences=AUDIENCES,
allowed_client_ids=CLIENT_IDS,
hostname='abc.com')(TestService)
生成的发现文档的问题部分如下所示:
"protocol": "rest",
"baseUrl": "https://abc.com/_ah/api/test/v1/",
"basePath": "/_ah/api/test/v1/",
"rootUrl": "https://abc.com/_ah/api/",
我只需要http而不是https附加到上述URL。有没有办法做到这一点
请帮忙。
提前感谢。不支持自定义域。如果使用
hostname='myapp.appspot.com'
,则必须使用https
,因为
https://myapp.appspot.com/_ah/api/.*
由Google的API基础设施控制,而不是由您的应用程序控制。对于这些URI,只允许使用https