Masayoshi Kobayashi | 57572b1 | 2013-03-13 22:27:50 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | rm -f rest.json |
| 3 | touch rest.json |
Masayoshi Kobayashi | d27915b | 2013-03-16 00:59:05 +0000 | [diff] [blame] | 4 | |
Naoki Shiota | 862cc3b | 2013-12-13 15:42:50 -0800 | [diff] [blame] | 5 | urls="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 Kobayashi | d27915b | 2013-03-16 00:59:05 +0000 | [diff] [blame] | 6 | |
| 7 | for 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 |
| 12 | done |