Skip to content

Commit

Permalink
Add an endpoint for closing an experiment
Browse files Browse the repository at this point in the history
With this it's possible to close an experiment on the server. Upon
reception of the command the server can dispose allocated resources
hence the client doesn't need them anymore.

UI clients for example can close the experiment when a user closed the
graphs.

Fixes eclipse-cdt-cloud#96

Signed-off-by: Bernd Hufmann <[email protected]>
  • Loading branch information
bhufmann committed Nov 2, 2023
1 parent 6c4eb62 commit 458f8d6
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
27 changes: 27 additions & 0 deletions API-proposed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1169,6 +1169,33 @@ paths:
application/json:
schema:
type: string
/experiments/{expUUID}:close:
put:
tags:
- Experiments
summary: Close experiment to dispose allocated resources.
operationId: closeExperiment
parameters:
- name: expUUID
in: path
description: UUID of the experiment to query
required: true
schema:
type: string
format: uuid
responses:
"200":
description: Return the model of the closed experiment
content:
application/json:
schema:
$ref: '#/components/schemas/Experiment'
"404":
description: No such experiment
content:
application/json:
schema:
type: string
/experiments/{expUUID}:
get:
tags:
Expand Down
27 changes: 27 additions & 0 deletions API.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1159,6 +1159,33 @@ paths:
application/json:
schema:
type: string
/experiments/{expUUID}:close:
put:
tags:
- Experiments
summary: Close experiment to dispose allocated resources.
operationId: closeExperiment
parameters:
- name: expUUID
in: path
description: UUID of the experiment to query
required: true
schema:
type: string
format: uuid
responses:
"200":
description: Return the model of the closed experiment
content:
application/json:
schema:
$ref: '#/components/schemas/Experiment'
"404":
description: No such experiment
content:
application/json:
schema:
type: string
/experiments/{expUUID}:
get:
tags:
Expand Down

0 comments on commit 458f8d6

Please sign in to comment.