【问题标题】:Google Endpoints Android Client Library for multiple api classes用于多个 api 类的 Google Endpoints Android 客户端库
【发布时间】:2014-10-24 10:14:33
【问题描述】:

我使用 @endpoints.api 装饰器将端点 api 的代码分成几个类。这是 Google (source) 推荐的方式。现在我正在尝试使用命令行工具生成 Android 客户端库。我可以使用以下命令为一个类生成库

endpointscfg.py get_client_lib java -bs gradle api.HelloWorldApi

这行得通。但是我还有其他类也需要成为库的一部分。例如。

endpointscfg.py get_client_lib java -bs gradle api.GoodbyeWorldApi

我不知道如何生成一个包含这两个类的完整库。

【问题讨论】:

    标签: java android python google-app-engine


    【解决方案1】:

    查看了谷歌工具文件夹中的endpointscfg 文件,发现它需要多个remote.service 文件作为参数。所以我能够使用以下命令从所有类创建客户端库 endpointscfg.py get_client_lib java api.GoodbyeWorldApi api.HelloWorldApi -bs gradle

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-14
      • 2014-05-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多