gradle-swagger-generator-plugin

(β˜… 309)

Gradle plugin for OpenAPI YAML validation, code generation and API document publishing

  • .editorconfig
  • .gitignore
  • build.gradle
  • gradlew
  • gradlew.bat
  • LICENSE
  • README.md
  • settings.gradle

# Installation Guide

1. Get the code
git clone https://github.com/int128/gradle-swagger-generator-plugin

Downloads the entire project code from GitHub to your computer.

cd gradle-swagger-generator-plugin

Moves into the project folder you just downloaded.

2. Gradle (Java/Kotlin)

Medium Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • JDK (Java) Required to build and run Java/Kotlin projects.
  • Gradle If the repo includes gradlew (Gradle Wrapper), you don't need to install Gradle separately.
% ./gradlew generateSwaggerCode

Builds the project using Gradle.

% ./gradlew generateSwaggerUI

Builds the project using Gradle.

% ./gradlew generateReDoc

Builds the project using Gradle.

% ./gradlew generateSwaggerCodePetstoreHelp

Builds the project using Gradle.

// build.gradle

Builds the project using Gradle.

βœ… A BUILD SUCCESSFUL message means it worked. The output is created under build/.

Pulled directly from this repo's README.

// repository documentation