[Geoserver-devel] [JIRA] (GEOS-9862) REST API - Client generation use default name

Erwan Ropartz created an issue

GeoServer / BugGEOS-9862

REST API - Client generation use default name

Issue Type:

BugBug

Assignee:

Unassigned

Attachments:

Annotation.png

Created:

10/Jan/21 5:38 PM

Priority:

MediumMedium

Reporter:

Erwan Ropartz

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
&lt;plugin&gt;
				&lt;groupId&gt;io.swagger&lt;/groupId&gt;
				&lt;artifactId&gt;swagger-codegen-maven-plugin&lt;/artifactId&gt;
				&lt;executions&gt;
					&lt;execution&gt;
						&lt;goals&gt;
							&lt;goal&gt;generate&lt;/goal&gt;
						&lt;/goals&gt;
						&lt;configuration&gt;
							&lt;inputSpec&gt;${project.basedir}/src/main/resources/swagger-spec/namespace.yml&lt;/inputSpec&gt;
							&lt;language&gt;java&lt;/language&gt;
							&lt;configOptions&gt;
								&lt;modelPackage&gt;org.geoserver.rest.model&lt;/modelPackage&gt;
								&lt;apiPackage&gt;org.geoserver.rest.api&lt;/apiPackage&gt;
								&lt;generateApiTests&gt;false&lt;/generateApiTests&gt;
								&lt;generateApiDocumentation&gt;false&lt;/generateApiDocumentation&gt;
								&lt;generateModelDocumentation&gt;false&lt;/generateModelDocumentation&gt;
								&lt;generateSupportingFiles&gt;false&lt;/generateSupportingFiles&gt; 
								&lt;library&gt;resttemplate&lt;/library&gt;
								&lt;dateLibrary&gt;java8&lt;/dateLibrary&gt;
							&lt;/configOptions&gt;
						&lt;/configuration&gt;
					&lt;/execution&gt;
				&lt;/executions&gt;
			&lt;/plugin&gt;

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100154-sha1:8dc2987)

Atlassian logo