-
Android代码使用Swagger和Gradle Codegen
资源介绍
Swagger Gradle Codegen
A Gradle plugin to generate networking code from a Swagger spec file.
This plugin wraps swagger-codegen, and exposes a configurable generateSwagger gradle task that you can plug inside your gradle build/workflows.
Getting Started
Swagger Gradle Codegen is distributed through Gradle Plugin Portal. To use it you need to add the following dependency to your gradle files. Please note that those code needs to be added the gradle file of the module where you want to generate