nclazz-api-specs/upload-specs.sh

20 lines
454 B
Bash

#!/bin/bash
VERSION=$1
SPECS=(
"common"
"configuration"
"common-resources"
"authentication"
"codebuilder"
"codebuilder-cli"
)
for file in "${SPECS[@]}"; do
file="./specs/$file.json"
service_name=$(cat $file | jq -r '.name' | xargs);
echo "Upload $service_name from $file";
apibuilder clean nclazz $service_name --silent
apibuilder upload nclazz $service_name $file --version $VERSION --silent --force;
done;