Move openapi files to common directory.
Ignore SME openapi files from source.
Issue-ID: NONRTRIC-952
Signed-off-by: aravind.est <aravindhan.a@est.tech>
Change-Id: Ic269de937cad634c7487b7563cb5f075b345b532
### VS Code ###
.vscode/
+
+
+openapi/sme/
<goal>generate</goal>
</goals>
<configuration>
- <inputSpec>${project.basedir}/src/main/resources/openapi/acm-spec.yaml</inputSpec>
+ <inputSpec>${project.parent.basedir}/openapi/acm/acm-spec.yaml</inputSpec>
<generatorName>java</generatorName>
<library>resttemplate</library>
<generateApiTests>false</generateApiTests>
<goal>generate</goal>
</goals>
<configuration>
- <inputSpec>${project.basedir}/src/main/resources/openapi/ics-api.yaml</inputSpec>
+ <inputSpec>${project.parent.basedir}/openapi/dme/ics-api.yaml</inputSpec>
<generatorName>java</generatorName>
<library>resttemplate</library>
<generateApiTests>false</generateApiTests>
</goals>
<configuration>
<inputSpec>
- ${project.basedir}/src/main/resources/openapi/TS29222_CAPIF_API_Provider_Management_API.yaml
+ ${project.parent.basedir}/openapi/sme/TS29222_CAPIF_API_Provider_Management_API.yaml
</inputSpec>
<generatorName>java</generatorName>
<library>resttemplate</library>
</goals>
<configuration>
<inputSpec>
- ${project.basedir}/src/main/resources/openapi/TS29222_CAPIF_Publish_Service_API.yaml
+ ${project.parent.basedir}/openapi/sme/TS29222_CAPIF_Publish_Service_API.yaml
</inputSpec>
<generatorName>java</generatorName>
<library>resttemplate</library>
</goals>
<configuration>
<inputSpec>
- ${project.basedir}/src/main/resources/openapi/TS29222_CAPIF_API_Invoker_Management_API.yaml
+ ${project.parent.basedir}/openapi/sme/TS29222_CAPIF_API_Invoker_Management_API.yaml
</inputSpec>
<generatorName>java</generatorName>
<library>resttemplate</library>
@echo off
set SME_LOCATION="..\sme\capifcore"
+set SME_OPENAPI_LOCATION="..\..\openapi\sme"
cp ..\scripts\init\getsmeswagger.go %SME_LOCATION%
cd %SME_LOCATION%
go run getsmeswagger.go
echo Copying generated specs...
- mkdir ..\..\rapp-manager-sme\src\main\resources\openapi
+ mkdir %SME_OPENAPI_LOCATION%
echo Copying CommonData.yaml
- mv CommonData.yaml ..\..\rapp-manager-sme\src\main\resources\openapi
+ mv CommonData.yaml %SME_OPENAPI_LOCATION%
echo Copying TS29122_CommonData.yaml
- mv TS29122_CommonData.yaml ..\..\rapp-manager-sme\src\main\resources\openapi
+ mv TS29122_CommonData.yaml %SME_OPENAPI_LOCATION%
echo Copying TS29571_CommonData.yaml
- mv TS29571_CommonData.yaml ..\..\rapp-manager-sme\src\main\resources\openapi
+ mv TS29571_CommonData.yaml %SME_OPENAPI_LOCATION%
echo Copying TS29222_CAPIF_API_Invoker_Management_API.yaml
- mv TS29222_CAPIF_API_Invoker_Management_API.yaml ..\..\rapp-manager-sme\src\main\resources\openapi
+ mv TS29222_CAPIF_API_Invoker_Management_API.yaml %SME_OPENAPI_LOCATION%
echo Copying TS29222_CAPIF_API_Provider_Management_API.yaml
- mv TS29222_CAPIF_API_Provider_Management_API.yaml ..\..\rapp-manager-sme\src\main\resources\openapi
+ mv TS29222_CAPIF_API_Provider_Management_API.yaml %SME_OPENAPI_LOCATION%
echo Copying TS29222_CAPIF_Publish_Service_API.yaml
- mv TS29222_CAPIF_Publish_Service_API.yaml ..\..\rapp-manager-sme\src\main\resources\openapi
+ mv TS29222_CAPIF_Publish_Service_API.yaml %SME_OPENAPI_LOCATION%
) ELSE (
echo Unable to find the openapi spec generator.
)
#
SME_LOCATION="../sme/capifcore"
+SME_OPENAPI_LOCATION="../../openapi/sme"
cp ../scripts/init/getsmeswagger.go $SME_LOCATION
cd $SME_LOCATION
go run getsmeswagger.go
echo "Copying generated specs..."
- mkdir -p ../../rapp-manager-sme/src/main/resources/openapi
+ mkdir -p $SME_OPENAPI_LOCATION
echo "Copying CommonData.yaml"
- mv CommonData.yaml ../../rapp-manager-sme/src/main/resources/openapi
+ mv CommonData.yaml $SME_OPENAPI_LOCATION
echo "Copying TS29122_CommonData.yaml"
- mv TS29122_CommonData.yaml ../../rapp-manager-sme/src/main/resources/openapi
+ mv TS29122_CommonData.yaml $SME_OPENAPI_LOCATION
echo "Copying TS29571_CommonData.yaml"
- mv TS29571_CommonData.yaml ../../rapp-manager-sme/src/main/resources/openapi
+ mv TS29571_CommonData.yaml $SME_OPENAPI_LOCATION
echo "Copying TS29222_CAPIF_API_Invoker_Management_API.yaml"
- mv TS29222_CAPIF_API_Invoker_Management_API.yaml ../../rapp-manager-sme/src/main/resources/openapi
+ mv TS29222_CAPIF_API_Invoker_Management_API.yaml $SME_OPENAPI_LOCATION
echo "Copying TS29222_CAPIF_API_Provider_Management_API.yaml"
- mv TS29222_CAPIF_API_Provider_Management_API.yaml ../../rapp-manager-sme/src/main/resources/openapi
+ mv TS29222_CAPIF_API_Provider_Management_API.yaml $SME_OPENAPI_LOCATION
echo "Copying TS29222_CAPIF_Publish_Service_API.yaml"
- mv TS29222_CAPIF_Publish_Service_API.yaml ../../rapp-manager-sme/src/main/resources/openapi
+ mv TS29222_CAPIF_Publish_Service_API.yaml $SME_OPENAPI_LOCATION
else
echo "Unable to find the openapi spec generator."
fi