EN/Api/Plant

From Smart Biogas Wiki
(Redirected from EN/Api/Impianto)
Jump to navigation Jump to search

◀ Back to API Menu

Plant Data

Authentication must be specified in the request header:

X-API-TOKEN: {128-character key provided for the specific plant}

GET https://smartbiogas.it/api/v1/plant

Result: Json with an array of results

{
	"plant_id": plantId 79,
	"f_cod": identification code "CN24",
	"plant_name": Description "Mene'",
	"eu_countries_id": countryId 19,
	"eu_cities_id": cityId 65678,
	"f_plant_address": Address "Località Spessa Soprana 142\/A",
	"f_plant_latlon": LAT_LON "44.7183308223895_7.7189437817964",
	"f_plant_power": Plant power in kW 999,
	"soggetto_proprietario": single object of the sole plant owner
	{ 
		"soggetto_id": subjectId 77,
		"f_soggetto_name": Company name "Menè Società  Cooperativa Agricola",
		"f_vat": VAT number "03328400043",
		"soggetti_soci": Array of connected partners/shareholders 
		[ 
			{
				"soggetto_id": partnerSubjectId,
				"f_soggetto_name": Partner company name,
				"f_vat": Partner VAT number
			},
			{
				"soggetto_id": 2095,
				"f_soggetto_name": "Massimino Soc. Semplice Agr.",
				"f_vat": "00230660045"
			},
			...
		]
	}
}