blob: c6c870b993774dcf1812ce9438aba353f46c59c1 [file] [log] [blame]
Masayoshi Kobayashi57572b12013-03-13 22:27:50 +00001#! /bin/sh
2rm -f rest.json
3touch rest.json
Masayoshi Kobayashid27915b2013-03-16 00:59:05 +00004
Naoki Shiota862cc3b2013-12-13 15:42:50 -08005urls="http://localhost:8080/wm/onos/topology/switches/all/json http://localhost:8080/wm/onos/linkdiscovery/links/json http://localhost:8080/wm/onos/registry/controllers/json http://localhost:8080/wm/onos/registry/switches/json"
Masayoshi Kobayashid27915b2013-03-16 00:59:05 +00006
7for url in $urls; do
8 echo "---REST CALL---" >> rest.json
9 echo "curl -s $url" >> rest.json
10 echo "---Result----" >> rest.json
11 curl -s $url | python -m json.tool >> rest.json
12done