Hi,
When I generate a client for the Geoserver REST API with the swagger-codegen-maven-plugin, API is generated with name DefaultApi. With a tag for each endpoint, the name will be <tagname>Api :
- Configuration for the generation
<plugin>
<groupId>io.swagger</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/src/main/resources/swagger-spec/namespace.yml</inputSpec>
<language>java</language>
<configOptions>
<modelPackage>org.geoserver.rest.model</modelPackage>
<apiPackage>org.geoserver.rest.api</apiPackage>
<generateApiTests>false</generateApiTests>
<generateApiDocumentation>false</generateApiDocumentation>
<generateModelDocumentation>false</generateModelDocumentation>
<generateSupportingFiles>false</generateSupportingFiles>
<library>resttemplate</library>
<dateLibrary>java8</dateLibrary>
</configOptions>
</configuration>
</execution>
</executions>
</plugin>
|