Skip to content

[JAVA][Retrofit2] How to use auto-generated client code? #7266

Open
@Defozo

Description

@Defozo
Description

Swagger generates instructions how to use auto-generated client code:
Eg. https://github.com/swagger-api/swagger-codegen/blob/master/samples/client/petstore/java/retrofit2/docs/PetApi.md
However, Configuration and ApiException used in the example code don't exist in the generated sources.
So, how to use it?

Swagger-codegen version

2.3.0

Command line used for generation

I'm using gradle plugin.

Steps to reproduce

Generate java code using Retrofit2 library from PetStore API example.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions