Skip to content

Instantly share code, notes, and snippets.

@pavolloffay
Created August 18, 2015 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavolloffay/1d0d93398a52d69a35ac to your computer and use it in GitHub Desktop.
Save pavolloffay/1d0d93398a52d69a35ac to your computer and use it in GitHub Desktop.
curl -ivX POST -H 'Content-Type:application/json' -d '{"id": "foo" }' http://jdoe:password@localhost:8080/hawkular/inventory/resourceTypes
curl -ivX POST -H 'Content-Type:application/json' -d '{"id": "query" }' http://jdoe:password@localhost:8080/hawkular/inventory/resourceTypes
curl -X GET -H 'Content-Type:application/json' http://jdoe:password@localhost:8080/hawkular/inventory/resourceTypes/foo
curl -ivX POST -H 'Content-Type:application/json' -d '{"id":"parent", "resourceTypePath": "/rt;foo"}' http://jdoe:password@localhost:8080/hawkular/inventory/test/resources
curl -ivX POST -H 'Content-Type:application/json' -d '{"id":"parent_children", "resourceTypePath": "/rt;foo"}' 'http://jdoe:password@localhost:8080/hawkular/inventory/test/resources/parent'
curl -ivX POST -H 'Content-Type:application/json' -d '{"id":"parent_children2", "resourceTypePath": "/rt;query"}' 'http://jdoe:password@localhost:8080/hawkular/inventory/test/resources/parent'
curl -ivX POST -H 'Content-Type:application/json' -d '{"id":"parent_children_children", "resourceTypePath": "/rt;foo"}' 'http://jdoe:password@localhost:8080/hawkular/inventory/test/resources/parent/parent_children'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment