Files
api-collections/collections/IDEM WebServices/Contratti/Contratto Esteso (IRIS GW).yml
T

172 lines
7.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
info:
name: Contratto Esteso (IRIS GW)
type: http
seq: 4
http:
method: GET
url: "{{IdemApiUrl}}/contratto_fs_esteso_ap.php?cod_con=DONO_G_25_ACC_ACC_ZOETIS_01"
params:
- name: cod_con
value: CHIA_L_26_ACC_ACC_PROROGASTUDIOBALLERINI_01
type: query
disabled: true
- name: cod_con
value: BUTT_F_26_SPONSOR_CHIESI_02
type: query
disabled: true
- name: cod_con
value: GIUL_F_25_CRCT_RA_MOVYON_01
type: query
disabled: true
- name: cod_con
value: VIGN_G_26_SERV_CON_DULEVO_01
type: query
disabled: true
- name: cod_con
value: VILL_P_26_SPONSOR_CREDIT_01
type: query
disabled: true
- name: cod_con
value: STOR_F_26_CONV_QUA_AMICIPILOTTA_01
type: query
disabled: true
- name: cod_con
value: DONO_G_25_ACC_ACC_ZOETIS_01
type: query
- name: cod_con
value: VERO_L_26_CRCT_RA_AOUPR_01
type: query
disabled: true
- name: cod_con
value: POGL_F_25_SERV_CON_02
type: query
disabled: true
auth: inherit
runtime:
scripts:
- type: after-response
code: |-
var jsonData = res.getBody();
var titolo = jsonData.Titolo;
var idContratto = jsonData.Identificativo;
var responsabileProponente = jsonData.responsabile_proponente.cognome + " " + jsonData.responsabile_proponente.nome;
var contraente = jsonData.contraenti_array[0]?.ragione_sociale;
var responsabiliProponenti = "";
for (var i = 0; i < jsonData.Responsabili_array.length; i++)
{
responsabiliProponenti += jsonData.Responsabili_array[i].cognome + " " + jsonData.Responsabili_array[i].nome + ", ";
}
responsabiliProponenti = responsabiliProponenti.slice(0, -2);
var contraenti = "";
for (var i = 0; i < jsonData.contraenti_array.length; i++)
{
contraenti += jsonData.contraenti_array[i].ragione_sociale + ", ";
}
contraenti = contraenti.slice(0, -2);
var titoloFascicolo =
idContratto + " - " +
contraenti + " - " +
responsabiliProponenti + " - " +
titolo;
var oggettoDocumento =
"Proposta di contratto / convenzione - " +
idContratto + " - " +
contraenti + " - " +
responsabiliProponenti + " - " +
titolo;
console.log(titoloFascicolo);
console.log(oggettoDocumento);
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
examples:
- name: Contratto (IRIS GW) - Success
request:
url: "{{IdemApiUrl}}/contratto_fastsearch_ap.php?cod_con=BOLP_R_25_ACC_ACC_RER_01"
method: GET
params:
- name: cod_con
value: BOLP_R_25_ACC_ACC_RER_01
type: query
description: Codice contratto esistente su IRIS
response:
statusText: "200"
headers:
- name: Date
value: Tue, 22 Apr 2025 12:07:10 GMT
- name: Server
value: Apache/2.2.15 (CentOS)
- name: X-Powered-By
value: PHP/5.3.3
- name: Content-Length
value: "2012"
- name: Connection
value: close
- name: Content-Type
value: application/json
body:
type: json
data: |-
{
"Identificativo": "BOLP_R_25_ACC_ACC_RER_01",
"Tipologia parent": "Altri contratti",
"Tipologia": "Accordi accessori",
"Titolo": "Atto di nomina a RESPONSABILE del trattamento ai sensi dellart. 28 Reg. 2016/679/EU ADDENDUM alle relazioni contrattuali in essere per lAccordo di Collaborazione (art. 15 legge n. 241/1990 e art. 5, c. 6, Dlgs n. 50/2016 e art. 7, c. 4 DLgs n. 36/2023) sul tema “Zero Invasive Alien Species Plants Strategy ovvero Zero specie aliene invasive in Emilia-Romagna Strategia per le specie vegetali”, denominato ZEROIAS-Plants",
"Durata": 22,
"Corrispettivo o contributo totale NETTO (EURO)": 0,
"ID Struttura principale": "186471",
"Descrizione struttura principale": "Dipartimento di Scienze Chimiche, della Vita e della Sostenibilità Ambientale ",
"responsabile_proponente": {
"titolo_accademico": "Prof.",
"cognome": "BOLPAGNI",
"nome": "Rossano",
"email": "rossano.bolpagni@unipr.it",
"codice_fiscale": "BLPRSN76M03B157X",
"qualifica": "Ricercatore",
"struttura": "Dipartimento di Scienze Chimiche, della Vita e della Sostenibilità Ambientale ",
"codice_struttura": "106152",
"data_inizio": "16/01/2025",
"data_fine": "-"
},
"Numero responsabili": 1,
"Numero partecipanti": 0,
"Numero resp amministrativi": 1,
"Numero persone coinvolte": 2,
"Numero contraenti": 1,
"responsabili": "Prof. BOLPAGNI Rossano, CF: BLPRSN76M03B157X, Qualifica: Ricercatore, Struttura di afferenza: Dipartimento di Scienze Chimiche, della Vita e della Sostenibilità Ambientale , Data di inizio: 16/01/2025, Data di fine: -\n",
"partecipanti": "",
"resp amministrativi": "Dott.ssa CALAMARI Maria Teresa, CF: CLMMTR66C41G535M, Qualifica: PTA, Struttura di afferenza: U.O. Amministrazione Dipartimentale Dipartimento di Scienze Chimiche, della Vita e della Sostenibilità Ambientale, Data di inizio: -, Data di fine: -\n",
"Contraenti": "REGIONE EMILIA-ROMAGNA, SERVIZIO AREE PROTETTE, FORESTE E SVILUPPO DELLA MONTAGNA, CF/PIVA: 02086690373, Sede: VIALE DELLA FIERA, 8 40127 BOLOGNA (BO) ITALIA\n"
}
docs: |
## Esempi
| cod_con | Note |
| :------------------------------------------------ | :-------------------------------- |
| GOBB_G_25_CONV_QUA_01 | |
| CRIS_G_25_CCS_IST_RA_UNIVERSITÀPOLITECNICADELL_01 | |
| GIUL_F_25_SERV_CON_01 | |
| TESI_M_25_CCTM_IST_01 | |
| CASE_C_25_CCTM_IST_01 | |
| CASE_C_25_CONV_QUA_01 | |
| SALA_A_25_CCTM_IST_01 | |
| MAMB_C_25_ACC_ACC_PROROGACONTRATTOCATAGLOGAZIO_01 | |
| COVA_P_24_SERV_CON_01 | |
| GIUL_F_25_CRCT_RA_MOVYON_01 | 2 RS e 7 partecipanti |
| MATR_G_26_SERV_CON_CAADCOMUNEDIPARMA2026_01 | |
| CHIA_L_25_SERV_CON_BALLERINI_01 | |
| ESPO_S_26_ACC_ACC_EMENDAMENTO2VABORKIDS_01 | caratteri non-standard nel titolo |