From 36bf7f71dcffdb993c88c2d2c0557b2f0a310390 Mon Sep 17 00:00:00 2001 From: Michel Peltriaux Date: Fri, 28 Jan 2022 14:35:00 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9Eapi-v1-ecoaccount-put=5Fde=E2=80=9C=20?= =?UTF-8?q?hinzuf=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api-v1-ecoaccount-put_de.md | 114 ++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 api-v1-ecoaccount-put_de.md diff --git a/api-v1-ecoaccount-put_de.md b/api-v1-ecoaccount-put_de.md new file mode 100644 index 0000000..2b7d901 --- /dev/null +++ b/api-v1-ecoaccount-put_de.md @@ -0,0 +1,114 @@ +## Spezifikation +### Ökokonto +#### Codes +Folgende Attribute referenzieren die `atomId` eines oKey Eintrags für Ökokonten: +1. `biotope` +2. `action` + +#### PUT +Mit `PUT` kann ein Ökokonto überarbeitet werden. Die Daten werden im Request body als `application/json` gesendet. War der Request erfolgreich, erhält der Sender die `id` des überarbeiteten Eintrags. + +`/api/v1/ecoaccount/` + +#### Beispiel Body + +```json +{ + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ + 7.764930725097654, + 50.530801443594385 + ], + [ + 7.763471603393552, + 50.52709125717179 + ], + [ + 7.761154174804686, + 50.524581259743805 + ], + [ + 7.762441635131831, + 50.52141629007823 + ], + [ + 7.766475677490232, + 50.51950629189859 + ], + [ + 7.770338058471677, + 50.51868769758818 + ], + [ + 7.778749465942381, + 50.51928800147066 + ], + [ + 7.780122756958003, + 50.52763689111973 + ], + [ + 7.775144577026365, + 50.533965783820754 + ], + [ + 7.768535614013667, + 50.533965783820754 + ], + [ + 7.764930725097654, + 50.530801443594385 + ] + ] + ] + ], + "properties": { + "title": "Tolles Ökokonto", + "deductable_surface": "100.0", + "responsible": { + "conservation_office": "710123", + "conservation_file_number": "123-TEST", + "handler": "Landkreis Ahrweiler" + }, + "legal": { + "agreement_date": "2022-01-11" + }, + "before_states": [ + { + "biotope": "136155", + "surface": 10000.0 + } + ], + "after_states": [ + { + "biotope": "136156", + "surface": 10000.0 + } + ], + "actions": [ + { + "action": "709234", + "amount": 1.0, + "unit": "cm", + "comment": "" + } + ], + "deadlines": [] + } + } + +``` + + + + +#### Beispiel Response +```json +{ + "id": "75c656e3-fdb9-46d5-bbd2-8dd26b6d295f" +} + +``` \ No newline at end of file