Dashboard Management Platform - Server API
Aiming to release stable 1.0.0 on 15 March 2015
- Owner: Marco Bettiolo
- Lead Contributor: Federico Rampazzo
Status check.
Returns:
200 OKif the system is working
Example: http://api.dashy.io/status
curl http://api.dashy.io/dashboards/status{
"env": "production"
}Returns a dashboard configuration
Returns:
200 OKif the dashboard exists404 Not Foundif the dashboard was not found
Example: http://api.dashy.io/dashboards/example-dashboard
curl http://api.dashy.io/dashboards/example-dashboardExample: http://api.dashy.io/dashboards/example-dashboard
{
"id" : "test-dashboard",
"interval" : 15,
"name" : "Test Dashboard",
"urls" : [
"http://citydashboard.org/london/",
"http://www.casa.ucl.ac.uk/cumulus/ipad.html",
"http://www.gridwatch.templar.co.uk/",
"http://www.casa.ucl.ac.uk/weather/colours.html"
]
}Creates a new dashboard and implicitly an new short-code
Note: Content-Type must be set to application/json.
Returns:
201 CreatedIf a new dashboard was created409 ConflictIf a dashboard with the same ID already exists400 Bad RequestIf ID not specified in the body400 Bad RequestIf there are unexpected parameters in the body
Example:
curl -X POST -H 'Content-Type: application/json' http://api.dashy.io/dashboards -d @- << EOF
{
"id" : "c98ba5ef-08c1-4360-9eb3-85c4530e0d1a"
}
EOFUpdates an existing dashboard
Note: Content-Type must be set to application/json.
Returns:
200 OKIf the dashboard was updated404 Not FoundIf the dashboard was not found409 ConflictIf the dashboard ID in the body does not match the one in the url400 Bad RequestIf there are unexpected parameters in the body409 ConflictIf trying to modify the code property
Example:
curl -X PUT -H 'Content-Type: application/json' http://api.dashy.io/dashboards/example-dashboard -d @- << EOF
{
"interval" : 15,
"name" : "Test Dashboard",
"urls" : [
"http://citydashboard.org/london/",
"http://www.casa.ucl.ac.uk/cumulus/ipad.html",
"http://www.gridwatch.templar.co.uk/",
"http://www.casa.ucl.ac.uk/weather/colours.html"
]
}
EOFDeletes a dashboard
Returns:
204 No ContentIf the dashboard was deleted404 Not FoundIf the dashboard was not found
Returns:
200 OKif the system is working
Example: http://api.dashy.io/status
Returns the short-code of a dashboard
Returns:
200 OKif the dashboard exists404 Not Foundif the dashboard was not found
Example: http://api.dashy.io/dashboards/example-dashboard/code
curl http://api.dashy.io/dashboards/example-dashboard/code{
"code" : "12345678"
}Claims a dashboard by providing a SHORT-CODE and connects it to a user's account.
Example:
curl -X DELETE http://api.dashy.io/example-dashboardReturns user details and associated dashboard
Example: http://api.dashy.io/users/test-user
{
"id" : "test-user",
"name" : "Test User",
"dashboards": [
"test-dashboard"
]
}Sets user details
