From fff685aad9436e0b5bd68244685392b9d82ced46 Mon Sep 17 00:00:00 2001 From: Andreas Date: Wed, 11 Dec 2024 10:29:15 +0100 Subject: [PATCH] openAPI Template --- docs/akkudoktoreos/openapi.json | 46 ++++++++++++++++----------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/docs/akkudoktoreos/openapi.json b/docs/akkudoktoreos/openapi.json index 11e435a..0c82ce9 100644 --- a/docs/akkudoktoreos/openapi.json +++ b/docs/akkudoktoreos/openapi.json @@ -37,7 +37,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Body_fastapi_gesamtlast_gesamtlast_post" + "$ref": "#/components/schemas/GesamtlastRequest" } } }, @@ -248,28 +248,6 @@ }, "components": { "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": { "properties": { "kapazitaet_wh": { @@ -478,6 +456,28 @@ "required": ["temperature", "pvpower"], "title": "ForecastResponse" }, + "GesamtlastRequest": { + "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": "GesamtlastRequest" + }, "HTTPValidationError": { "properties": { "detail": {