summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-api/static
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-07-02 13:16:45 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-07-02 13:16:45 +0200
commitd4fec022c5e5ad38e7b5a488cb28e320ea1d6416 (patch)
tree6d2b0badf3329ce0122b8f911a89d38a23cafbe5 /opendc-web/opendc-web-api/static
parent07958ab26e94d5ab7e0873cc00d7beb9c417975e (diff)
api: Fix OpenAPI topology schema
This change addresses some issues in the OpenAPI schema for the datacenter topology.
Diffstat (limited to 'opendc-web/opendc-web-api/static')
-rw-r--r--opendc-web/opendc-web-api/static/schema.yml32
1 files changed, 27 insertions, 5 deletions
diff --git a/opendc-web/opendc-web-api/static/schema.yml b/opendc-web/opendc-web-api/static/schema.yml
index 99e88095..6e0bddfd 100644
--- a/opendc-web/opendc-web-api/static/schema.yml
+++ b/opendc-web/opendc-web-api/static/schema.yml
@@ -1153,6 +1153,10 @@ components:
object:
type: object
properties:
+ _id:
+ type: string
+ name:
+ type: string
capacity:
type: integer
powerCapacityW:
@@ -1162,52 +1166,70 @@ components:
items:
type: object
properties:
+ _id:
+ type: string
position:
type: integer
- cpuItems:
+ cpus:
type: array
items:
type: object
properties:
+ _id:
+ type: string
name:
type: string
clockRateMhz:
type: integer
numberOfCores:
type: integer
- gpuItems:
+ energyConsumptionW:
+ type: integer
+ gpus:
type: array
items:
type: object
properties:
+ _id:
+ type: string
name:
type: string
clockRateMhz:
type: integer
numberOfCores:
type: integer
- memoryItems:
+ energyConsumptionW:
+ type: integer
+ memories:
type: array
items:
type: object
properties:
+ _id:
+ type: string
name:
type: string
speedMbPerS:
type: integer
sizeMb:
type: integer
- storageItems:
+ energyConsumptionW:
+ type: integer
+ storages:
type: array
items:
- type: integer
+ type: object
properties:
+ _id:
+ type: string
name:
type: string
speedMbPerS:
type: integer
sizeMb:
type: integer
+ energyConsumptionW:
+ type: integer
Portfolio:
type: object
properties: