/jetbrains-swagger-import

A plugin to create code from a swagger.json integrated in Jetbrains' IDE

Primary LanguageKotlin

jetbrains-swagger-import

This Fancy IntelliJ Platform Plugin allow you to generate swagger implementation from a swagger.json config

Implementions available

  • Typescript:
    • Fetch
    • Axios
    • Inversify
    • Generate Unit tests
  • Java/Kotlin:
    • Retrofit2
    • Retrofit 2 (with coroutine support)

Installation

  • Using IDE built-in plugin system:

    Preferences > Plugins > Marketplace > Search for " jetbrains-swagger-import" > Install Plugin

  • Manually:

    Download the latest release and install it manually using Preferences > Plugins > ⚙️ > Install plugin from disk...

Usage

Start the plugin

Fill fields

  1. Url to the swagger.json file
  2. Output type (see implementations available)
  3. The output folder
  4. Generate (OK)

Specific fields for Java/Kotlin implementation

  1. Url to the swagger.json file
  2. Select Java (retrofit2) or Kotlin (retrofit2)
  3. The output folder
  4. Ensure that Java package and build.gradle location are correct
  5. Generate (OK)


Plugin based on the IntelliJ Platform Plugin Template.