openapi-generator/samples/client/petstore/java/retrofit2
Silvio Heuberger 671dba4284 Use retrofit2-beta3 and it's dendencies in retrofit2 clients
Requires some changes to the generated client code
as some package renaming and api changes have occurred.
2016-02-02 15:43:08 +01:00
..
src Use retrofit2-beta3 and it's dendencies in retrofit2 clients 2016-02-02 15:43:08 +01:00
build.gradle Use retrofit2-beta3 and it's dendencies in retrofit2 clients 2016-02-02 15:43:08 +01:00
gradle.properties Add support to Retrofit2 2015-11-10 03:20:49 +01:00
hello.txt Try fixing occasional testing failuers in Java client 2016-01-20 11:55:04 +08:00
pom.xml Use retrofit2-beta3 and it's dendencies in retrofit2 clients 2016-02-02 15:43:08 +01:00
README.md Java: Move method StringUtil.toIndentedString to model 2015-12-29 12:30:54 +08:00
settings.gradle Add support to Retrofit2 2015-11-10 03:20:49 +01:00

swagger-petstore-retrofit2

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 libarary 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-retrofit2</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