-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapi.sh
More file actions
25 lines (22 loc) · 772 Bytes
/
api.sh
File metadata and controls
25 lines (22 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#npm install -g @apidevtools/swagger-cli
swagger-cli bundle -r -t yaml -o auth.yaml ./contracts/auth.yaml
swagger-cli bundle -r -t yaml -o app_deployment.yaml ./contracts/app_deployment.yaml
swagger-cli bundle -r -t yaml -o project.yaml ./contracts/project.yaml
swagger-cli bundle -r -t yaml -o ds.yaml ./contracts/ds.yaml
swagger-cli bundle -r -t yaml -o jfs.yaml ./contracts/jfs.yaml
#pip install openapi-cli-tool
openapi-cli-tool bundle -t yaml \
./auth.yaml \
./app_deployment.yaml \
./project.yaml \
./ds.yaml \
./jfs.yaml \
> ./api.yaml
python clean.py
openapi-cli-tool bundle -t html api.yaml > ./docs/.vuepress/public/api.html
rm -f auth.yaml
rm -f app_deployment.yaml
rm -f ds.yaml
rm -f jfs.yaml
rm -f project.yaml
rm -f api.yaml