From 55588af6fc0e7665927512311052f38d84218fde Mon Sep 17 00:00:00 2001 From: Michel Peltriaux Date: Fri, 28 Jan 2022 14:37:19 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9Eapi-v1-ema-get=5Fde=E2=80=9C=20hinzuf?= =?UTF-8?q?=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api-v1-ema-get_de.md | 304 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 304 insertions(+) create mode 100644 api-v1-ema-get_de.md diff --git a/api-v1-ema-get_de.md b/api-v1-ema-get_de.md new file mode 100644 index 0000000..e2204b2 --- /dev/null +++ b/api-v1-ema-get_de.md @@ -0,0 +1,304 @@ +## Spezifikation +### EMA +#### GET alle +`/api/v1/ema` + +##### Beispiel Response +```json +{ + "f1410071-239e-4615-b7a5-f0780030d42c": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ + 7.845568656921382, + 50.79829702304368 + ], + [ + 7.837371826171871, + 50.80155187891526 + ], + [ + 7.835698127746578, + 50.805267562209806 + ], + [ + 7.841062545776364, + 50.806623577403386 + ], + [ + 7.848916053771969, + 50.808359219420474 + ], + [ + 7.855696678161618, + 50.807057493952975 + ], + [ + 7.854666709899899, + 50.80423696434001 + ], + [ + 7.850461006164548, + 50.80217570040005 + ], + [ + 7.845568656921382, + 50.79829702304368 + ] + ] + ] + ], + "properties": { + "id": "f1410071-239e-4615-b7a5-f0780030d42c", + "identifier": "EMA-12022-5T92V0", + "title": "Tolles EMA", + "created_on": "2022-01-13T08:22:36.792Z", + "modified_on": "2022-01-21T08:06:08.874Z", + "responsible": { + "conservation_office": { + "atom_id": 710123, + "long_name": "LK Ahrweiler", + "short_name": "10" + }, + "conservation_file_number": "unbekannt", + "handler": "Firma XY" + }, + "before_states": [ + { + "biotope": { + "atom_id": 136156, + "long_name": "Buchenmischwald mit einheimischen Laubbaumarten", + "short_name": "AA2" + }, + "surface": 1.0 + } + ], + "after_states": [ + { + "biotope": { + "atom_id": 136164, + "long_name": "Buchen-Eichenmischwald", + "short_name": "AB1" + }, + "surface": 1.0 + } + ], + "actions": [ + { + "action": { + "atom_id": 709234, + "long_name": "Sonstiges (s. Erläuterungen)", + "short_name": null + }, + "amount": 1.0, + "unit": "cm", + "comment": "" + } + ], + "deadlines": [] + } + }, + "08ce8b90-231f-42d5-82dd-a3f555d82de0": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ + 7.845568656921382, + 50.79829702304368 + ], + [ + 7.837371826171871, + 50.80155187891526 + ], + [ + 7.835698127746578, + 50.805267562209806 + ], + [ + 7.841062545776364, + 50.806623577403386 + ], + [ + 7.848916053771969, + 50.808359219420474 + ], + [ + 7.855696678161618, + 50.807057493952975 + ], + [ + 7.854666709899899, + 50.80423696434001 + ], + [ + 7.850461006164548, + 50.80217570040005 + ], + [ + 7.845568656921382, + 50.79829702304368 + ] + ] + ] + ], + "properties": { + "id": "08ce8b90-231f-42d5-82dd-a3f555d82de0", + "identifier": "EMA-012022-M8XI99", + "title": "Tolles EMA123", + "created_on": "2022-01-24T15:38:51.395Z", + "modified_on": "2022-01-24T15:42:01.431Z", + "responsible": { + "conservation_office": { + "atom_id": 710123, + "long_name": "LK Ahrweiler", + "short_name": "10" + }, + "conservation_file_number": "", + "handler": "Firma XY" + }, + "before_states": [ + { + "biotope": { + "atom_id": 136156, + "long_name": "Buchenmischwald mit einheimischen Laubbaumarten", + "short_name": "AA2" + }, + "surface": 1.0 + } + ], + "after_states": [ + { + "biotope": { + "atom_id": 136164, + "long_name": "Buchen-Eichenmischwald", + "short_name": "AB1" + }, + "surface": 10.0 + } + ], + "actions": [ + { + "action": { + "atom_id": 709234, + "long_name": "Sonstiges (s. Erläuterungen)", + "short_name": null + }, + "amount": 1.0, + "unit": "cm", + "comment": "" + } + ], + "deadlines": [] + } + }, + ... +} + +``` + + +#### GET einzeln +`/api/v1/ema/` + +##### Beispiel Response +```json +{ + "f1410071-239e-4615-b7a5-f0780030d42c": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ + 7.845568656921382, + 50.79829702304368 + ], + [ + 7.837371826171871, + 50.80155187891526 + ], + [ + 7.835698127746578, + 50.805267562209806 + ], + [ + 7.841062545776364, + 50.806623577403386 + ], + [ + 7.848916053771969, + 50.808359219420474 + ], + [ + 7.855696678161618, + 50.807057493952975 + ], + [ + 7.854666709899899, + 50.80423696434001 + ], + [ + 7.850461006164548, + 50.80217570040005 + ], + [ + 7.845568656921382, + 50.79829702304368 + ] + ] + ] + ], + "properties": { + "id": "f1410071-239e-4615-b7a5-f0780030d42c", + "identifier": "EMA-12022-5T92V0", + "title": "Tolles EMA", + "created_on": "2022-01-13T08:22:36.792Z", + "modified_on": "2022-01-21T08:06:08.874Z", + "responsible": { + "conservation_office": { + "atom_id": 710123, + "long_name": "LK Ahrweiler", + "short_name": "10" + }, + "conservation_file_number": "unbekannt", + "handler": "Firma XY" + }, + "before_states": [ + { + "biotope": { + "atom_id": 136156, + "long_name": "Buchenmischwald mit einheimischen Laubbaumarten", + "short_name": "AA2" + }, + "surface": 1.0 + } + ], + "after_states": [ + { + "biotope": { + "atom_id": 136164, + "long_name": "Buchen-Eichenmischwald", + "short_name": "AB1" + }, + "surface": 1.0 + } + ], + "actions": [ + { + "action": { + "atom_id": 709234, + "long_name": "Sonstiges (s. Erläuterungen)", + "short_name": null + }, + "amount": 1.0, + "unit": "cm", + "comment": "" + } + ], + "deadlines": [] + } + } +} +``` \ No newline at end of file