Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.shinyab:swagger-codegen-sdk:0.0.1'
}
dependencies {
implementation("com.github.shinyab:swagger-codegen-sdk:0.0.1")
}
<dependency>
<groupId>com.github.shinyab</groupId>
<artifactId>swagger-codegen-sdk</artifactId>
<version>0.0.1</version>
</dependency>
libraryDependencies += "com.github.shinyab" % "swagger-codegen-sdk" % "0.0.1"
:dependencies [[com.github.shinyab/swagger-codegen-sdk "0.0.1"]]
Building the API client library requires Maven to be installed.
To install the API client library to your local Maven repository, simply execute:
mvn install
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn deploy
Refer to the official documentation for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-android-client</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
Add this dependency to your project's build file:
compile "io.swagger:swagger-android-client:1.0.0"
At first generate the JAR by executing:
mvn package
Then manually install the following JARs:
Please follow the installation instruction and execute the following Java code:
import io.swagger.client.api.TestingApi;
public class TestingApiExample {
public static void main(String[] args) {
TestingApi apiInstance = new TestingApi();
try {
Cat result = apiInstance.optionSwaggerCodegen();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TestingApi#optionSwaggerCodegen");
e.printStackTrace();
}
}
}
All URIs are relative to https://v3emd2k168.execute-api.us-east-1.amazonaws.com/dev
Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- TestingApi | optionSwaggerCodegen | GET /Swagger-Codegen |
All endpoints do not require authorization. Authentication schemes defined for the API:
It's recommended to create an instance of ApiClient
per thread in a multithreaded environment to avoid any potential issue.