forked from public-anpr/ansc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathR005_consultazione_ansc.yaml
241 lines (240 loc) · 8.38 KB
/
R005_consultazione_ansc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
openapi: 3.0.0
info:
title: Servizio consultazione eventi di stato civile
version: '1.4.0'
servers:
- url: https://anscservice.anpr.interno.it/services/service/ricerca
description: Servizio di produzione
- url: https://anscservicepre.anpr.interno.it/services/service/ricerca
description: Servizio di preproduzione
- url: http://localhost:8088
description: Servizio mock locale
paths:
/consultazione/ansc/evento/{version}:
post:
description: Ricerca tramite dati evento
parameters:
- name: version
in: path
required: true
description: La versione del servizio invocato
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ConsultazioneANSCEventoRequest'
responses:
200:
description: Atto richiesto dalla ricerca
content:
application/json:
schema:
$ref: '#/components/schemas/ConsultazioneANSCResponse'
403:
description: Non autorizzato
content:
application/json:
schema:
$ref: '#/components/schemas/ConsultazioneANSCResponse'
400:
description: Se non arriva una firma valida (deve essere diversa da null)
content:
application/json:
schema:
$ref: '#/components/schemas/ConsultazioneANSCResponse'
/consultazione/ansc/soggetto/{version}:
post:
description: Ricerca tramite dati soggetto
parameters:
- name: version
in: path
required: true
description: La versione del servizio invocato
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ConsultazioneANSCSoggettoRequest'
responses:
200:
description: Atto richiesto dalla ricerca
content:
application/json:
schema:
$ref: '#/components/schemas/ConsultazioneANSCResponse'
403:
description: Non autorizzato
content:
application/json:
schema:
$ref: '#/components/schemas/ConsultazioneANSCResponse'
400:
description: Se non arriva una firma valida (deve essere diversa da null)
content:
application/json:
schema:
$ref: '#/components/schemas/ConsultazioneANSCResponse'
/consultazione/ansc/intestatario/{version}:
post:
description: Ricerca intestatrio tramite dati anagrafici
parameters:
- name: version
in: path
required: true
description: La versione del servizio invocato
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ConsultazioneANSCSoggettoRequest'
responses:
200:
description: Soggetto richiesto dalla ricerca
content:
application/json:
schema:
$ref: '#/components/schemas/ConsultazioneANSCSoggettoResponse'
403:
description: Non autorizzato
content:
application/json:
schema:
$ref: '#/components/schemas/ConsultazioneANSCSoggettoResponse'
400:
description: Se non arriva una firma valida (deve essere diversa da null)
content:
application/json:
schema:
$ref: '#/components/schemas/ConsultazioneANSCSoggettoResponse'
components:
schemas:
CriteriRicercaEvento:
properties:
idAnsc:
type: string
description: Id Nazionale univoco assegnato dal sistema.
example: "2022-9423-26624-040007"
idComunale:
type: string
description: Numero Comunale (codificato ANPR_03)
example: "178"
idEvento:
type: string
description: Id Evento.
example: "26624"
idTipoEvento:
type: string
description: Identificativo del tipo di evento (codificato ANSC_01)
example: '2'
idTipoContenuto:
type: string
description: Identificativo del tipo di contenuto (codificato ANSC_02)
example: '3'
dataDa:
type: string
description: Data minima di ricerca dell'evento
example: "2014-11-14"
dataA:
type: string
description: Data massima di ricerca dell'evento
example: "2014-12-17"
CriteriRicercaSoggetto:
properties:
idAnpr:
type: string
description: Id Anpr
example: "1AFD4"
idAnscSoggetto:
type: string
description: Id Ansc soggetto
example: "245912"
codiceFiscale:
type: string
description: codice fiscale
example: 'PNUFDN87C13F103O'
cognome:
type: string
description: Cognome
example: 'CognomeNato'
nome:
type: string
description: Nome
example: 'UNO'
sesso:
type: string
description: Sesso
example: 'f'
idComuneNascita:
type: string
description: Identificativo del comune nascita (come da archivio comuni ANPR_3), da fornire in alternativa a nomeComuneNascita e siglaProvinciaNascita
example: '2780'
nomeComuneNascita:
type: string
description: descrizione del Comune di Nascita, da fornire se non viene valorizato l'idComuneNascita
example: 'ROMA'
siglaProvinciaNascita:
type: string
description: Sigla della provincia di Nascita, da fornire se non viene valorizato l'idComuneNascita
example: 'RM'
codiceStatoNascita:
type: string
description: Codice dello stato di nascita (dall'archivio degli stati nascita ANPR_02)
example: '100'
nomeStatoNascita:
type: string
description: Nome dello Stato di Nascita
example: 'ITALIA'
datanascita:
type: string
description: Data Di Nascita
example: '2020-01-01'
ConsultazioneANSCEventoRequest:
description: Richiesta del servizio di ricerca per evento
allOf:
- $ref: 'https://italia.github.io/ansc/docs/openapi/base_servizi.yaml#/components/schemas/AnscRequest'
- type: object
required:
- criteriRicercaEvento
properties:
criteriRicercaEvento:
$ref: '#/components/schemas/CriteriRicercaEvento'
ConsultazioneANSCSoggettoRequest:
description: Richiesta del servizio di ricerca per soggetto
allOf:
- $ref: 'https://italia.github.io/ansc/docs/openapi/base_servizi.yaml#/components/schemas/AnscRequest'
- type: object
required:
- criteriRicercaSoggetto
properties:
criteriRicercaSoggetto:
$ref: '#/components/schemas/CriteriRicercaSoggetto'
ConsultazioneANSCResponse:
description: Ritorno del servizio specializzato per la consultazione ANSC
allOf:
- $ref: 'https://italia.github.io/ansc/docs/openapi/base_servizi.yaml#/components/schemas/AnscResponse'
- type: object
properties:
modelEventoDTO:
description: Elenco degli eventi trovati (fino alla versione 1.5.2 il nome della propreità era erroneamente 'eventi')
type: array
items:
$ref: 'https://italia.github.io/ansc/docs/openapi/model_evento.yaml#/components/schemas/ModelEvento'
ConsultazioneANSCSoggettoResponse:
description: Ritorno del servizio per la consultazione intestatari ANSC
allOf:
- $ref: 'https://italia.github.io/ansc/docs/openapi/base_servizi.yaml#/components/schemas/AnscResponse'
- type: object
properties:
soggetti:
type: array
items:
$ref: 'https://italia.github.io/ansc/docs/openapi/model_evento.yaml#/components/schemas/ModelSoggetto'