Definizione API PDND Connector
Endpoint del pdnd-connector
pdnd-connectorIl pdnd-connector espone endpoint specifici per ciascun e-service integrato, con diverse operazioni supportate tramite verbi HTTP.
Endpoint di Chiamata
Gli endpoint seguono una struttura che identifica l'erogatore e il servizio specifico. Ad esempio, per gli e-service ANPR (ANPR è l'erogatore), si utilizzano path come /e-services/anpr/<nome-e-service>. Esempi di <nome-e-service> includono accertamento-cittadinanza, stato-famiglia, accertamento-residenza.
Verbi HTTP Utilizzati
GET: Utilizzato per la fruizione degli e-service, ovvero per richiedere e ottenere i dati dalpdnd-connector, che a sua volta li recupera dagli enti erogatori (es. ANPR, INPS).POST: Utilizzato per la validazione dei dati precedentemente ottenuti tramiteGET. Questa operazione verifica che i dati non siano stati alterati prima di essere inviati dal Core.Parametri Richiesti (Payload per
POST, URL perGET):Per
GET(Fruizione): I parametri sono inclusi nella URL (query parameters). Esempi includono:fiscalCode: Il codice fiscale dell'utente di cui si richiedono i dati.format: Un parametro che specifica il formato in cui i dati devono essere restituiti dalpdnd-connector. Questo formato deve essere compatibile con il Nested Form di OpenCity che riceverà i dati.Esempio URL:
GET /e-services/anpr/stato-famiglia?fiscalCode=ABCDEF01G23H456I&format=statoFamigliaArchetipo
Per
POST(Validazione): Il payload della richiestaPOSTdeve contenere due campi principali:data: L'oggetto JSON contenente i dati esatti (incluso il loro formato) così come ricevuti dalla rispostaGETprecedente, senza i metadati diisFromPdnd,isReadonly,isUpdatedToday.meta: Un oggetto contenente la firma digitale (signature) dei dati, così come restituita dalla rispostaGET.
Header Necessari: Per tutte le chiamate agli endpoint del
pdnd-connector, è necessario includere un token JWT nell'headerAuthorization.Authorization: Bearer <JWT_TOKEN>. Ilpdnd-connectoreffettua una validazione del token. Per le API di configurazione (non direttamente usate da OpenCity per fruizione), è richiesto unadmin token. Per le API di fruizione e validazione, è richiesto unuser token, e il codice fiscale contenuto nel token viene verificato con quello eventualmente presente nella URL.
Esempi di chiamate API
Di seguito, alcuni esempi di richieste e risposte per chiarire il flusso di integrazione.
Accertamento Residenza
Richiesta:
Risposta:
È disponibile anche il formato "residenza_archetipo" che include campi aggiuntivi:
Stato Famiglia
Richiesta:
Risposta (esempio con coniuge e figli):
Validazione delle risposte
Per validare l'autenticità di una risposta, si utilizza il relativo l'endpoint di validazione:
Richiesta:
Risposta:
Definizione OpenAPI
fruizione e-service Accertamento Cittadinanza
italian fiscal code
b212c4b4-db26-4404-8c7c-47dab99dd2e6id that identify a specific configuration to call an e-service
b212c4b4-db26-4404-8c7c-47dab99dd2e6identify the output payload structure
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6OK
Not Found
Validate Accertamento Cittadinanza payload
italian fiscal code
b212c4b4-db26-4404-8c7c-47dab99dd2e6id that identify a specific configuration to call an e-service
b212c4b4-db26-4404-8c7c-47dab99dd2e6identify the output payload structure
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6OK
Not Found
fruizione e-service Accertamento Residenza
italian fiscal code
b212c4b4-db26-4404-8c7c-47dab99dd2e6id that identify a specific configuration to call an e-service
b212c4b4-db26-4404-8c7c-47dab99dd2e6identify the output payload structure
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6OK
Not Found
Validate Accertamento Residenza payload
italian fiscal code
b212c4b4-db26-4404-8c7c-47dab99dd2e6id that identify a specific configuration to call an e-service
b212c4b4-db26-4404-8c7c-47dab99dd2e6identify the output payload structure
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6OK
Not Found
Retrieve Stato Famiglia for a specific fiscal code with specific configuration
italian fiscal code
b212c4b4-db26-4404-8c7c-47dab99dd2e6id that identify a specific configuration to call an e-service
b212c4b4-db26-4404-8c7c-47dab99dd2e6identify the output payload structure
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6OK
Not Found
Validate Stato Famiglia payload
italian fiscal code
b212c4b4-db26-4404-8c7c-47dab99dd2e6id that identify a specific configuration to call an e-service
b212c4b4-db26-4404-8c7c-47dab99dd2e6identify the output payload structure
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6data to validate. Can be different depending by the format param
OK
Not Found
Retrieve the list of e-services available through the service
the starting point or the index from which the data should be retrieved
6The limit parameter specifies the maximum number of items to be returned in a single page or request
...
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6OK
Bad Request
fruizione e-service attestazione ISEE
italian fiscal code
b212c4b4-db26-4404-8c7c-47dab99dd2e6id that identify a specific configuration to call an e-service
b212c4b4-db26-4404-8c7c-47dab99dd2e6ISEE format to fetch
ordinario...
b212c4b4-db26-4404-8c7c-47dab99dd2e6OK
Not Found
...
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
123456nome del tenant
comune di BuglianoCreated
Bad Request
...
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
123456nome del tenant
comune di BuglianoOK
Bad Request
...
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6No Content
Bad Request
...
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
123456nome del tenant
comune di BuglianoOK
Bad Request
Get available operations for the tenant resource.
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6OK
No content
OK
No content
Get Clients Configuration list for specific tenant
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6The limit parameter specifies the maximum number of items to be returned in a single page or request
...
the starting point or the index from which the data should be retrieved
6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6OK
Bad Request
Save client pdnd Configuration of specific tenant
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6ambiente del client
collaudo...
b212c4b4-db26-4404-8c7c-47dab99dd2e6key id del client
b212c4b4-db26-4404-8c7c-47dab99dd2e6id interno del materiale critografico
nome del tenant
comune di BuglianoCreated
Bad Request
Forbidden
Get available operations for the Clients resource.
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6The limit parameter specifies the maximum number of items to be returned in a single page or request
...
the starting point or the index from which the data should be retrieved
6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6OK
No content
OK
No content
Get client pdnd Configuration of specific tenant
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6OK
Bad Request
Forbidden
Update client pdnd Configuration of specific tenant
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6ambiente del client
collaudokey id del client
b212c4b4-db26-4404-8c7c-47dab99dd2e6id interno del materiale critografico
nome del tenant
comune di BuglianoOK
Bad Request
Forbidden
Delete client pdnd Configuration of specific tenant
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6No Content
Bad Request
Forbidden
No content
Update client pdnd Configuration of specific tenant
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6ambiente del client
collaudokey id del client
b212c4b4-db26-4404-8c7c-47dab99dd2e6id interno del materiale critografico
nome del tenant
comune di BuglianoOK
Bad Request
Forbidden
Get available operations for the Clients resource.
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6OK
No content
OK
No content
...
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6The limit parameter specifies the maximum number of items to be returned in a single page or request
...
the starting point or the index from which the data should be retrieved
6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6OK
Bad Request
...
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
false...
b212c4b4-db26-4404-8c7c-47dab99dd2e6Created
Bad Request
Get available operations for the Config resource.
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6Created
Created
No content
Get config of specific tenant by id
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6OK
Bad Request
Update config of specific tenant
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
false...
b212c4b4-db26-4404-8c7c-47dab99dd2e6OK
Bad Request
Soft deleting config of specific tenant
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6No Content
Bad Request
No content
Patch config of specific tenant
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
false...
b212c4b4-db26-4404-8c7c-47dab99dd2e6OK
Bad Request
Get available operations for the Config resource.
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6OK
No content
OK
No content
Get key unused key for a specific tenant
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6OK
Bad Request
Delete key used by specific tenant
...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6...
b212c4b4-db26-4404-8c7c-47dab99dd2e6No Content
Bad Request
No content
Last updated
Was this helpful?