1 :: ============LICENSE_START===============================================
2 :: Copyright (C) 2023 Nordix Foundation. All rights reserved.
3 :: ========================================================================
4 :: Licensed under the Apache License, Version 2.0 (the "License");
5 :: you may not use this file except in compliance with the License.
6 :: You may obtain a copy of the License at
8 :: http:\\www.apache.org\licenses\LICENSE-2.0
10 :: Unless required by applicable law or agreed to in writing, software
11 :: distributed under the License is distributed on an "AS IS" BASIS,
12 :: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 :: See the License for the specific language governing permissions and
14 :: limitations under the License.
15 :: ============LICENSE_END=================================================
19 set SME_LOCATION="..\sme\capifcore"
20 set SME_OPENAPI_LOCATION="..\..\openapi\sme"
21 cp ..\scripts\init\getsmeswagger.go %SME_LOCATION%
24 echo Generating SME openapi spec...
26 IF EXIST getsmeswagger.go (
28 go run getsmeswagger.go
30 echo Copying generated specs...
31 mkdir %SME_OPENAPI_LOCATION%
32 echo Copying CommonData.yaml
33 mv CommonData.yaml %SME_OPENAPI_LOCATION%
34 echo Copying TS29122_CommonData.yaml
35 mv TS29122_CommonData.yaml %SME_OPENAPI_LOCATION%
36 echo Copying TS29571_CommonData.yaml
37 mv TS29571_CommonData.yaml %SME_OPENAPI_LOCATION%
38 echo Copying TS29222_CAPIF_API_Invoker_Management_API.yaml
39 mv TS29222_CAPIF_API_Invoker_Management_API.yaml %SME_OPENAPI_LOCATION%
40 echo Copying TS29222_CAPIF_API_Provider_Management_API.yaml
41 mv TS29222_CAPIF_API_Provider_Management_API.yaml %SME_OPENAPI_LOCATION%
42 echo Copying TS29222_CAPIF_Publish_Service_API.yaml
43 mv TS29222_CAPIF_Publish_Service_API.yaml %SME_OPENAPI_LOCATION%
45 echo Unable to find the openapi spec generator.