diff --git a/api-v1-deduction-get_de.md b/api-v1-deduction-get_de.md new file mode 100644 index 0000000..6b61924 --- /dev/null +++ b/api-v1-deduction-get_de.md @@ -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/` + +##### 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" + } + } +} +``` \ No newline at end of file