Dashing API
Test it locally
Install bundler if you don't already have it (gem install bundler), then run bundle install to pull
in dependencies. Then you can:
Build a gem:
bundle exec rake buildInstall:
bundle exec rake installRun unit tests:
bundle exec rake testInstallation
Add this line to your application's Gemfile:
gem 'dashing_api'And then execute:
bundleOr install it yourself as:
gem install dashing_apiAPI endpoints
List the existing widgets:
curl http://$DASHING_HOST/widgets/List the existing dashboards:
curl http://$DASHING_HOST/dashboards/Check if a dashboard exists:
curl http://$DASHING_HOST/dashboards/:idGet the current status of a tile:
curl -i -H "Accept: application/json" http://$DASHING_HOST/tiles/:id.jsonCheck if a job script exist for data-id:
curl -i http://$DASHING_HOST/jobs/:idCheck if a tile exists on a dashboard:
curl -i http://$DASHING_HOST/tiles/:dashboard/:hostsDelete a dashboard:
curl -X DELETE -H "Content-type: application/json" -d '{"auth_token": "$DASHING_AUTH_TOKEN"}' http://$DASHING_HOST/dashboards/:dashboardRename a dashboard:
curl -i -H 'Accept: application/json' -X PUT -d '{"auth_token": "$DASHING_AUTH_TOKEN", "from": "", "to": ""}' http://$DASHING_HOST/dashboards/Replace a tile on a dashboard:
curl -i -H 'Accept: application/json' -X PUT -d '{"auth_token": "$DASHING_AUTH_TOKEN", "dashboard": "", "from": "", "to": ""}' http://$DASHING_HOST/tiles/Create a dashboard
curl -i -H 'Accept: application/json' -X POST -d '{"auth_token": "$DASHING_AUTH_TOKEN", "tiles": {"hosts": [" "," "], "titles": [" ", " "], "widgets": [" ", " "], "urls": [" ", " "]}}' http://$DASHING_HOST/dashboards/:dashboardDelete a tile/ tiles from a dashboard:
curl -i -H 'Accept: application/json' -X DELETE -d '{"auth_token": "$DASHING_AUTH_TOKEN", "tiles": [" ", " "]}' http://$DASHING_HOST/tiles/:dashboardAdd a tile/tiles to a dashboard
curl -i -H 'Accept: application/json' -X PUT -d '{"auth_token": "$DASHING_AUTH_TOKEN", "tiles": {"hosts": [" "," "], "titles": [" ", " "], "widgets": [" ", " "], "urls": [" ", " "]}}' http://$DASHING_HOST/tiles/:dashboardPing hosts and add to/ remove tiles from a dashboard
curl -i -H 'Accept: application/json' -X PUT -d '{"auth_token": "$DASHING_AUTH_TOKEN", "tiles": {"hosts": [" "," "], "titles": [" ", " "], "widgets": [" ", " "], "urls": [" ", " "]}}' http://$DASHING_HOST/ping/:dashboardContributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request