openapi-generator/samples/client/petstore/java/retrofit
2018-03-08 22:00:22 +08:00
..
.swagger-codegen update swagger annoatation version to 1.5.17 (#7500) 2018-01-25 23:29:20 +08:00
docs update java-petstore-all.sh and regenerate all java petstore sample 2016-07-07 15:53:17 +08:00
gradle/wrapper Add sbt support for retrofit. 2016-06-04 20:53:21 +08:00
src fix connection leak on retrofit OAuth token renewal (#7750) 2018-03-08 22:00:22 +08:00
.gitignore fix java property with the name "class" 2016-06-20 14:51:17 +08:00
.swagger-codegen-ignore fix java property with the name "class" 2016-06-20 14:51:17 +08:00
.travis.yml Remove Apache license from API client generators (#4197) 2016-11-16 21:44:49 +08:00
build.gradle update java petstore samples 2017-04-24 16:22:11 +08:00
build.sbt fix issue with java feign client 2016-07-07 15:53:17 +08:00
git_push.sh update java petstore samples 2017-11-16 17:09:59 +08:00
gradle.properties add gradle files with android support 2015-10-12 16:16:38 +02:00
gradlew [Java] MIME type "*/*" default to JSON (#6188) 2017-07-27 11:36:29 +08:00
gradlew.bat update retrofit1,2 samples 2016-10-12 15:48:34 +08:00
pom.xml update swagger annoatation version to 1.5.17 (#7500) 2018-01-25 23:29:20 +08:00
README.md Revert "Revert "[Java] Add auto-generated documentation in Markdown to Java clients"" 2016-04-22 10:13:54 +08:00
settings.gradle add gradle files with android support 2015-10-12 16:16:38 +02:00

swagger-petstore-retrofit

Requirements

Building the API client library requires Maven to be installed.

Installation & Usage

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.

After the client library is installed/deployed, you can use it in your Maven project by adding the following to your pom.xml:

<dependency>
    <groupId>io.swagger</groupId>
    <artifactId>swagger-petstore-retrofit</artifactId>
    <version>1.0.0</version>
    <scope>compile</scope>
</dependency>

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issue.

Author

apiteam@swagger.io