Skip to content

Swagger Codegen Workflow Integration

Maven Integration

You can use the swagger-codegen-maven-plugin for integrating with your workflow, and generating any codegen target.

Gradle Integration

Gradle Swagger Generator Plugin is available for generating source code and API document.

GitHub Integration

To push the auto-generated SDK to GitHub, we provide git_push.sh to streamline the process. For example:

  1. Create a new repository

  2. Generate the SDK

Terminal window
1
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \
2
-i modules/swagger-codegen/src/test/resources/2_0/petstore.json -l perl \
3
--git-user-id "swaggerapi" \
4
--git-repo-id "petstore-perl" \
5
--release-note "Github integration demo" \
6
-o /var/tmp/perl/petstore
  1. Push the SDK to GitHub
Terminal window
1
cd /var/tmp/perl/petstore
2
/bin/sh ./git_push.sh