Skip to content
Snippets Groups Projects
Verified Commit 97d92fca authored by Martin Weise's avatar Martin Weise
Browse files

Do not use python client

parent a68e328f
No related branches found
No related tags found
No related merge requests found
......@@ -22,8 +22,8 @@ function remove () {
}
function copy () {
echo "... copying python api"
cp -r "./api-$1/swagger_client" "./api/api_$1"
#echo "... copying python api"
#cp -r "./api-$1/swagger_client" "./api/api_$1"
cp "./api-$1.yaml" "./$1/api.yaml"
cp -r ../dist/* "./$1"
}
......@@ -43,10 +43,10 @@ function move () {
for key in "${!services[@]}"; do
echo "Generating ${services[$key]} API"
retrieve "$key" "${services[$key]}"
generate "${services[$key]}"
#generate "${services[$key]}"
remove "${services[$key]}"
copy "${services[$key]}"
replace "$key" "${services[$key]}"
#replace "$key" "${services[$key]}"
move "${services[$key]}"
done
......@@ -55,9 +55,7 @@ echo "=============================="
echo " SUMMARY:"
echo "=============================="
echo ""
if [[ ! -z "${UPDATE}" ]]; then
echo "- Retrieved ${#services[@]} updated Swagger endpoint defintions"
fi
echo "- Removed ${#services[@]} old Python APIs"
echo "- Generated ${#services[@]} new Python APIs"
echo "- Generated ${#services[@]} static Swagger Docs"
echo "- Retrieved ${#services[@]} static Swagger yaml"
#echo "- Removed ${#services[@]} old Python APIs"
#echo "- Generated ${#services[@]} new Python APIs"
echo "- Generated ${#services[@]} static Swagger docs"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment