gestione gare pubbliche
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

440 righe
11 KiB

<?php
if(! empty($this) && (is_a($this, "NuovaPiattaformaAppalti") || is_a($this, "FVOE") || is_a($this, "FVOEDocument"))) {
global $config;
switch($config["pdnd"]["jwt"]["eas"] ?? null) {
case "https://auth.interop.pagopa.it/token.oauth2":
$domain = "https://apigw.anticorruzione.it";
break;
case "https://auth.att.interop.pagopa.it/token.oauth2":
$domain = "https://apigw-attestazione.anticorruzione.it";
break;
case "https://auth.uat.interop.pagopa.it/token.oauth2":
$domain = "https://apigw-test.anticorruzione.it";
break;
default:
throw new Exception("Undefined endpoint");
break;
}
return [
"ausaController" => [
"endpoint" => "{$domain}/modi/rest/AUSA/v1",
"purpose" => "ausa-ottieni-centri-di-costo",
"permission" => DelegheRoles::NO_AUTH,
"methods" => [
"getBy" => [
"path" => "api/ausa/getBy",
"type" => "GET",
"log" => false,
]
],
],
"gestioneUtenti" => [
"endpoint" => "{$domain}/modi/rest/GestioneUtenti/v2",
"purpose" => "pcp-utenti",
"methods" => [
"presa-carico" => [
"path" => "presa-carico",
"type" => "POST",
"permission" => DelegheRoles::NO_AUTH,
],
"aggiungi-soggetto" => [
"path" => "aggiungi-soggetto",
"type" => "POST",
"permission" => [DelegheRoles::RP],
],
"elimina-soggetto" => [
"path" => "elimina-soggetto",
"type" => "POST",
"permission" => [DelegheRoles::RP],
],
"ricerca-soggetti" => [
"path" => "ricerca-soggetti",
"type" => "GET",
"permission" => DelegheRoles::ANY,
"log_auth_failures" => false,
],
],
],
"pianificazioneAppalto" => [
"type" => "pianificazione",
"endpoint" => "{$domain}/modi/rest/PianificazioneAppalto/v2",
"purpose" => "pcp-pianifica-appalto",
"permission" => [DelegheRoles::RP],
"methods" => [
"create" => [
"path" => "crea-piano",
"type" => "POST",
],
"read" => [
"path" => "consulta-piano",
"type" => "GET",
],
"update" => [
"path" => "modifica-piano",
"type" => "POST"
],
"delete" => [
"path" => "cancella-piano",
"type" => "POST"
],
"search" => [
"path" => "ricerca-piano",
"type" => "GET"
],
"verify" => [
"path" => "verifica-piano",
"type" => "POST"
],
"confirm" => [
"path" => "conferma-piano",
"type" => "POST"
]
],
"schede" => [
"PL1_1",
"PL1_2",
"PL1_3",
"PL1_4",
"PL1_5",
"PL1_6",
"PL1_7",
"PL1_8",
"PL1_9",
"PL2_1",
"PL2_2",
"PL2_3",
"PL2_7",
"PL2_8",
"PL2_9",
"P1_15_1",
"P7_3"
]
],
"comunicaAppalto" => [
"type" => "appalto",
"endpoint" => "{$domain}/modi/rest/ComunicaAppalto/v2",
"purpose" => "pcp-comunica-appalto",
"permission" => [DelegheRoles::RP, DelegheRoles::DRP1],
"methods" => [
"create" => [
"path" => "crea-appalto",
"type" => "POST",
"permission" => [DelegheRoles::RP],
],
"read" => [
"path" => "consulta-appalto",
"type" => "GET",
],
"update" => [
"path" => "modifica-appalto",
"type" => "POST"
],
"delete" => [
"path" => "cancella-appalto",
"type" => "POST"
],
"search" => [
"path" => "ricerca-appalto",
"type" => "GET"
],
"verify" => [
"path" => "verifica-appalto",
"type" => "POST"
],
"confirm" => [
"path" => "conferma-appalto",
"type" => "POST"
],
"cig" => [
"path" => "recupera-cig",
"type" => "GET"
]
],
"schede" => [
"P1_10",
"P1_11",
"P1_12",
"P1_13",
"P1_14",
"P1_15_2",
"P1_16",
"P1_17",
"P1_18",
"P1_19",
"P1_20",
"P1_21",
"P1_23",
"P1_24",
"P2_10",
"P2_11",
"P2_12",
"P2_13",
"P2_14",
"P2_16",
"P2_17",
"P2_18",
"P2_19",
"P2_20",
"P2_21",
"P2_23",
"P2_24",
"P3_1",
"P3_2",
"P3_3",
"P3_4",
"P3_5",
"P4_1",
"P4_2",
"P4_3",
"P4_4",
"P4_5",
"P4_6",
"P5",
"P6_1",
"P6_2",
"P7_1_1",
"P7_1_2",
"P7_1_3",
"P7_2",
"AD1_25",
"AD1_26",
"AD1_27",
"AD1_28",
"AD2_25",
"AD2_26",
"AD2_27",
"AD2_28",
"AD3",
"AD4",
"AD5",
"A3_6"
]
],
"serviziComuni" => [
"endpoint" => "{$domain}/modi/rest/ServiziComuni/v2",
"purpose" => "pcp-servizi-comuni",
"methods" => [
"result" => [
"path" => "esito-operazione",
"type" => "GET"
],
"status" => [
"path" => "stato-appalto",
"type" => "GET"
],
"serviceStatus" => [
"path" => "status",
"type" => "GET",
"log" => false,
"log_auth_failures" => false,
]
]
],
"pubblicazioneAvvisi" => [
"endpoint" => "{$domain}/modi/rest/PubblicaAvviso/v2",
"purpose" => "pcp-pubblica-avviso",
"permission" => [DelegheRoles::RP, DelegheRoles::DRP1],
"methods" => [
"publish" => [
"path" => "pubblica-avviso",
"type" => "POST"
],
"update" => [
"path" => "modifica-avviso",
"type" => "POST"
],
"amend" => [
"path" => "rettifica-avviso",
"type" => "POST"
],
"delete" => [
"path" => "cancella-avviso",
"type" => "POST"
],
"read" => [
"path" => "consulta-avviso",
"type" => "GET",
],
"search" => [
"path" => "ricerca-avviso",
"type" => "GET",
"log" => false,
],
"pdf" => [
"path" => "consulta-rendering-avviso",
"type" => "GET"
] ,
"verify" => [
"path" => "stato-avviso",
"type" => "GET"
]
]
],
"comunicaPostPubblicazione" => [
"type" => "postpubblicazione",
"endpoint" => "{$domain}/modi/rest/ComunicaPostPubblicazione/v2",
"purpose" => "pcp-post-pubblicazione",
"permission" => [DelegheRoles::RP, DelegheRoles::DRP2, DelegheRoles::DRP3],
"methods" => [
"create" => [
"path" => "crea-scheda",
"type" => "POST"
],
"read" => [
"path" => "consulta-scheda",
"type" => "GET",
],
"update" => [
"path" => "modifica-scheda",
"type" => "POST"
],
"delete" => [
"path" => "cancella-scheda",
"type" => "POST"
],
"search" => [
"path" => "ricerca-scheda",
"type" => "GET"
],
"verify" => [
"path" => "verifica-scheda",
"type" => "POST"
],
"confirm" => [
"path" => "conferma-scheda",
"type" => "POST"
]
],
"schede" => [
"S1",
"S2",
"S3",
"S4",
"A1_29",
"A1_30",
"A1_31",
"A1_32",
"A1_33",
"A1_34",
"A1_35",
"A1_36",
"A1_37",
"A2_29",
"A2_30",
"A2_31",
"A2_32",
"A2_33",
"A2_34",
"A2_35",
"A2_36",
"A2_37",
"A3_1",
"A3_2",
"A3_3",
"A3_4",
"A3_5",
"A4_1",
"A4_2",
"A4_3",
"A4_4",
"A4_5",
"A4_6",
"A7_1_1",
"A7_1_2",
"NAG",
"ANN",
"CM1",
"CM2",
"SC1",
"I1",
"M1",
"M1_40",
"M2",
"M2_40",
"SA1",
"RSU1",
"ES1",
"CS1",
"SO1",
"SQ1",
"RI1",
"AC1",
"IR1",
"CO1",
"CO2",
"CL1"
]
],
"fvoe" => [
"type" => "fvoe",
"endpoint" => "{$domain}/modi/rest/FVC/v2",
"purpose" => "pcp-fvoe",
"permission" => [DelegheRoles::RP, DelegheRoles::DRP2, DelegheRoles::DRP3],
"methods" => [
"submit-access-request" => [
"path" => "richiesta-accesso-fvoe",
"type" => "POST"
],
"check-access-request" => [
"path" => "verifica-richiesta-accesso-fvoe",
"type" => "GET"
],
"grant-access-request" => [
"path" => "autorizza-accesso-fvoe",
"type" => "POST"
],
"search-documents" => [
"path" => "ricerca-documenti-fvoe",
"type" => "GET"
],
"get-document" => [
"log" => false,
"path" => "recupera-documento-fvoe",
"type" => "GET"
],
"get-all-document-versions" => [
"path" => "recupera-storico-documento-fvoe",
"type" => "GET"
],
"request-document" => [
"path" => "richiedi-documento",
"type" => "GET"
],
"check-request-document" => [
"path" => "verifica-stato-richiesta-documento",
"type" => "GET"
],
"get-oe-data" => [
"path" => "recupero-anagrafica-oe",
"type" => "GET"
],
"documents-request" => [
"path" => "richiedi-documenti",
"type" => "POST"
],
"check-document-request" => [
"path" => "verifica-stato-richiesta-documento",
"type" => "GET"
],
]
]
];
}
return [];