[英]Google Cloud Endpoints v2 custom domain with non-default app engine service
[英]Run appengine endpoints on non-default module
我试图在非默认模块上运行App Engine端点,但是生成的JAR并没有指向正确的模块。
我的模块名称是:
<module>business-module</module>
我使用以下命令生成JAR:
business-module:appengineEndpointsInstallClientLibs
当我打开产生的罐子时,我看到:
public static final String DEFAULT_ROOT_URL = "https://project-id.appspot.com/_ah/api/";
public static final String DEFAULT_SERVICE_PATH = "blahApi/v1/";
public static final String DEFAULT_BASE_URL = "https://project-id.appspot.com/_ah/api/blahApi/v1/";
但是从技术上讲应该是:
public static final String DEFAULT_ROOT_URL = "https://1-dot-business-module-dot-project-id.appspot.com/_ah/api/";
public static final String DEFAULT_SERVICE_PATH = "blahApi/v1/";
public static final String DEFAULT_BASE_URL = "https://1-dot-business-module-dot-project-id.appspot.com/_ah/api/blahApi/v1/";
我可以通过以下方式从api资源管理器中运行api:
编辑
错误跟踪器上有一个相关问题
好吧,让它正常工作。 基本上,我在构建Api时将rootURL设置为指向正确的模块:
final BlahApi businessApi = CloudEndPointsUtils.updateBuilder(new BlahApi.Builder(transport, factory, credential)
.setRootUrl("https://1-dot-business-module-dot-project-id.appspot.com/_ah/api/")).build();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.