Generating multiple HTML files to support multiple scenarios

Issue-ID: CCSDK-4036
Change-Id: Iba0fd2432d2d6ce411a4762fee0cb8d1fa434ed2
Signed-off-by: Raviteja Karumuri <raviteja.karumuri@est.tech>
diff --git a/a1-policy-management/pom.xml b/a1-policy-management/pom.xml
index 718a274..411878d 100644
--- a/a1-policy-management/pom.xml
+++ b/a1-policy-management/pom.xml
@@ -432,6 +432,22 @@
                         </configuration>
                     </execution>
                     <execution>
+                        <id>generate-openapi-json-config-a1pms</id>
+                        <phase>prepare-package</phase>
+                        <goals>
+                            <goal>generate</goal>
+                        </goals>
+                        <configuration>
+                            <inputSpec>${project.basedir}/api/offeredapis/swagger/pms-api-v3.yaml</inputSpec>
+                            <generatorName>openapi</generatorName>
+                            <apisToGenerate>A1PolicyManagement</apisToGenerate>
+                            <output>${project.basedir}/api/offeredapis/swagger</output>
+                            <configOptions>
+                                <outputFileName>a1pms-api-v3.json</outputFileName>
+                            </configOptions>
+                        </configuration>
+                    </execution>
+                    <execution>
                         <id>generate-openapi-html</id>
                         <phase>prepare-package</phase>
                         <goals>
@@ -477,6 +493,29 @@
                         </configuration>
                     </execution>
                     <execution>
+                        <id>generate-openapi-html-config-a1pms</id>
+                        <phase>prepare-package</phase>
+                        <goals>
+                            <goal>generate</goal>
+                        </goals>
+                        <configuration>
+                            <inputSpec>${project.basedir}/api/offeredapis/swagger/pms-api-v3.json</inputSpec>
+                            <generatorName>html2</generatorName>
+                            <output>${project.basedir}/api/offeredapis/openapitoolgen/offeredapis/pms-api/v3/custom</output>
+                            <skipOperationExample>false</skipOperationExample>
+                            <strictSpec>false</strictSpec>
+                            <apisToGenerate>A1PolicyManagement</apisToGenerate>
+                            <configOptions>
+                                <appDescription>The O-RAN Non-RT RIC Policy Management Service
+                                    provides a REST API for managing O-RAN A1 Policies.</appDescription>
+                                <appName>ONAP CCSDK A1 Policy Management Service</appName>
+                                <infoUrl>https://wiki.onap.org/display/DW/O-RAN+A1+Policies+in+ONAP</infoUrl>
+                                <licenseInfo>Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.</licenseInfo>
+                                <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
+                            </configOptions>
+                        </configuration>
+                    </execution>
+                    <execution>
                         <id>generate-policy-api</id>
                         <phase>generate-sources	</phase>
                         <goals>
@@ -558,8 +597,10 @@
                                         <include>swagger/pms-api.yaml</include>
                                         <include>swagger/pms-api-v3.json</include>
                                         <include>swagger/pms-api-v3.yaml</include>
+                                        <include>swagger/a1pms-api-v3.json</include>
                                         <include>openapitoolgen/offeredapis/pms-api/index.html</include>
                                         <include>openapitoolgen/offeredapis/pms-api/v3/index.html</include>
+                                        <include>openapitoolgen/offeredapis/pms-api/v3/custom/index.html</include>
                                     </includes>
                                 </resource>
                             </resources>