Skip to content

Commit

Permalink
Change PUT experiment specification to update experiments
Browse files Browse the repository at this point in the history
- Rename operation "putExperiment" to "updateExperiment"
- Remove actions to remove or add traces
- Move name query parameter to payload

fixes eclipse-cdt-cloud#69

Signed-off-by: Bernd Hufmann <[email protected]>
  • Loading branch information
bhufmann committed Dec 9, 2021
1 parent 34d244c commit a199b1e
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions API.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ paths:
description: No such experiment
put:
summary: Update an experiment's content and name.
operationId: putExperiment
operationId: updateExperiment
tags:
- Experiments
parameters:
Expand All @@ -226,12 +226,6 @@ paths:
schema:
type: string
format: uuid
- name: name
in: query
description: The name to give this experiment
required: true
schema:
type: string
requestBody:
description: Additional information to update an experiment
required: false
Expand All @@ -240,6 +234,9 @@ paths:
schema:
type: object
properties:
name:
description: The name to give this experiment
type: string
expTypeID:
description: Type ID to apply to this experiment
type: string
Expand All @@ -257,14 +254,6 @@ paths:
description: Time offset to apply to this trace
type: integer
format: int64
action:
description: Action to perform on the given trace (add or remove from the experiment)
type: string
enum: [add, remove]
default: add
required:
- traceUUID
- action
responses:
200:
description: The Experiment was successfully modified
Expand Down

0 comments on commit a199b1e

Please sign in to comment.