more scripts

This commit is contained in:
Steve White 2024-10-09 21:20:58 -05:00
parent 9e8d579544
commit 5ae1a88639
2 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,7 @@
API_BASE_URL="http://localhost:8080" # Replace with your actual API base URL
# Box ID
BOX_ID=0 # Replace with the actual box ID
BOX_ID=96 # Replace with the actual box ID
# Login credentials
USERNAME="boxuser" # Replace with your actual username

View File

@ -186,7 +186,9 @@ fi
echo
echo
echo "Testing /items/{id}/items (GET)..."
response=$(authenticated_request "GET" "/items/$BOX_ID/items" "")
echo "Box ID: $BOX_ID"
response=$(authenticated_request "GET" "/items/$BOX_ID/items")
echo "$response"
if [[ $(echo "$response" | jq -r '. | length') -ge 1 ]]; then # Expecting at least one item
echo -e "\033[32m /items/{id}/items (GET): PASS\033[0m" # Green PASS