Skip to content
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.

READ Runs

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}
  ]
}

READ Run

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}
  ]
}

CREATE Runs

POST /api/runs | create

Creates a new run by posting the smp_id parameter.

Consumes: Route, JSON

Produces: JSON

DELETE Run

DELETE /api/runs/{run-id} |  delete

Deletes the run along with the results.

Consumes: Route

Produces: Delete status

UPDATE Run

Not yet implemented

PUT /api/runs/{run-id} | update status

If paused, resume and if resumed, paused.

Consumes: Route

Produces: Update status

Clone this wiki locally