运行 非默认模块上的 appengine 端点
Run appengine endpoints on non-default module
我试图 运行 非默认模块上的应用引擎端点,但生成的 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 打开:
编辑
上有一个相关问题
好的,开始运行了。
基本上我在构建 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();
我试图 运行 非默认模块上的应用引擎端点,但生成的 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 打开:
编辑
上有一个相关问题好的,开始运行了。 基本上我在构建 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();