简体   繁体   English

如何在Android Studio中的多个项目中重用Google Cloud端点

[英]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.

相关问题 如何在Android Studio中使用Google端点写入Cloud SQL - How to write to Cloud SQL with Google Endpoints in Android Studio 使用Android Studio的Google Cloud Endpoints对冒号(:)进行编码 - Encoding of colon (:) with Google Cloud Endpoints, Android Studio 具有Firebase和多个云项目的Android Google身份验证 - Android Google Authentication With Firebase And Multiple Cloud Projects Google Cloud端点框架与Android Studio和Gradle 5.1.1不兼容 - Google cloud endpoints framework not compatible with Android studio and gradle 5.1.1 Android Studio Google Cloud Endpoints运行/调试配置错误 - Android Studio Google Cloud Endpoints Run/Debug Config Error 如何使用Android Studio 0.8对Google Cloud Endpoints Java进行单元测试 - How to Unit Test Google Cloud Endpoints Java Using Android Studio 0.8 Android Studio:如何设置生成的Cloud Endpoints资源? - Android Studio: how to setup generated Cloud Endpoints sources? 如何将敏感数据从Android应用传递到Google Cloud Endpoints? - How to pass sensitive data to Google Cloud Endpoints from Android app? 如何在Android客户端上访问特定的Google Cloud Endpoints API版本 - How to access specific Google Cloud Endpoints API versions on android clients 使用Android Studio时如何为Android应用部署Google Endpoints? - How to deploy a Google Endpoints for Android app when using Android Studio?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM