blob: 8a8aab644599ca4b88bf19ad4cb5742ce69b3bdd [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
Yuta HIGUCHI42d7f1b2014-05-28 09:19:49 -07005urls="http://localhost:8080/wm/onos/topology/switches 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