summaryrefslogtreecommitdiff
path: root/opendc-api-spec.yml
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-06-30 10:02:05 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:42:23 +0200
commit13d8de8b9e3ecdfcf1f315a095934bd2b0a68729 (patch)
tree1f1f9f0b3b2d8fc72259f56ef8b12e9db71f1a9b /opendc-api-spec.yml
parent66f77a1d5d0296d5b2615d046a99e96016dfe5ec (diff)
Remove task states
Diffstat (limited to 'opendc-api-spec.yml')
-rw-r--r--opendc-api-spec.yml124
1 files changed, 4 insertions, 120 deletions
diff --git a/opendc-api-spec.yml b/opendc-api-spec.yml
index 0c7d507f..34d3dbb7 100644
--- a/opendc-api-spec.yml
+++ b/opendc-api-spec.yml
@@ -371,61 +371,6 @@ paths:
description: Forbidden from deleting Topology.
'404':
description: Topology not found.
- '/simulations/{simulationId}/experiments':
- get:
- tags:
- - experiments
- description: Get this Simulation's Experiments.
- parameters:
- - name: simulationId
- in: path
- description: Simulation's ID.
- required: true
- type: string
- responses:
- '200':
- description: Successfully retrieved Experiments.
- schema:
- type: array
- items:
- $ref: '#/definitions/Experiment'
- '400':
- description: Missing or incorrectly typed parameter.
- '401':
- description: Unauthorized.
- '403':
- description: Forbidden from retrieving Simulation's Experiments.
- '404':
- description: Simulation not found.
- post:
- tags:
- - experiments
- description: Add a new Experiment for this Simulation.
- parameters:
- - name: simulationId
- in: path
- description: Simulation's ID.
- required: true
- type: string
- - name: experiment
- in: body
- description: Experiment to add to this Simulation.
- required: true
- schema:
- $ref: '#/definitions/Experiment'
- responses:
- '200':
- description: Successfully added new Experiment.
- schema:
- $ref: '#/definitions/Experiment'
- '400':
- description: Missing or incorrectly typed parameter.
- '401':
- description: Unauthorized.
- '403':
- description: Forbidden from adding an Experiment to this Simulation.
- '404':
- description: 'Simulation, Topology, Scheduler or Trace not found.'
'/experiments/{experimentId}':
get:
tags:
@@ -660,58 +605,6 @@ paths:
description: Forbidden from getting Experiment's Room States.
'404':
description: 'Experiment, Room or Tick not found.'
- '/experiments/{experimentId}/task-states':
- get:
- tags:
- - simulations
- - states
- description: Get this Experiment's Task States.
- parameters:
- - name: experimentId
- in: path
- description: Experiment's ID.
- required: true
- type: string
- - name: tick
- in: query
- description: Tick to filter on.
- required: false
- type: integer
- - name: taskId
- in: query
- description: Task's ID to filter on.
- required: false
- type: string
- - name: machineId
- in: query
- description: Machine's ID to filter on.
- required: false
- type: string
- - name: rackId
- in: query
- description: ID the rack whose machines' task states to get
- required: false
- type: string
- - name: roomId
- in: query
- description: ID of the room whose racks' machines' states to get
- required: false
- type: string
- responses:
- '200':
- description: Successfully retrieved Task States.
- schema:
- type: array
- items:
- $ref: '#/definitions/TaskState'
- '400':
- description: Missing or incorrectly typed parameter.
- '401':
- description: Unauthorized.
- '403':
- description: Forbidden from retrieving Experiment's Task States.
- '404':
- description: 'Experiment, Tick, Task, Machine, Rack or Room not found.'
/schedulers:
get:
tags:
@@ -852,19 +745,10 @@ definitions:
type: array
items:
type: string
- TaskState:
- type: object
- properties:
- _id:
- type: string
- taskId:
- type: string
- experimentId:
- type: string
- tick:
- type: integer
- flopsLeft:
- type: integer
+ experimentIds:
+ type: array
+ items:
+ type: string
Topology:
type: object
properties: