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

Michel Peltriaux 2022-01-28 15:45:49 +01:00
parent 171152ebb4
commit ef93c28590

@ -0,0 +1,64 @@
## Spezifikation
### Ökokonto Abbuchung
#### GET alle
`/api/v1/deduction`
##### Beispiel Response
```json
{
"f784e131-afb7-4e15-ad57-0b2469f5e967": {
"id": "f784e131-afb7-4e15-ad57-0b2469f5e967",
"eco_account": {
"id": "3e7acd84-bb67-408d-886e-91004c319f38",
"identifier": "OEK-12022-TW4ECJ",
"title": "Tolles Ökokonto"
},
"surface": 1000.0,
"intervention": {
"id": "97d7cce8-83e9-4043-bc76-317caf983a41",
"identifier": "EIV-12022-B6XGM9",
"title": "Tolles Baugebiet GEÄNDERT1"
}
},
"a4f12eec-a29a-46c5-8fb8-58a8d3661eb6": {
"id": "a4f12eec-a29a-46c5-8fb8-58a8d3661eb6",
"eco_account": {
"id": "3e7acd84-bb67-408d-886e-91004c319f38",
"identifier": "OEK-12022-TW4ECJ",
"title": "Tolles Ökokonto"
},
"surface": 500.0,
"intervention": {
"id": "75c656e3-fdb9-46d5-bbd2-8dd26b6d295f",
"identifier": "EIV-012022-30X31E",
"title": "Tolles Baugebiet GEÄNDERT"
}
},
...
}
```
#### GET einzeln
`/api/v1/ecoaccount/<uuid>`
##### Beispiel Response
```json
{
"5ed582e0-b895-44c9-a6c9-211f0f546726": {
"id": "5ed582e0-b895-44c9-a6c9-211f0f546726",
"eco_account": {
"id": "3e7acd84-bb67-408d-886e-91004c319f38",
"identifier": "OEK-12022-TW4ECJ",
"title": "Tolles Ökokonto"
},
"surface": 152200.0,
"intervention": {
"id": "75c656e3-fdb9-46d5-bbd2-8dd26b6d295f",
"identifier": "EIV-012022-30X31E",
"title": "Tolles Baugebiet GEÄNDERT"
}
}
}
```