Skip to content

Commit

Permalink
Environment 1.270; Cluster 1.268
Browse files Browse the repository at this point in the history
  • Loading branch information
pahofmann committed Jul 13, 2023
1 parent 55ad2c4 commit 15062f6
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 158,741 deletions.
19 changes: 19 additions & 0 deletions convert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,23 @@ for file in *.json; do

# Replace Authentication
sed 's/{{apiKey}}/Api-Token {{DT_TOKEN}}/g' -i ../specs/$file
sed 's/<API Key>/Api-Token {{DT_TOKEN}}/g' -i ../specs/$file

# Replace Collection Names
echo $file
case $file in
"cluster-v1.json")
sed 's/"name":"Dynatrace Cluster API",/"name": "Dynatrace Cluster API v1",/' -i ../specs/$file
;;
"cluster-v2.json" )
sed 's/"name":"Dynatrace Cluster API",/"name": "Dynatrace Cluster API v2",/' -i ../specs/$file
;;
"environment-v1.json" )
sed 's/"name":"Dynatrace Environment API",/"name": "Dynatrace Environment API v1",/' -i ../specs/$file
;;
"environment-v2.json" )
sed 's/"name":"Dynatrace Environment API",/"name": "Dynatrace Environment API v2",/' -i ../specs/$file
;;
esac

done

0 comments on commit 15062f6

Please sign in to comment.