问题描述
我使用谷歌云端点在google appengine上写了一套apis。我想通过发布通过api-explorer生成的文档来发布这些api以供其他开发人员使用。为此,我希望我的API可以在诸如 https://api.example.com/v1/
之类的url上公开,但是通过appengine生成的所有api端点都有一个url签名为 https://module-dot-project-name.appspot.com/_ah/api/v1/
。我试图使用dispatch文件将我的api.example.com映射到为api提供服务的模块,但我无法让我的apis在我自己的域名地址上工作。
1)如何让我的apis工作在我自己的域名上?
2)我使用api-explorer服务于我自己的域名地址发布我的api文档?在诸如 https://apis-explorer.appspot.com/apis-explorer/?base=https://api.example.com#p/
之类的网址上1)现在可以使用称为Cloud Endpoints Framework的新版云终端。 ,但如果您使用的是应用程序引擎标准环境,它只是工作。
2)我不知道是可能的。我只写了这个答案地址编号1.:)
I have set of apis written on google appengine using google cloud endpoints. I want to publish these api's for other developers to consume by releasing the documentation generated through api-explorer. For this I would want my apis to be exposed on url such as https://api.example.com/v1/
but all my api endpoints generated through appengine have a url signature as https://module-dot-project-name.appspot.com/_ah/api/v1/
. I have tried mapping my api.example.com to the module serving the api's using the dispatch file, but I could not get my apis to work on my own domain address.
1) How can I get my apis to work on my own domain name?
2) How can I publish my api documentation using api-explorer serving on my own domain address? On url such as https://apis-explorer.appspot.com/apis-explorer/?base=https://api.example.com#p/
1) is now possible with the newer version of cloud endpoints, called Cloud Endpoints Framework. Here is the documentantion, but if you are using the App Engine Standard environment it just works.
2) I'm not sure is possible. I only wrote this answer to addres number 1. :)
这篇关于在自定义域名url地址上暴露appengine云端点API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!