forked from cassandra-project/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Runs
kyrcha edited this page Jul 18, 2012
·
7 revisions
A run is created when a user decides to execute a scenario given some simulation parameters. Currently still under development.
GET /api/runs?prj_id={prj_id} | index
Displays a list with all the runs (queued, completed, running) under the given project.
Consumes: Route
Produces: JSON
{
"success": true,
"message": "Runs retrieved successfully",
"size": 3,
"data": [
{id:1, status:completed, percentage:100},
{id:2, status:running, percentage:45},
{id:3, status:queued, percentage:0}
]
}
GET /api/runs/{run-id} | show
Displays the status and/or the results of the given run.
Consumes: Route
Produces: JSON
{
"success": true,
"message": "Run retrieved successfully",
"size": 1,
"data": [
{id:1, status:completed, percentage:100}
]
}
POST /api/runs | create
Creates a new run by posting the smp_id
parameter.
Consumes: Route, JSON
Produces: JSON
DELETE /api/runs/{run-id} | delete
Deletes the run along with the results.
Consumes: Route
Produces: Delete status
Not yet implemented
PUT /api/runs/{run-id} | update status
If paused, resume and if resumed, paused.
Consumes: Route
Produces: Update status