stoicflame / enunciate

Build-time enhancement tool for Java-based Web services projects
http://enunciate.webcohesion.com/
Other
480 stars 200 forks source link

Is it possible to generate two swagger.json using enunciate #1161

Closed adityakr369 closed 1 year ago

adityakr369 commented 1 year ago

want to generate two swagger files is it possible to do it using enunciate.xml Please find the enunciate.xml file for your reference

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project>
<enunciate label="novaglobalapi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:noNamespaceSchemaLocation="http://enunciate.codehaus.org/schemas/enunciate-1.25.xsd">

  <api-classes>

  </api-classes>

  <title>
      CCP-AUTHN REST Interface
  </title>
  <description>
      The Authenticator Provides For Token-Generation, -Inspection and -Validation 
  </description>
  <application>
      AUTHN
  </application>
  <copyright>

  </copyright>           
  <facets>
    <!-- exclude all components with the facets specified. -->
    <exclude name="ccp-authn#debug"/>
    <!-- <exclude name="ccp-authn#backend"/>  -->
 </facets>
  <modules>
    <java-json-client disableCompile="true"/> 
    <java-xml-client disableCompile="true"/>
   <jaxrs groupBy="annotation"/>

  </modules>
</enunciate>
stoicflame commented 1 year ago

Yes, it can be done by running Enunciate multiple times using whatever build engine you're using (Maven, Gradle, Ant, whatever).