diff --git a/api-v1-compensation-get_de.md b/api-v1-compensation-get_de.md new file mode 100644 index 0000000..a1cc466 --- /dev/null +++ b/api-v1-compensation-get_de.md @@ -0,0 +1,304 @@ +## Spezifikation +### Kompensation +#### GET alle +`/api/v1/compensation` + +##### Beispiel Response +```json +{ + "71a0d04e-8d6a-4d95-845a-6889d920b5f6": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ + 7.477097511291501, + 50.14218444767971 + ], + [ + 7.479243278503415, + 50.140479182654374 + ], + [ + 7.483620643615721, + 50.14300955409459 + ], + [ + 7.482976913452146, + 50.14405466845533 + ], + [ + 7.481346130371092, + 50.14416467916495 + ], + [ + 7.479929924011228, + 50.143174573669675 + ], + [ + 7.47808456420898, + 50.14232196640389 + ], + [ + 7.477097511291501, + 50.14218444767971 + ] + ] + ] + ], + "properties": { + "id": "71a0d04e-8d6a-4d95-845a-6889d920b5f6", + "identifier": "KOM-012022-2OOT0W", + "title": "Tolle Kompensation", + "created_on": "2022-01-24T13:34:18.149Z", + "modified_on": "2022-01-24T13:34:18.149Z", + "is_cef": false, + "is_coherence_keeping": false, + "intervention": { + "id": "97d7cce8-83e9-4043-bc76-317caf983a41", + "identifier": "EIV-12022-B6XGM9", + "title": "Tolles Baugebiet GEÄNDERT1" + }, + "before_states": [ + { + "biotope": { + "atom_id": 136156, + "long_name": "Buchenmischwald mit einheimischen Laubbaumarten", + "short_name": "AA2" + }, + "surface": 1000.0 + } + ], + "after_states": [ + { + "biotope": { + "atom_id": 136204, + "long_name": "Fichtenwald", + "short_name": "AJ0" + }, + "surface": 1000.0 + } + ], + "actions": [ + { + "action": { + "atom_id": 709452, + "long_name": "Pflanzung von Einzelbäumen", + "short_name": null + }, + "amount": 1000.0, + "unit": "qm", + "comment": "" + } + ], + "deadlines": [ + { + "type": "finished", + "date": "2022-01-31", + "comment": "" + } + ] + } + }, + "7303afbb-693c-4623-adb0-8ab115d6bacc": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ + 7.477097511291501, + 50.14218444767971 + ], + [ + 7.479243278503415, + 50.140479182654374 + ], + [ + 7.483620643615721, + 50.14300955409459 + ], + [ + 7.482976913452146, + 50.14405466845533 + ], + [ + 7.481346130371092, + 50.14416467916495 + ], + [ + 7.479929924011228, + 50.143174573669675 + ], + [ + 7.47808456420898, + 50.14232196640389 + ], + [ + 7.477097511291501, + 50.14218444767971 + ] + ] + ] + ], + "properties": { + "id": "7303afbb-693c-4623-adb0-8ab115d6bacc", + "identifier": "KOM-012022-EG28XU", + "title": "Tolle Kompensation", + "created_on": "2022-01-24T13:39:14.292Z", + "modified_on": "2022-01-24T13:39:14.292Z", + "is_cef": false, + "is_coherence_keeping": false, + "intervention": { + "id": "97d7cce8-83e9-4043-bc76-317caf983a41", + "identifier": "EIV-12022-B6XGM9", + "title": "Tolles Baugebiet GEÄNDERT1" + }, + "before_states": [ + { + "biotope": { + "atom_id": 136156, + "long_name": "Buchenmischwald mit einheimischen Laubbaumarten", + "short_name": "AA2" + }, + "surface": 1000.0 + } + ], + "after_states": [ + { + "biotope": { + "atom_id": 136204, + "long_name": "Fichtenwald", + "short_name": "AJ0" + }, + "surface": 1000.0 + } + ], + "actions": [ + { + "action": { + "atom_id": 709452, + "long_name": "Pflanzung von Einzelbäumen", + "short_name": null + }, + "amount": 1000.0, + "unit": "qm", + "comment": "" + } + ], + "deadlines": [ + { + "type": "finished", + "date": "2022-01-31", + "comment": "" + } + ] + } + }, + ... +} + +``` + + +#### GET einzeln +`/api/v1/intervention/` + +##### Beispiel Response +```json +{ + "128d387d-9ef5-499c-a33f-9aa0ff4ea731": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ + 7.477097511291501, + 50.14218444767971 + ], + [ + 7.479243278503415, + 50.140479182654374 + ], + [ + 7.483620643615721, + 50.14300955409459 + ], + [ + 7.482976913452146, + 50.14405466845533 + ], + [ + 7.481346130371092, + 50.14416467916495 + ], + [ + 7.479929924011228, + 50.143174573669675 + ], + [ + 7.47808456420898, + 50.14232196640389 + ], + [ + 7.477097511291501, + 50.14218444767971 + ] + ] + ] + ], + "properties": { + "id": "128d387d-9ef5-499c-a33f-9aa0ff4ea731", + "identifier": "KOM-012022-UL356G", + "title": "Tolle Kompensation1234", + "created_on": "2022-01-24T14:01:48.620Z", + "modified_on": "2022-01-28T07:49:42.540Z", + "is_cef": false, + "is_coherence_keeping": false, + "intervention": { + "id": "97d7cce8-83e9-4043-bc76-317caf983a41", + "identifier": "EIV-12022-B6XGM9", + "title": "Tolles Baugebiet GEÄNDERT1" + }, + "before_states": [ + { + "biotope": { + "atom_id": 136156, + "long_name": "Buchenmischwald mit einheimischen Laubbaumarten", + "short_name": "AA2" + }, + "surface": 1000.0 + } + ], + "after_states": [ + { + "biotope": { + "atom_id": 136204, + "long_name": "Fichtenwald", + "short_name": "AJ0" + }, + "surface": 1000.0 + } + ], + "actions": [ + { + "action": { + "atom_id": 709452, + "long_name": "Pflanzung von Einzelbäumen", + "short_name": null + }, + "amount": 1000.0, + "unit": "qm", + "comment": "" + } + ], + "deadlines": [ + { + "type": "finished", + "date": "2022-01-31", + "comment": "" + } + ] + } + } +} +``` \ No newline at end of file