Skip to content

Commit 2ef93fa

Browse files
committed
Rest API: fix usage of energy vs power (#846)
1 parent d1c764b commit 2ef93fa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

static/rest-api.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -478,11 +478,11 @@ paths:
478478
summary: If SoC is available => specify SoC in %
479479
socNotAvailable:
480480
value: 2500
481-
summary: If SoC is not available => specify power in Watt
481+
summary: If SoC is not available => specify energy in kWh
482482
schema:
483483
anyOf:
484484
- $ref: "#/components/schemas/Soc"
485-
- $ref: "#/components/schemas/Power"
485+
- $ref: "#/components/schemas/Energy"
486486
- name: type
487487
in: path
488488
required: true
@@ -1157,7 +1157,7 @@ components:
11571157
power:
11581158
$ref: "#/components/schemas/Power"
11591159
Power:
1160-
description: Power in Watts
1160+
description: Power in W
11611161
type: number
11621162
minimum: 0
11631163
example: 2500
@@ -1381,7 +1381,7 @@ components:
13811381
$ref: "#/components/schemas/Current"
13821382
power:
13831383
name: power
1384-
description: Power in Watts
1384+
description: Power in W
13851385
in: path
13861386
required: true
13871387
schema:
@@ -1395,7 +1395,7 @@ components:
13951395
$ref: "#/components/schemas/Energy"
13961396
threshold:
13971397
name: threshold
1398-
description: Power in Watts
1398+
description: Power in W
13991399
in: path
14001400
required: true
14011401
schema:

0 commit comments

Comments
 (0)