change rest test script
diff --git a/web/rest-test.sh b/web/rest-test.sh
index a54e1e2..241915a 100755
--- a/web/rest-test.sh
+++ b/web/rest-test.sh
@@ -1,7 +1,12 @@
 #! /bin/sh
 rm -f rest.json
 touch rest.json
-curl -s 'http://localhost:8080/wm/core/topology/switches/all/json' | python -m json.tool >> rest.json
-curl -s 'http://localhost:8080/wm/core/topology/links/json' | python -m json.tool >> rest.json
-curl -s 'http://localhost:8080/wm/registry/controllers/json' | python -m json.tool >> rest.json
-curl -s 'http://localhost:8080/wm/registry/switches/json' | python -m json.tool >> rest.json
+
+urls="'http://localhost:8080/wm/core/topology/switches/all/json' 'http://localhost:8080/wm/core/topology/links/json' 'http://localhost:8080/wm/registry/controllers/json' 'http://localhost:8080/wm/registry/switches/json'"
+
+for url in $urls; do
+  echo "---REST CALL---" >> rest.json
+  echo "curl -s $url" >> rest.json
+  echo "---Result----" >> rest.json
+  curl -s $url | python -m json.tool >> rest.json
+done