summaryrefslogtreecommitdiff
path: root/opendc-api-spec.yml
diff options
context:
space:
mode:
authorjc0b <j@jc0b.computer>2020-06-26 11:45:10 +0200
committerjc0b <j@jc0b.computer>2020-06-26 11:45:10 +0200
commitad31b66503ec65e611ab96c2a540180ed25f5a6f (patch)
tree6ef7645309f3ad5a25ab73b1248aa70980a4fd33 /opendc-api-spec.yml
parent998827782b0debfa03e7766b0e02c02bddfd5e3a (diff)
Moved topologies POST to simulations
Diffstat (limited to 'opendc-api-spec.yml')
-rw-r--r--opendc-api-spec.yml9
1 files changed, 7 insertions, 2 deletions
diff --git a/opendc-api-spec.yml b/opendc-api-spec.yml
index 3d27175c..56f1d529 100644
--- a/opendc-api-spec.yml
+++ b/opendc-api-spec.yml
@@ -265,12 +265,17 @@ paths:
description: Forbidden from retrieving this Simulation's Authorizations.
'404':
description: Simulation not found.
- '/topologies':
+ '/simulations/{simulationId}/topologies':
post:
tags:
- - topologies
+ - simulations
description: Add a Topology.
parameters:
+ - name: simulationId
+ in: path
+ description: Simulation's ID.
+ required: true
+ type: string
- name: topology
in: body
description: The new Topology.