blob: 8a8aab644599ca4b88bf19ad4cb5742ce69b3bdd [file] [log] [blame]
#! /bin/sh
rm -f rest.json
touch rest.json
urls="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"
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