diff --git a/getitemsinbox.bash b/getitemsinbox.bash index b84215c..9498451 100644 --- a/getitemsinbox.bash +++ b/getitemsinbox.bash @@ -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 diff --git a/tests.bash b/tests.bash index 2c9ec7b..fe3cde2 100755 --- a/tests.bash +++ b/tests.bash @@ -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