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 OK
if 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 OK
if the dashboard exists404 Not Found
if the dashboard was not found
Example: http://api.dashy.io/dashboards/example-dashboard
curl http://api.dashy.io/dashboards/example-dashboard
Example: 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 Created
If a new dashboard was created409 Conflict
If a dashboard with the same ID already exists400 Bad Request
If ID not specified in the body400 Bad Request
If 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"
}
EOF
Updates an existing dashboard
Note: Content-Type must be set to application/json.
Returns:
200 OK
If the dashboard was updated404 Not Found
If the dashboard was not found409 Conflict
If the dashboard ID in the body does not match the one in the url400 Bad Request
If there are unexpected parameters in the body409 Conflict
If 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"
]
}
EOF
Deletes a dashboard
Returns:
204 No Content
If the dashboard was deleted404 Not Found
If the dashboard was not found
Returns:
200 OK
if the system is working
Example: http://api.dashy.io/status
Returns the short-code of a dashboard
Returns:
200 OK
if the dashboard exists404 Not Found
if 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-dashboard
Returns 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