### Retrieve Equipment Details Source: https://qdc-api.imagelinenetwork.com/redoc Example JSON response for the GET /qdc/macchine endpoint. ```json { "pagination": { "total": 1, "per_page": 50, "total_pages": 1, "current_page": 1 }, "data": [ { "sede_id": 68784, "asset_chiave_licenza": "20dfh349r98121zxke", "macchina": "Dual 12 Gold", "macchina_tipo_id": 27, "macchina_tipo": "Trapiantatrici", "macchina_marca": "Checchi & Magli", "ultimo_controllo_data": "2024-01-01" } ] } ``` -------------------------------- ### Retrieve Crop List Response Example Source: https://qdc-api.imagelinenetwork.com/redoc Example JSON response for the get/dizionari/colture/{tipo_coltura} endpoint. ```json [ { "piante": [ { "pianta_id": 151, "pianta_desc": "Albicocco", "pianta_eppo": "PRNAR" } ], "impiego_id": 151, "impiego_desc": "Albicocco", "arborea": true, "codifiche_agea": [ { "occ_suolo_cod": "624", "occ_suolo": "MIGLIO", "dest_uso_cod": "002", "dest_uso": "DA FORAGGIO", "uso_cod": "053", "uso": "ERBAIO IN PUREZZA, ANNUALE - NON PERMANENTE", "qualita_cod": "045", "qualita": "DI GRAMINACEE" } ] } ] ``` -------------------------------- ### Retrieve Operator Information Source: https://qdc-api.imagelinenetwork.com/redoc Example JSON response for the GET /qdc/operatori endpoint. ```json { "pagination": { "total": 1, "per_page": 50, "total_pages": 1, "current_page": 1 }, "data": [ { "sede_id": 68784, "asset_chiave_licenza": "20dfh349r98121zxke", "operatore_nome": "Gregorio", "operatore_cognome": "Rossi", "operatore_cf": "GRGRSS70E01D458A", "azienda_piva": "01183320012", "azienda_ragsoc": "Azienda Contoterzisti associati", "certificati": [ { "numero": "1512100", "data_rilascio": "20/12/2022", "data_scadenza": "19/12/2027" } ] } ] } ``` -------------------------------- ### Retrieve Operations List Response Example Source: https://qdc-api.imagelinenetwork.com/redoc Example JSON response for the get/dizionari/operazioni endpoint. ```json [ { "operazione_id": 1, "operazione": "Trattamenti fitosanitari", "operazione_principale": true } ] ``` -------------------------------- ### Fertilizer Search Response Example Source: https://qdc-api.imagelinenetwork.com/redoc Example JSON response structure for a successful fertilizer search query. ```json { "pagination": { "total": 1, "per_page": 50, "total_pages": 1, "current_page": 1 }, "data": [ { "id": 21314, "nome": "BASFOLIAR CU FLO", "ufficiale": true, "composizione": [ { "sa": "Rame", "perc": 25 } ], "tipo": "Concime chimico / Substrato", "tipo_dettagli": "Concimi minerali composti - Concimi NPK", "biologico": false, "refluo": false, "refluo_tipo": "letame", "peso_vol": 650, "perc_secco": 40, "liquido": true } ] } ``` -------------------------------- ### GET /qdc/unitaproduttiva_fascicolo Source: https://qdc-api.imagelinenetwork.com/openapi.json Retrieves the original dataset for a production unit. ```APIDOC ## GET /qdc/unitaproduttiva_fascicolo ### Description Returns the original dataset provided by SIAN or other sources that generated the production unit. ### Method GET ### Endpoint /qdc/unitaproduttiva_fascicolo ### Parameters #### Query Parameters - **idsede** (integer) - Required - Company site ID - **idup** (integer) - Required - Production unit ID ### Response #### Success Response (200) - **UnitaProduttivaFascicoloResponse** (object) - The original fascicle data. ``` -------------------------------- ### Response Sample for Unita Produttive Source: https://qdc-api.imagelinenetwork.com/redoc Example JSON response structure returned by the /qdc/unitaproduttive endpoint. ```json { "pagination": { "total": 1, "per_page": 50, "total_pages": 1, "current_page": 1 }, "data": [ { "sede_id": 68784, "asset_chiave_licenza": "20dfh349r98121zxke", "id": 163698, "desc": "Albicocco - Mikado", "codice": "A1", "datainizio": "2010-02-01", "datafine": "2040-02-02", "dataimpianto": "2010-04-01", "datafineallevamento": "2012-05-21", "modo_id": 1, "ambito_id": 1, "piante": [ { "pianta_id": 151, "pianta_desc": "Albicocco", "pianta_eppo": "PRNAR" } ], "impiego_id": 151, "impiego_desc": "Albicocco", "varieta_id": 273970, "varieta_desc": "Mikado", "pratica_id": 2, "pratica_desc": "Difesa integrata volontaria", "geometry": "{\"type\": \"Polygon\", \"coordinates\": [[11.650893688201904, 44.88769659980514], [11.65125846862793, 44.88442795308042], [11.656622886657715, 44.88537055863511], [11.655550003051758, 44.888471925960225], [11.653339862823486, 44.888031055506715], [11.653296947479248, 44.88772700494928], [11.651945114135742, 44.88739254747979], [11.651816368103027, 44.88772700494928], [11.650893688201904, 44.88769659980514]]}", "areadisc_id": 8, "areadisc_desc": "Emilia Romagna", "lat": 44.887106, "lon": 11.65309, "nota": "", "supha": 16.45, "info": [ { "chiave": "supporto", "valore": "60" } ], "vincoli": { "zona_efa": true, "zona_vulnerabile": true, "zona_ramsar": true, "zona_natura2000": -1, "direttiva_nitrati": 0, "direttiva_habitat": true }, "protocolli": { "biologico": true, "in_conversione": true, "sqnpi": true }, "codifica_agea": { "occ_suolo_cod": "624", "occ_suolo": "MIGLIO", "dest_uso_cod": "002", "dest_uso": "DA FORAGGIO", "uso_cod": "053", "uso": "ERBAIO IN PUREZZA, ANNUALE - NON PERMANENTE", "qualita_cod": "045", "qualita": "DI GRAMINACEE", "varieta_cod": "000", "varieta": "" }, "cicli": [ { "ciclo_inizio": "2024-02-01", "ciclo_fine": "2024-11-09", "fior_inizio": "2024-04-01", "fior_fine": "2010-04-16", "raccolte": [ "2024-09-10", "2024-09-24" ] } ], "fascicolo_disp": true } ] } ``` -------------------------------- ### GET /qdc/unitaproduttive Source: https://qdc-api.imagelinenetwork.com/openapi.json Retrieves a list of production units for a specific company. ```APIDOC ## GET /qdc/unitaproduttive ### Description Retrieves information about one or more production units of a specific company. ### Method GET ### Endpoint /qdc/unitaproduttive ### Parameters #### Query Parameters - **num_pag** (integer) - Optional - Page number (default: 1) - **dim_pag** (integer) - Optional - Page size (default: 50, max: 100) - **idsede** (integer) - Required - Company site ID - **id** (integer) - Optional - Unit ID - **datada** (string) - Optional - Start date filter - **dataa** (string) - Optional - End date filter - **anno** (integer) - Optional - Year filter - **dettagli** (boolean) - Optional - Include details (default: false) ### Response #### Success Response (200) - **UnitaProduttiveResponse** (object) - The list of production units. ``` -------------------------------- ### GET /qdc/aziende Source: https://qdc-api.imagelinenetwork.com/openapi.json Retrieves information about one or more companies associated with the current license. ```APIDOC ## GET /qdc/aziende ### Description Restituisce le informazioni su una o più aziende della licenza in uso. ### Method GET ### Endpoint /qdc/aziende ### Parameters #### Query Parameters - **num_pag** (integer) - Optional - Page number (default: 1) - **dim_pag** (integer) - Optional - Page size (default: 50, max: 100) - **id** (integer) - Optional - Company ID - **filtro** (string) - Optional - Filter string - **dettagli** (boolean) - Optional - Include details (default: false) - **asset_chiave_licenza** (string) - Optional - License key asset ### Response #### Success Response (200) - **Response** (object) - AziendeResponse object. ``` -------------------------------- ### GET /dizionari/mezzi_tecnici Source: https://qdc-api.imagelinenetwork.com/openapi.json Retrieves a list of technical resources and units of measurement. ```APIDOC ## GET /dizionari/mezzi_tecnici ### Description Retrieves a list of technical resources and units of measurement. ### Method GET ### Endpoint /dizionari/mezzi_tecnici ### Response #### Success Response (200) - **Response** (array) - List of MezziTecniciResponse objects. ``` -------------------------------- ### GET /dizionari/operazioni Source: https://qdc-api.imagelinenetwork.com/openapi.json Retrieves a list of available agricultural operations. ```APIDOC ## GET /dizionari/operazioni ### Description Retrieves a list of agricultural operations available in the dictionary. ### Method GET ### Endpoint /dizionari/operazioni ### Response #### Success Response (200) - **Array of OperazioniResponse** (array) - List of operations ``` -------------------------------- ### GET /qdc/macchine Source: https://qdc-api.imagelinenetwork.com/redoc Retrieves the details of one or more pieces of equipment belonging to a company. ```APIDOC ## GET /qdc/macchine ### Description Restituisce i dettagli di una o più attrezzature di un'azienda. ### Method GET ### Endpoint https://qdc-api.imagelinenetwork.com/qdc/macchine ### Parameters #### Query Parameters - **num_pag** (integer) - Optional - Num Pag (> 0, Default: 1) - **dim_pag** (integer) - Optional - Dim Pag (0-100, Default: 50) - **idsederequired** (integer) - Required - Idsede - **id** (integer) - Optional - Id (Default: 0) ### Response #### Success Response (200) - **pagination** (object) - Pagination metadata - **data** (array) - List of machinery objects #### Response Example { "pagination": { "total": 1, "per_page": 50, "total_pages": 1, "current_page": 1 }, "data": [ { "sede_id": 68784, "asset_chiave_licenza": "20dfh349r98121zxke", "macchina": "Dual 12 Gold", "macchina_tipo_id": 27, "macchina_tipo": "Trapiantatrici", "macchina_marca": "Checchi & Magli", "ultimo_controllo_data": "2024-01-01" } ] } ``` -------------------------------- ### GET /dizionari/condizioni_climatiche Source: https://qdc-api.imagelinenetwork.com/openapi.json Retrieves a list of climatic conditions. ```APIDOC ## GET /dizionari/condizioni_climatiche ### Description Retrieves a list of climatic conditions. ### Method GET ### Endpoint /dizionari/condizioni_climatiche ### Response #### Success Response (200) - **Response** (array) - List of CondizioniClimaticheResponse objects. ``` -------------------------------- ### GET /dizionari/colture/{tipo_coltura} Source: https://qdc-api.imagelinenetwork.com/redoc Retrieves a list of crops based on the specified type. ```APIDOC ## GET /dizionari/colture/{tipo_coltura} ### Description Retrieves a list of crops filtered by the specified type. ### Method GET ### Endpoint https://qdc-api.imagelinenetwork.com/dizionari/colture/{tipo_coltura} ### Parameters #### Path Parameters - **tipo_coltura** (string) - Required - Enum: "sovescio", "apistiche", "tutte" ### Response #### Success Response (200) - **piante** (array) - List of plants - **impiego_id** (integer) - ID of the crop usage - **impiego_desc** (string) - Description of the crop usage - **arborea** (boolean) - Indicates if it is an arboreal crop - **codifiche_agea** (array) - List of AGEA codifications ``` -------------------------------- ### GET /qdc/magazzini/settori Source: https://qdc-api.imagelinenetwork.com/redoc Retrieves warehouse stock levels for a company within a specific product category sector. ```APIDOC ## GET /qdc/magazzini/settori ### Description Restituisce le giacenze di magazzino di un'azienda di una specifica categoria di prodotti (mezzo tecnico) ad una data di riferimento. ### Method GET ### Endpoint https://qdc-api.imagelinenetwork.com/qdc/magazzini/settori ### Parameters #### Query Parameters - **idsede** (integer) - Required - Idsede - **idsettore** (integer) - Optional - Idsettore - **dettagli** (boolean) - Optional - Dettagli (Default: false) ### Response #### Success Response (200) - **sede_id** (integer) - ID della sede - **asset_chiave_licenza** (string) - Chiave licenza - **settori** (array) - Lista dei settori di magazzino #### Response Example { "sede_id": 68784, "asset_chiave_licenza": "20dfh349r98121zxke", "settori": [ { "settore_id": 1204, "settore_desc": "Magazzino principale", "mezzi_tecnici": [ { "mezzo_id": 1, "mezzo_desc": "Agrofarmaci" } ], "default": true, "tipologia": "Magazzino orizzontale", "biologico": true, "derrate": true, "dimensione_mc": 3.5, "dimensione_mq": 2.5, "capacita_t": 1, "indirizzo": "Via Gallo Marcucci 24, Faenza (RA)", "catasto": [ { "comune": "Faenza (RA)", "foglio": 10, "particella": 99, "subalterno": "05", "sezione": "A" } ] } ] } ``` -------------------------------- ### GET /ricerca/fertilizzanti Source: https://qdc-api.imagelinenetwork.com/openapi.json Searches for fertilizers based on various filtering criteria. ```APIDOC ## GET /ricerca/fertilizzanti ### Description Searches for fertilizers using pagination and optional filters. ### Method GET ### Endpoint /ricerca/fertilizzanti ### Parameters #### Query Parameters - **num_pag** (integer) - Optional - Page number (default: 1) - **dim_pag** (integer) - Optional - Page size (default: 50, max: 100) - **idprodotti** (string) - Optional - Product IDs - **filtro** (string) - Optional - Search filter - **ufficiali** (boolean) - Optional - Filter for official products (default: true) - **reflui** (boolean) - Optional - Filter for waste products (default: false) - **asset_chiave_licenza** (string) - Optional - License key asset - **idsede** (integer) - Optional - Site ID ### Response #### Success Response (200) - **FertilizzantiResponse** (object) - Successful response containing fertilizer data. ``` -------------------------------- ### GET /license Source: https://qdc-api.imagelinenetwork.com/redoc Retrieves information about the user's license, including asset details, usage limits, and manager information. ```APIDOC ## GET /license ### Description Retrieves information about the user's license, including asset details, usage limits, and manager information. Requires OAuth2PasswordBearer authorization. ### Method GET ### Endpoint https://qdc-api.imagelinenetwork.com/license ### Response #### Success Response (200) - **Array of objects** - List of license details including asset_id, asset_chiave_licenza, asset_scadenza, and manager details. #### Response Example [ { "gestore_id_membro": 5042, "asset_id": 1048, "asset_liv_accesso": 30, "asset_api_scope": 4048, "asset_chiave_licenza": "20dfh349r98121zxke", "asset_scadenza": "2024-12-31", "asset_stato": "Abilitato", "asset_licenza": "QdC® - Quaderno di Campagna® BIO", "asset_n_aziende_inserite": 50, "asset_n_operatori_inseriti": 45, "asset_n_consulenti_inseriti": 10, "asset_n_aziende": 100, "asset_n_consulenti": 20, "asset_n_operatori": 200, "gestore_nome": "Gregorio", "gestore_cognome": "Rossi", "gestore_sede": "Sede italiana", "gestore_organizzazione": "Agro International", "gestore_piva": "01183320012", "gestore_cf": "GRGRSS70E01D458A", "env": "production" } ] ``` -------------------------------- ### Response Sample for Ricerca Ausiliari Source: https://qdc-api.imagelinenetwork.com/redoc Example JSON response structure for the /ricerca/ausiliari endpoint. ```json { "pagination": { "total": 1, "per_page": 50, "total_pages": 1, "current_page": 1 }, "data": [ { "id": 73050, "nome": "Pomodoro occhio di bue" } ] } ``` -------------------------------- ### GET /qdc/magazzini/settori Source: https://qdc-api.imagelinenetwork.com/openapi.json Retrieves warehouse stock information for a company within a specific product category at a reference date. ```APIDOC ## GET /qdc/magazzini/settori ### Description Restituisce le giacenze di magazzino di un'azienda di una specifica categoria di prodotti (mezzo tecnico) ad una data di riferimento. ### Method GET ### Endpoint /qdc/magazzini/settori ### Parameters #### Query Parameters - **idsede** (integer) - Required - The ID of the warehouse location. - **idsettore** (integer) - Optional - The ID of the sector. - **dettagli** (boolean) - Optional - Whether to include details (default: false). ### Response #### Success Response (200) - **SettoriResponse** (object) - Successful Response ``` -------------------------------- ### GET /oauth2/auth Source: https://qdc-api.imagelinenetwork.com/redoc Genera un form di autenticazione HTML che effettua una POST su /oauth2/auth. I parametri vengono passati tramite query string. ```APIDOC ## GET /oauth2/auth ### Description Genera un form di autenticazione HTML. È possibile gestire manualmente questo step effettuando una POST invece di una GET. ### Method GET ### Endpoint /oauth2/auth ### Parameters #### Query Parameters - **redirect_uri** (string) - Required - URL alla quale si viene reindirizzati dopo l'autenticazione - **state** (string) - Optional - Eventuale stato, qualora fosse richiesto - **scopes** (string) - Optional - Gli scopes a cui si vuole accedere - **client_id** (string) - Optional - Identifica il client per un ulteriore livello di controllo - **chiave_licenza** (string) - Optional - Restringe l'accesso ad una sola licenza dell'utente ### Response #### Success Response (200) - Successful Response ``` -------------------------------- ### GET /ricerca/piantine Source: https://qdc-api.imagelinenetwork.com/redoc Retrieves a paginated list of plants based on optional filters. ```APIDOC ## GET /ricerca/piantine ### Description Retrieves a list of plants with support for pagination and filtering. ### Method GET ### Endpoint https://qdc-api.imagelinenetwork.com/ricerca/piantine ### Parameters #### Query Parameters - **num_pag** (integer) - Optional - Page number, must be > 0. Default: 1 - **dim_pag** (integer) - Optional - Items per page, range [0..100]. Default: 50 - **filtro** (string) - Optional - Filter string. Default: "" - **idprodotti** (string) - Optional - Product IDs. Default: "" - **idpianta** (integer) - Optional - Plant ID. ### Response #### Success Response (200) - **pagination** (object) - Pagination metadata - **data** (array) - List of plant objects #### Response Example { "pagination": { "total": 1, "per_page": 50, "total_pages": 1, "current_page": 1 }, "data": [ { "id": 73050, "nome": "Pomodoro occhio di bue", "tipo": "Sementi o piantine", "ufficiale": false, "biologico": false, "pianta_desc": "Pomodoro" } ] } ``` -------------------------------- ### GET /qdc/interventi Source: https://qdc-api.imagelinenetwork.com/openapi.json Retrieves information on operations recorded in a company. ```APIDOC ## GET /qdc/interventi ### Description Returns information on one or more operations recorded in a specific company. For a complete list of available operations, see /dizionari/operazioni. ### Method GET ### Endpoint /qdc/interventi ### Parameters #### Query Parameters - **num_pag** (integer) - Optional - Page number - **dim_pag** (integer) - Optional - Page size ``` -------------------------------- ### GET /ricerca/sementi Source: https://qdc-api.imagelinenetwork.com/redoc Retrieves a paginated list of seeds based on optional filters. ```APIDOC ## GET /ricerca/sementi ### Description Retrieves a list of seeds with support for pagination and filtering. ### Method GET ### Endpoint https://qdc-api.imagelinenetwork.com/ricerca/sementi ### Parameters #### Query Parameters - **num_pag** (integer) - Optional - Page number, must be > 0. Default: 1 - **dim_pag** (integer) - Optional - Items per page, range [0..100]. Default: 50 - **filtro** (string) - Optional - Filter string. Default: "" - **idprodotti** (string) - Optional - Product IDs. Default: "" ### Response #### Success Response (200) - **pagination** (object) - Pagination metadata - **data** (array) - List of seed objects #### Response Example { "pagination": { "total": 1, "per_page": 50, "total_pages": 1, "current_page": 1 }, "data": [ { "id": 73050, "nome": "Pomodoro occhio di bue", "tipo": "Sementi o piantine", "ufficiale": false, "biologico": false, "pianta_desc": "Pomodoro" } ] } ``` -------------------------------- ### GET /qdc/magazzini/giacenze Source: https://qdc-api.imagelinenetwork.com/openapi.json Retrieves warehouse stock levels for a company and specific product category at a reference date. ```APIDOC ## GET /qdc/magazzini/giacenze ### Description Restituisce le giacenze di magazzino di un'azienda di una specifica categoria di prodotti (mezzo tecnico) ad una data di riferimento. ### Method GET ### Endpoint /qdc/magazzini/giacenze ### Parameters #### Query Parameters - **idsede** (integer) - Required - The ID of the warehouse location. - **idmezzo** (MezziTecnici) - Required - The ID of the technical product category. - **datagiacenza** (string) - Required - The reference date for the stock level. - **idsettore** (integer) - Optional - The ID of the sector. - **dettagli** (boolean) - Optional - Whether to include details (default: false). ### Response #### Success Response (200) - **GiacenzeResponse** (object) - Successful Response ``` -------------------------------- ### GET /dizionari/colture/{tipo_coltura} Source: https://qdc-api.imagelinenetwork.com/openapi.json Retrieves a list of crops based on the specified type. Requires OAuth2 authentication. ```APIDOC ## GET /dizionari/colture/{tipo_coltura} ### Description Retrieves a list of crops filtered by the provided type. This endpoint requires the 'r_dizionari' scope. ### Method GET ### Endpoint /dizionari/colture/{tipo_coltura} ### Parameters #### Path Parameters - **tipo_coltura** (string) - Required - The type of crop list to retrieve ### Response #### Success Response (200) - **Array of PiantaImpiego** (array) - List of crops ``` -------------------------------- ### GET /ricerca/sostanze_di_base Source: https://qdc-api.imagelinenetwork.com/openapi.json Searches for base substances. Requires OAuth2 authentication. ```APIDOC ## GET /ricerca/sostanze_di_base ### Description Performs a search for base substances. This endpoint requires the 'r_ricerca' scope. ### Method GET ### Endpoint /ricerca/sostanze_di_base ### Parameters #### Query Parameters - **num_pag** (integer) - Optional - Page number (default: 1) - **dim_pag** (integer) - Optional - Number of items per page (default: 50, max: 100) - **filtro** (string) - Optional - Filter string - **idprodotti** (string) - Optional - Product IDs ### Response #### Success Response (200) - **AltriProdottiResponse** (object) - Successful search results ``` -------------------------------- ### GET /qdc/operatori Source: https://qdc-api.imagelinenetwork.com/redoc Retrieves information about operators and contractors working for a specific company. ```APIDOC ## GET /qdc/operatori ### Description Restituisce le informazioni sugli operatori e i contoterzisti che lavorano per una data azienda. ### Method GET ### Endpoint https://qdc-api.imagelinenetwork.com/qdc/operatori ### Parameters #### Query Parameters - **num_pag** (integer) - Optional - Num Pag (> 0, Default: 1) - **dim_pag** (integer) - Optional - Dim Pag (0-100, Default: 50) - **idsederequired** (integer) - Required - Idsede - **id** (integer) - Optional - Id - **esterno** (boolean) - Optional - Esterno (Default: false) ### Response #### Success Response (200) - **pagination** (object) - Pagination metadata - **data** (array) - List of operator objects #### Response Example { "pagination": { "total": 1, "per_page": 50, "total_pages": 1, "current_page": 1 }, "data": [ { "sede_id": 68784, "asset_chiave_licenza": "20dfh349r98121zxke", "operatore_nome": "Gregorio", "operatore_cognome": "Rossi", "operatore_cf": "GRGRSS70E01D458A", "azienda_piva": "01183320012", "azienda_ragsoc": "Azienda Contoterzisti associati", "certificati": [ { "numero": "1512100", "data_rilascio": "20/12/2022", "data_scadenza": "19/12/2027" } ] } ] } ``` -------------------------------- ### GET /ricerca/piantine Source: https://qdc-api.imagelinenetwork.com/openapi.json Searches for seedlings based on various filtering criteria. ```APIDOC ## GET /ricerca/piantine ### Description Searches for seedlings using pagination and optional filters. ### Method GET ### Endpoint /ricerca/piantine ### Parameters #### Query Parameters - **num_pag** (integer) - Optional - Page number (default: 1) - **dim_pag** (integer) - Optional - Page size (default: 50, max: 100) - **filtro** (string) - Optional - Search filter - **idprodotti** (string) - Optional - Product IDs - **idpianta** (integer) - Optional - Plant ID ### Response #### Success Response (200) - **SementiPiantineResponse** (object) - Successful response containing seedling data. ``` -------------------------------- ### GET /ricerca/corroboranti Source: https://qdc-api.imagelinenetwork.com/redoc Searches for corroborant products based on provided filters and pagination parameters. ```APIDOC ## GET /ricerca/corroboranti ### Description Retrieves a paginated list of corroborant products. Supports filtering by name or product IDs. ### Method GET ### Endpoint https://qdc-api.imagelinenetwork.com/ricerca/corroboranti ### Parameters #### Query Parameters - **num_pag** (integer) - Optional - Page number, must be > 0. Default: 1 - **dim_pag** (integer) - Optional - Items per page, range [0..100]. Default: 50 - **filtro** (string) - Optional - Search filter string. Default: "" - **idprodotti** (string) - Optional - Comma-separated product IDs. Default: "" ### Response #### Success Response (200) - **pagination** (object) - Pagination metadata - **data** (array) - List of products #### Response Example { "pagination": { "total": 1, "per_page": 50, "total_pages": 1, "current_page": 1 }, "data": [ { "id": 73050, "nome": "Pomodoro occhio di bue" } ] } ``` -------------------------------- ### Retrieve Unita Produttiva Fascicolo JSON Response Source: https://qdc-api.imagelinenetwork.com/redoc Example of the JSON response structure for the Unita Produttiva Fascicolo endpoint. ```json { "sede_id": 68784, "fascicolo_id": 1420, "up_id": 163698, "data_acquisizione": "2025-02-18", "tipo_desc": "Piano colturale grafico: PCG GeoJSON (.geojson)", "tipo_id": 22, "json_data": "string" } ``` -------------------------------- ### GET /ricerca/ausiliari Source: https://qdc-api.imagelinenetwork.com/redoc Searches for auxiliary products based on provided filters and pagination parameters. ```APIDOC ## GET /ricerca/ausiliari ### Description Retrieves a paginated list of auxiliary products. Supports filtering by name or product IDs. ### Method GET ### Endpoint https://qdc-api.imagelinenetwork.com/ricerca/ausiliari ### Parameters #### Query Parameters - **num_pag** (integer) - Optional - Page number, must be > 0. Default: 1 - **dim_pag** (integer) - Optional - Items per page, range [0..100]. Default: 50 - **filtro** (string) - Optional - Search filter string. Default: "" - **idprodotti** (string) - Optional - Comma-separated product IDs. Default: "" ### Response #### Success Response (200) - **pagination** (object) - Pagination metadata - **data** (array) - List of products #### Response Example { "pagination": { "total": 1, "per_page": 50, "total_pages": 1, "current_page": 1 }, "data": [ { "id": 73050, "nome": "Pomodoro occhio di bue" } ] } ``` -------------------------------- ### Giacenze Response JSON Structure Source: https://qdc-api.imagelinenetwork.com/redoc Example of a successful 200 response body containing warehouse stock details and product information. ```json { "sede_id": 68784, "asset_chiave_licenza": "20dfh349r98121zxke", "giacenze": [ { "settore_id": 1204, "settore_desc": "Magazzino principale", "mezzi_tecnici": [ { "mezzo_id": 1, "mezzo_desc": "Agrofarmaci" } ], "default": true, "tipologia": "Magazzino orizzontale", "biologico": true, "derrate": true, "dimensione_mc": 3.5, "dimensione_mq": 2.5, "capacita_t": 1, "indirizzo": "Via Gallo Marcucci 24, Faenza (RA)", "catasto": [ { "comune": "Faenza (RA)", "foglio": 10, "particella": 99, "subalterno": "05", "sezione": "A" } ], "prodotti": [ { "prod_id": 9012, "prod_desc": "CUPROCAFFARO MICRO", "prod_nreg": 9012, "mezzo_id": 1, "mezzo_desc": "Agrofarmaci", "prod_qta": 12.48, "prod_qta_ha": 2.5555, "prod_udm": "kg", "prod_refluo": true } ] } ] } ``` -------------------------------- ### GET /unitaproduttiva_fascicolo Source: https://qdc-api.imagelinenetwork.com/openapi.json Retrieves the original fascicle data for a production unit if it was created by importing a company fascicle. ```APIDOC ## GET /unitaproduttiva_fascicolo ### Description Retrieves the original fascicle data associated with a production unit. This endpoint is relevant when the production unit was created by acquiring a company fascicle. ### Method GET ### Endpoint /unitaproduttiva_fascicolo ### Response #### Success Response (200) - **sede_id** (integer) - ID (Image Line) dell'azienda titolare dei dati - **fascicolo_id** (integer) - ID (Image Line) del fascicolo acquisito - **up_id** (integer) - ID (Image Line) dell'unità produttiva - **data_acquisizione** (string) - Data in cui il fascicolo è stato acquisito in QuadernoDiCampagna - **tipo_desc** (string) - Descrizione del tipo di fascicolo - **tipo_id** (integer) - ID (Image Line) del tipo di fascicolo - **json_data** (string) - Dati estratti dal fascicolo originale (variano a seconda del tipo di fascicolo) #### Response Example { "sede_id": 68784, "fascicolo_id": 1420, "up_id": 163698, "data_acquisizione": "2025-02-18", "tipo_desc": "Piano colturale grafico: PCG GeoJSON (.geojson)", "tipo_id": 22, "json_data": "{...}" } ``` -------------------------------- ### GET /ricerca/trappole Source: https://qdc-api.imagelinenetwork.com/redoc Retrieves a paginated list of traps based on optional filters. ```APIDOC ## GET /ricerca/trappole ### Description Retrieves a list of traps. Supports pagination and filtering by product IDs or text strings. ### Method GET ### Endpoint https://qdc-api.imagelinenetwork.com/ricerca/trappole ### Parameters #### Query Parameters - **num_pag** (integer) - Optional - Page number (must be > 0, default: 1) - **dim_pag** (integer) - Optional - Items per page (0-100, default: 50) - **filtro** (string) - Optional - Filter string (default: "") - **idprodotti** (string) - Optional - Product IDs (default: "") ### Response #### Success Response (200) - **pagination** (object) - Pagination metadata - **data** (array) - List of trap objects #### Response Example { "pagination": { "total": 1, "per_page": 50, "total_pages": 1, "current_page": 1 }, "data": [ { "id": 73050, "nome": "Pomodoro occhio di bue" } ] } ``` -------------------------------- ### Retrieve Interventi JSON Response Source: https://qdc-api.imagelinenetwork.com/redoc Example of the paginated JSON response structure for the Interventi endpoint. ```json { "pagination": { "total": 1, "per_page": 50, "total_pages": 1, "current_page": 1 }, "data": [ { "sede_id": 68784, "asset_chiave_licenza": "20dfh349r98121zxke", "id": 4752371, "data": "2024-04-11", "supha_tot": 8, "operazione_id": 1, "operazione_desc": "Trattamenti fitosanitari", "nota": "", "up": [ { "up_id": 163698, "up_supha": 4.067, "up_perc": 80.5 } ], "prod": [ { "prod_id": 9012, "prod_desc": "CUPROCAFFARO MICRO", "prod_nreg": 9012, "mezzo_id": 1, "mezzo_desc": "Agrofarmaci", "prod_qta": 12.48, "prod_qta_ha": 2.5555, "prod_udm": "kg", "prod_refluo": true, "problemi": [ { "categoria": "", "spettro_id": 4048, "spettro_desc": "Cimice austriaca", "problema_id": 3940, "problema_desc": "Eurygaster austriaca", "problema_eppo": "POAAN" } ], "efficienza_n": 0, "pianta": { "pianta_id": 151, "pianta_desc": "Albicocco", "pianta_eppo": "PRNAR" } } ], "macchine": [ { "macchina_id": 5108, "ultimo_controllo_cod": null, "distribuzione": true, "antideriva": true } ], "operatori": [ { "operatore_id": 1183, "esterno": true } ], "info": [ { "chiave": "data_fine", "valore": "60" } ] } ] } ``` -------------------------------- ### GET /oauth2/auth Source: https://qdc-api.imagelinenetwork.com/openapi.json Generates an HTML authentication form for the OAuth2 flow. Parameters are passed via the query string. ```APIDOC ## GET /oauth2/auth ### Description Generates an HTML authentication form that performs a POST request to the same endpoint. This is the first step in the manual authentication process. ### Method GET ### Endpoint /oauth2/auth ### Parameters #### Query Parameters - **redirect_uri** (string) - Required - URL to redirect to after authentication. - **state** (string) - Optional - Optional state parameter. - **scopes** (string) - Optional - Scopes to request access to. If omitted, defaults are assigned based on the license. - **client_id** (string) - Optional - Client identifier for additional control. - **chiave_licenza** (string) - Optional - Restricts access to a specific user license. ### Response #### Success Response (200) - **text/html** - Returns an HTML authentication form. ``` -------------------------------- ### GET /health Source: https://qdc-api.imagelinenetwork.com/openapi.json Public endpoint used by load balancers to verify the application's health status. ```APIDOC ## GET /health ### Description Endpoint pubblico usato dai sistemi di bilanciamento per verificare lo stato dell'applicazione. ### Method GET ### Endpoint /health ### Response #### Success Response (200) - **Applicazione raggiungibile** (object) ``` -------------------------------- ### Retrieve Climate Conditions Dictionary Source: https://qdc-api.imagelinenetwork.com/redoc Returns a list of available climate conditions. ```json [ { "clima_id": 1, "clima_desc": "Ottimali / Sole" } ] ``` -------------------------------- ### Esempio di risposta JSON per i settori di magazzino Source: https://qdc-api.imagelinenetwork.com/redoc Struttura della risposta 200 OK che include i dettagli della sede, i settori associati e le informazioni sui mezzi tecnici. ```json { "sede_id": 68784, "asset_chiave_licenza": "20dfh349r98121zxke", "settori": [ { "settore_id": 1204, "settore_desc": "Magazzino principale", "mezzi_tecnici": [ { "mezzo_id": 1, "mezzo_desc": "Agrofarmaci" } ], "default": true, "tipologia": "Magazzino orizzontale", "biologico": true, "derrate": true, "dimensione_mc": 3.5, "dimensione_mq": 2.5, "capacita_t": 1, "indirizzo": "Via Gallo Marcucci 24, Faenza (RA)", "catasto": [ { "comune": "Faenza (RA)", "foglio": 10, "particella": 99, "subalterno": "05", "sezione": "A" } ] } ] } ``` -------------------------------- ### Access Token Response Schema Source: https://qdc-api.imagelinenetwork.com/redoc The JSON structure returned upon a successful 200 OK response from the token endpoint. ```json { "access_token": "string", "token_type": "string", "expires_in": 0, "scope": "string", "refresh_token": "string" } ```