Fixing API calls

This commit is contained in:
stephb9959
2021-07-14 10:59:58 -07:00
parent dc2676b045
commit 7b809cb1cb
4 changed files with 12 additions and 5 deletions

View File

@@ -127,14 +127,14 @@ latestfirmware() {
curl ${FLAGS} -X GET -H "Content-Type: application/json" \
-H "Authorization: Bearer ${token}" \
"https://${UCENTRALFMS}/api/v1/firmwares?latestOnly=true&deviceType=$1" > ${result_file}
jq < ${result_file}cd ../
jq < ${result_file}
}
revisions() {
curl ${FLAGS} -X GET -H "Content-Type: application/json" \
-H "Authorization: Bearer ${token}" \
"https://${UCENTRALFMS}/api/v1/firmwares?revisionSet=true" > ${result_file}
jq < ${result_file}cd ../
jq < ${result_file}
}
help() {