在自定义域网址

时间:2016-04-06 11:16:07

标签: java rest google-app-engine google-cloud-endpoints

我使用google cloud端点在google appengine上写了一组api。我想通过发布通过api-explorer生成的文档来发布这些api供其他开发人员使用。为此,我希望我的api在https://api.example.com/v1/等网址上公开,但我通过appengine生成的所有api端点都有一个网址签名为https://module-dot-project-name.appspot.com/_ah/api/v1/。我已经尝试使用调度文件将我的api.example.com映射到为api提供服务的模块,但我无法让我的apis在我自己的域地址上工作。

1)如何让我的api工作在我自己的域名上?

2)如何使用api-explorer在我自己的域名地址上发布我的api文档?在诸如https://apis-explorer.appspot.com/apis-explorer/?base=https://api.example.com#p/

之类的网址上

2 个答案:

答案 0 :(得分:0)

不幸的是,你做不到。来自documentation

  

注意:Google Cloud Endpoints不支持自定义域。

答案 1 :(得分:0)

1)现在可以使用更新版本的云端点,称为云端点框架。 Here is the documentantion,但如果您使用的是App Engine Standard环境,它就可以正常运行。

2)我不确定是否可能。我只把这个答案写给地址1:)