„api-v1-intervention-post_de“ hinzufügen

Michel Peltriaux 2022-01-28 13:59:47 +01:00
parent 29157f775f
commit a73433f9dd

@ -0,0 +1,85 @@
## Spezifikation
### Eingriff
#### Codes
Folgende Attribute referenzieren die `atomId` eines oKey Eintrags für Eingriffe:
1. `registration_office`
2. `conservation_office`
3. `process_type`
4. `laws` Einträge
#### POST
Mit `POST` kann ein neuer Eingriff angelegt werden. Die Eingriffsdaten werden im Request body als `application/json` gesendet. War der Request erfolgreich, erhält der Sender die `id` des neu angelegten Eintrags.
`/api/v1/intervention`
#### Beispiel Body
```json
{
"type": "MultiPolygon",
"coordinates": [
[
[
[
7.593955993652341,
50.36244809879689
],
[
7.592582702636717,
50.36023051515941
],
[
7.601766586303708,
50.35823186336356
],
[
7.603225708007811,
50.3628587510637
],
[
7.599148750305174,
50.362557606415464
],
[
7.596273422241207,
50.362612360130036
],
[
7.593955993652341,
50.36244809879689
]
]
]
],
"properties": {
"title": "Tolles Baugebiet",
"responsible": {
"registration_office": "1764986",
"registration_file_number": "XYZ.665-123",
"conservation_office": "710138",
"conservation_file_number": "ABC.123-5664",
"handler": "Stadt Koblenz"
},
"legal": {
"registration_date": "2021-12-27",
"binding_date": "2022-01-21",
"process_type": "626841266",
"laws": [
"710067"
]
}
}
}
```
#### Beispiel Response
```json
{
"id": "75c656e3-fdb9-46d5-bbd2-8dd26b6d295f"
}
```