diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-06-30 10:31:27 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:42:26 +0200 |
| commit | 690818051d0c9768cdaf735acf77ea9e98f00b38 (patch) | |
| tree | 81c43b13309e765c57a0e7d1ff7085310516b053 /opendc-api-spec.yml | |
| parent | 13d8de8b9e3ecdfcf1f315a095934bd2b0a68729 (diff) | |
Implement authorizations endpoint
Diffstat (limited to 'opendc-api-spec.yml')
| -rw-r--r-- | opendc-api-spec.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/opendc-api-spec.yml b/opendc-api-spec.yml index 34d3dbb7..6c819523 100644 --- a/opendc-api-spec.yml +++ b/opendc-api-spec.yml @@ -293,6 +293,34 @@ paths: description: Missing or incorrectly typed parameter. '401': description: Unauthorized. + '/simulations/{simulationId}/experiments': + post: + tags: + - experiments + description: Add an Experiment. + parameters: + - name: simulationId + in: path + description: Simulation's ID. + required: true + type: string + - name: experiment + in: body + description: The new Experiment. + required: true + schema: + properties: + topology: + $ref: '#/definitions/Experiment' + responses: + '200': + description: Successfully added Topology. + schema: + $ref: '#/definitions/Topology' + '400': + description: Missing or incorrectly typed parameter. + '401': + description: Unauthorized. '/topologies/{topologyId}': get: tags: |
