„api v1 compensation json properties de“ ändern

mpeltriaux 2022-04-27 10:19:32 +02:00
parent bf6ac8350e
commit 898d581aba

@ -54,21 +54,10 @@
"before_states": [ "before_states": [
{ {
"biotope": "136156", "biotope": "136156",
"biotope_details": [],
"surface": 1000.0
},
{
"biotope": "136156",
"biotope_details": [],
"surface": 11.0
},
{
"biotope": "136159",
"biotope_details": [ "biotope_details": [
"138046", "138046"
"161751"
], ],
"surface": 1.0 "surface": 1000.0
} }
], ],
"after_states": [ "after_states": [
@ -80,20 +69,17 @@
], ],
"actions": [ "actions": [
{ {
"action": "709452", "action_types": [
"action_details": [], "709297",
"amount": 1000.0, "709289",
"unit": "qm", "709299"
"comment": "" ],
},
{
"action": "709130",
"action_details": [ "action_details": [
"709649", "709649",
"709709" "709709"
], ],
"amount": 1.0, "amount": 1000.0,
"unit": "pcs", "unit": "qm",
"comment": "" "comment": ""
} }
], ],
@ -106,6 +92,7 @@
] ]
} }
} }
``` ```
</details> </details>
@ -138,12 +125,12 @@
* Aufbau identisch zu `before_states` * Aufbau identisch zu `before_states`
* `actions` (list): * `actions` (list):
* Enthält Informationen zu einer Menge von konkreten Maßnahmen, welche durchgeführt wurden, um die beschriebene Biotopveränderung zu bewirken * Enthält Informationen zu einer Menge von konkreten Maßnahmen, welche durchgeführt wurden, um die beschriebene Biotopveränderung zu bewirken
* `action.action` (str): * `action.action_types` (list):
* Identifiziert eindeutig eine Maßnahme * Identifiziert eindeutig eine Menge von Maßnahmen, die zusammengehörig durchgeführt werden
* `action.action_details` (str): * `action.action_details` (str):
* Identifiziert eindeutig eine Menge von Zusatzmerkmalen, welche der Maßnahme zugeordnet werden können * Identifiziert eindeutig eine Menge von Zusatzmerkmalen, welche der Maßnahme zugeordnet werden können
* `action.amount` (float): * `action.amount` (float):
* Menge/Anzahl der Maßnahme * Menge/Anzahl der durchzuführenden Maßnahmen
* `action.unit` (str): * `action.unit` (str):
* Einheitstyp für `amount` * Einheitstyp für `amount`
* Valide Einheiten sind: ["cm", "m", "km", "qm", "ha", "pcs"] ~(cm, m, km, m², ha, St.) * Valide Einheiten sind: ["cm", "m", "km", "qm", "ha", "pcs"] ~(cm, m, km, m², ha, St.)