Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an endpoint for closing an experiment #95

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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