Thank you.Will make use of it.

On Thu, 16 May, 2019, 2:06 AM Freeman Fang, <[email protected]> wrote:

> Actually in CXF we also have java2swagger-plugin which I think you can
> use to generate swagger payload from your rest interface provided it has
> swagger annotation already.
>
> The configuration is like
>
> <plugin>
>                 <groupId>org.apache.cxf</groupId>
>                 <artifactId>cxf-java2swagger-plugin</artifactId>
>                 <executions>
>                     <execution>
>                         <id>process-classes</id>
>                         <phase>process-classes</phase>
>                         <goals>
>                             <goal>java2swagger</goal>
>                         </goals>
>                         <configuration>
>                             <resourcePackages>
>                                 <resourcePackage>your package that
> contains the rest interface</resourcePackage>
>                             </resourcePackages>
>                             <attachSwagger>false</attachSwagger>
>                         </configuration>
>                     </execution>
>                 </executions>
>             </plugin>
>
> -------------
> Freeman(Yue) Fang
>
> Red Hat, Inc.
>
>
>
>
>
> On May 6, 2019, at 7:14 AM, Andriy Redko <[email protected]> wrote:
>
> Hi Aishwarya,
>
> The closest you can get is by using
> https://github.com/kongchen/swagger-maven-plugin. It may not completely
> reflect the Swagger2Feature customizations but if there aren't many, you
> may find it quite sufficient. Thank you.
>
> Best Regards,
>    Andriy Redko
>
>
> asgc> Hi,
>
> asgc> I have integrated Swagger 2.0 with my CXF application. I am access
>  the swagger.json from the Swagger UI page. Is
> asgc> it possible to create an offline copy of swagger.json during maven
> build of the application itself?Is there an
> asgc> plugin for the same?..or should I hit the Swagger json rendering
> rest api after boot up only to access the swagger json.
>
>
>
>

Reply via email to