X-Git-Url: https://git.cweiske.de/louyapi.git/blobdiff_plain/d6a38bbd92c86a3d2266e90f6eb7d0b0152a5126..ff5fd2eaa9d7462ed58c9bb7865808f43c432594:/bin/test-api.sh diff --git a/bin/test-api.sh b/bin/test-api.sh new file mode 100755 index 0000000..23bb3a8 --- /dev/null +++ b/bin/test-api.sh @@ -0,0 +1,25 @@ +#!/bin/sh +set -ex +host=http://localhost:8080 + +curl --fail -i "$host/api/v1/status" +curl --fail -i "$host/api/firmware_builds" +curl --fail -I "$host/updates-ouya_1_1.json" +curl --fail -i "$host/api/v1/developers/fc215877-e840-4a4f-b07a-b5696ac1b7ff/products" +curl --fail -I "$host/api/v1/details?app=org.blockinger.game" +curl --fail -i "$host/api/v1/details?app=does.not.exist" +curl --fail -i "$host/api/v1/apps/de.eiswuxe.blookid2" +curl --fail -i "$host/api/v1/apps/780688a9-95ee-429a-8755-69a8d0c88fe0/download" +curl --fail -i "$host/api/v1/developers/5a3fbb4d-852b-4af4-becc-324dce6a3b42/products/" +curl --fail -i "$host/api/v1/developers/5a3fbb4d-852b-4af4-becc-324dce6a3b42/products/?only=blookid2_full" +curl --fail -I "$host/api/v1/discover" +curl --fail -I "$host/api/v1/discover/home" +curl --fail -I "$host/api/v1/discover/tutorials" +curl -I "$host/api/v1/gamers" +curl --fail -I "$host/api/v1/gamers/me" +curl --fail -I "$host/api/v1/games/de.eiswuxe.blookid2/purchases" +curl --fail -I "$host/api/v1/games/does.not.exist/purchases" +curl --fail -I "$host/api/v1/queued_downloads" +curl --fail -I "$host/api/v1/search?q=1" + +echo "done"