more scripts
This commit is contained in:
parent
9e8d579544
commit
5ae1a88639
|
@ -4,7 +4,7 @@
|
||||||
API_BASE_URL="http://localhost:8080" # Replace with your actual API base URL
|
API_BASE_URL="http://localhost:8080" # Replace with your actual API base URL
|
||||||
|
|
||||||
# Box ID
|
# Box ID
|
||||||
BOX_ID=0 # Replace with the actual box ID
|
BOX_ID=96 # Replace with the actual box ID
|
||||||
|
|
||||||
# Login credentials
|
# Login credentials
|
||||||
USERNAME="boxuser" # Replace with your actual username
|
USERNAME="boxuser" # Replace with your actual username
|
||||||
|
|
|
@ -186,7 +186,9 @@ fi
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
echo "Testing /items/{id}/items (GET)..."
|
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
|
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
|
echo -e "\033[32m /items/{id}/items (GET): PASS\033[0m" # Green PASS
|
||||||
|
|
Loading…
Reference in New Issue