Page:
							api v1 deduction get_de
						
						
					
					
							Pages
							
							
								EGON
							
								Home
							
								Home_en
							
								api v1 compensation delete_de
							
								api v1 compensation get_de
							
								api v1 compensation json properties de
							
								api v1 compensation post_de
							
								api v1 compensation put_de
							
								api v1 deduction delete_de
							
								api v1 deduction get_de
							
								api v1 deduction json properties de
							
								api v1 deduction post_de
							
								api v1 deduction put_de
							
								api v1 ecoaccount delete_de
							
								api v1 ecoaccount get_de
							
								api v1 ecoaccount json properties de
							
								api v1 ecoaccount post_de
							
								api v1 ecoaccount put_de
							
								api v1 ema delete_de
							
								api v1 ema get_de
							
								api v1 ema json properties de
							
								api v1 ema post_de
							
								api v1 ema put_de
							
								api v1 intervention check_de
							
								api v1 intervention delete_de
							
								api v1 intervention get_de
							
								api v1 intervention json properties de
							
								api v1 intervention post_de
							
								api v1 intervention put_de
							
								api v1 share get_de
							
								api v1 share put_de
							
								api_de
							
								custom commands
							
								features
							
								features_de
							
								features_en
							
								generate_report_de
							
								konova codes
							
								recalculate_parcels_de
							
								technical documentation
							
								technical documentation_de
							
						
					 Clone
	
					3 
					
				
						api v1 deduction get_de
						
				
							
							mpeltriaux edited this page 2022-02-16 11:23:25 +01:00 
						
					Spezifikation
GET Response allgemein
Jeder erfolgreiche GET Request wird mit folgender Response Struktur beantwortet:
{
    "rpp": 5,
    "p": 1,
    "next": "http://example.org/api/v1/xyz/?rpp=5&p=2",
    "results": {
        ...
    }
}
Erklärung:
rpp: Results per page. Bestimmt wie viele Ergebnisse pro Seite zurückgeliefert werdenp: Page. Gibt die zurückgelieferte Seitennummer annext: URL zur nächsten Seite. Sollte keine weitere Seite existieren wird hiernullstehenresults: Die angefragten Daten.- Alle folgenden Response Beispiele beziehen sich auf den Inhalt von 
results 
- Alle folgenden Response Beispiele beziehen sich auf den Inhalt von 
 
Request Parameter:
rpp: Kann direkt alsGETParameter im Request mitgegeben werden (s.nextURL). Muss eine Zahl > 0 sein. Falls nicht angegeben, wird ein Standardwert verwendetp: Kann direkt alsGETParameter im Request mitgegeben werden (s.nextURL). Muss eine Zahl > 0 sein. Falls nicht angegeben, wird ein Standardwert verwendet
Ökokonto Abbuchung
GET alle
/api/v1/deduction
Beispiel Response
{
    "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/deduction/<uuid>
Beispiel Response
{
    "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"
        }
    }
}