mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-04-19 08:55:15 +00:00
OpenAPI Gesamtlast changed
This commit is contained in:
parent
8f341ab6c6
commit
8baa3ae81a
@ -33,40 +33,15 @@
|
|||||||
"summary": "Fastapi Gesamtlast",
|
"summary": "Fastapi Gesamtlast",
|
||||||
"description": "Endpoint to handle total load calculation based on the latest measured data.",
|
"description": "Endpoint to handle total load calculation based on the latest measured data.",
|
||||||
"operationId": "fastapi_gesamtlast_gesamtlast_post",
|
"operationId": "fastapi_gesamtlast_gesamtlast_post",
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"name": "year_energy",
|
|
||||||
"in": "query",
|
|
||||||
"required": true,
|
|
||||||
"schema": {
|
|
||||||
"type": "number",
|
|
||||||
"title": "Year Energy"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "hours",
|
|
||||||
"in": "query",
|
|
||||||
"required": false,
|
|
||||||
"schema": {
|
|
||||||
"type": "integer",
|
|
||||||
"default": 48,
|
|
||||||
"title": "Hours"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"requestBody": {
|
"requestBody": {
|
||||||
"required": true,
|
|
||||||
"content": {
|
"content": {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "array",
|
"$ref": "#/components/schemas/Body_fastapi_gesamtlast_gesamtlast_post"
|
||||||
"items": {
|
|
||||||
"type": "object"
|
|
||||||
},
|
|
||||||
"title": "Measured Data"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": true
|
||||||
},
|
},
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
@ -74,10 +49,10 @@
|
|||||||
"content": {
|
"content": {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "array",
|
|
||||||
"items": {
|
"items": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
|
"type": "array",
|
||||||
"title": "Response Fastapi Gesamtlast Gesamtlast Post"
|
"title": "Response Fastapi Gesamtlast Gesamtlast Post"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -273,6 +248,28 @@
|
|||||||
},
|
},
|
||||||
"components": {
|
"components": {
|
||||||
"schemas": {
|
"schemas": {
|
||||||
|
"Body_fastapi_gesamtlast_gesamtlast_post": {
|
||||||
|
"properties": {
|
||||||
|
"year_energy": {
|
||||||
|
"type": "number",
|
||||||
|
"title": "Year Energy"
|
||||||
|
},
|
||||||
|
"measured_data": {
|
||||||
|
"items": {
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"type": "array",
|
||||||
|
"title": "Measured Data"
|
||||||
|
},
|
||||||
|
"hours": {
|
||||||
|
"type": "integer",
|
||||||
|
"title": "Hours"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"required": ["year_energy", "measured_data", "hours"],
|
||||||
|
"title": "Body_fastapi_gesamtlast_gesamtlast_post"
|
||||||
|
},
|
||||||
"EAutoParameters": {
|
"EAutoParameters": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"kapazitaet_wh": {
|
"kapazitaet_wh": {
|
||||||
@ -332,9 +329,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": ["kapazitaet_wh"],
|
||||||
"kapazitaet_wh"
|
|
||||||
],
|
|
||||||
"title": "EAutoParameters"
|
"title": "EAutoParameters"
|
||||||
},
|
},
|
||||||
"EAutoResult": {
|
"EAutoResult": {
|
||||||
@ -480,10 +475,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": ["temperature", "pvpower"],
|
||||||
"temperature",
|
|
||||||
"pvpower"
|
|
||||||
],
|
|
||||||
"title": "ForecastResponse"
|
"title": "ForecastResponse"
|
||||||
},
|
},
|
||||||
"HTTPValidationError": {
|
"HTTPValidationError": {
|
||||||
@ -515,10 +507,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": ["consumption_wh", "duration_h"],
|
||||||
"consumption_wh",
|
|
||||||
"duration_h"
|
|
||||||
],
|
|
||||||
"title": "HomeApplianceParameters"
|
"title": "HomeApplianceParameters"
|
||||||
},
|
},
|
||||||
"OptimizationParameters": {
|
"OptimizationParameters": {
|
||||||
@ -587,11 +576,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": ["ems", "pv_akku", "eauto"],
|
||||||
"ems",
|
|
||||||
"pv_akku",
|
|
||||||
"eauto"
|
|
||||||
],
|
|
||||||
"title": "OptimizationParameters"
|
"title": "OptimizationParameters"
|
||||||
},
|
},
|
||||||
"OptimizeResponse": {
|
"OptimizeResponse": {
|
||||||
@ -750,9 +735,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": ["kapazitaet_wh"],
|
||||||
"kapazitaet_wh"
|
|
||||||
],
|
|
||||||
"title": "PVAkkuParameters"
|
"title": "PVAkkuParameters"
|
||||||
},
|
},
|
||||||
"SimulationResult": {
|
"SimulationResult": {
|
||||||
@ -958,11 +941,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": ["loc", "msg", "type"],
|
||||||
"loc",
|
|
||||||
"msg",
|
|
||||||
"type"
|
|
||||||
],
|
|
||||||
"title": "ValidationError"
|
"title": "ValidationError"
|
||||||
},
|
},
|
||||||
"WechselrichterParameters": {
|
"WechselrichterParameters": {
|
||||||
@ -979,4 +958,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user