We have been using swagger to document our rest interface for some time 
now. BUt we are starting with a new application and want to design the api 
first and generate the interface of implementation.

We are running on Wildfly. 

So we would like to generate the interface of class for this. We have:

<plugin>
<groupId>io.swagger</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>src/main/resources/api.yaml</inputSpec>
<language>jaxrs-resteasy</language>
<configOptions>
<sourceFolder>src/gen/java/main</sourceFolder>
</configOptions>
</configuration>
</execution>
</executions>
</plugin>

This works as explaned but we are wondering how to make it so that also the 
Swagger annotations are added. 

Like:
@ApiOperation
@Api

and so on.

Would love to know how this can be done.

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to