[英]How to reuse google cloud endpoints in multiple projects in android studio
I am new in google cloud endpoints. 我是google cloud端点的新手。 I had successfully created some endpoints.
我已经成功创建了一些端点。 Now I want to use APIs from these endpoints in other projects.
现在,我想在其他项目中使用来自这些端点的API。 For that, I will be needing APIs classes.
为此,我将需要API类。 Is there any way to compile my backend in other projects and get the API classes in other projects.
有什么办法可以在其他项目中编译我的后端并在其他项目中获取API类。
You need clients for your API. 您需要API的客户端。 You can use the Google Endpoints documentation to generate Java clients , or you can use the OpenAPI spec from your API to generate clients with a tool like swagger-codegen .
您可以使用Google Endpoints文档生成Java客户端 ,也可以使用API中的OpenAPI规范通过swagger-codegen之类的工具生成客户端。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.