【问题标题】:Exposing appengine cloud endpoints api on custom domain url address在自定义域 url 地址上公开 appengine 云端点 api
【发布时间】:2016-04-06 11:16:07
【问题描述】:

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

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

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

【问题讨论】:

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


    【解决方案1】:

    1) 现在可以使用称为 Cloud Endpoints Framework 的较新版本的云端点。 Here is the documentantion,但如果您使用的是 App Engine 标准环境,它就可以工作。

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

    【讨论】:

      【解决方案2】:

      不幸的是,你不能。来自documentation

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

      【讨论】:

        猜你喜欢
        • 2019-04-19
        • 1970-01-01
        • 1970-01-01
        • 2017-06-03
        • 1970-01-01
        • 1970-01-01
        • 2018-09-18
        • 1970-01-01
        • 2018-09-02
        相关资源
        最近更新 更多