„api-v1-ema-get_de“ hinzufügen

Michel Peltriaux 2022-01-28 14:37:19 +01:00
parent 00cdf1f121
commit 55588af6fc

304
api-v1-ema-get_de.md Normal file

@ -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/<uuid>`
##### 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": []
}
}
}
```