blob: 0347f41d7b71930750440ebc45db3ee028f8783e [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
Jonathan Hart5caa0442014-03-19 15:20:07 -07005urls="http://localhost:8080/wm/onos/topology/switches/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