-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathR010_anteprima.yaml
178 lines (178 loc) · 6.07 KB
/
R010_anteprima.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
openapi: 3.0.0
info:
title: Servizio anteprima eventi di stato civile
version: '1.4.0'
servers:
- url: https://anscservice.anpr.interno.it/services/service/anteprima
description: Servizio di produzione
- url: https://anscservicepre.anpr.interno.it/services/service/anteprima
description: Servizio di preproduzione
- url: http://localhost:8085
description: Servizio mock locale
paths:
/anteprima/evento/{version}:
post:
description: Anteprima di un atto anche parziale
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/AnteprimaEventoRequest'
responses:
200:
description: Atto richiesto dalla ricerca
content:
application/json:
schema:
$ref: '#/components/schemas/AnteprimaEventoResponse'
403:
description: Non autorizzato
content:
application/json:
schema:
$ref: '#/components/schemas/AnteprimaEventoResponse'
400:
description: Se l'evento non è compatibile con la richiesta. Ad esempio non è in stato CONFERMATO nella richiesta di presa visione senza watermark
content:
application/json:
schema:
$ref: '#/components/schemas/AnteprimaEventoResponse'
/anteprima/attestazione/{version}:
post:
description: Anteprima dell'attestazione di conformità
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/AnteprimaAttestazioneRequest'
responses:
200:
description: Pdf in formato Base64 dell'attestazione di conformità
content:
application/json:
schema:
$ref: '#/components/schemas/AnteprimaAttestazioneResponse'
403:
description: Non autorizzato
content:
application/json:
schema:
$ref: '#/components/schemas/AnteprimaAttestazioneResponse'
400:
description: Se l'evento non è compatibile con la richiesta. Ad esempio non è in stato CONFERMATO nella richiesta di presa visione senza watermark
content:
application/json:
schema:
$ref: '#/components/schemas/AnteprimaAttestazioneResponse'
components:
schemas:
AnteprimaEventoRequest:
description: Richiesta del servizio di anteprima
allOf:
- $ref: 'https://italia.github.io/ansc/docs/openapi/base_servizi.yaml#/components/schemas/AnscRequest'
- type: object
required:
- evento
properties:
presaVisione:
type: boolean
description: Flag che richiede che l'anteprima non abbia il watermark. Per default è false
example: false
evento:
$ref: 'https://italia.github.io/ansc/docs/openapi/model_evento.yaml#/components/schemas/ModelEvento'
EventoOutput:
description: Modello evento restituito dal sistema
properties:
contenuto:
type: string
format: base64
description: Il file in formato base64
example: "QU5TQw=="
nomeFile:
type: string
description: Nome del file
example: "nome_del_file.pdf"
tipoFile:
type: string
description: Tipo del file (codificato ANSC_10)
example: "1"
tipoAllegato:
type: string
description: Tipo dell'allegato (codificato ANSC_9)
example: "1"
codice:
type: string
description: codice
example: "200"
descrizione:
type: string
description: descrizione del codice
example: "SUCCESS"
tipologia:
type: string
description: errore del servizio
example: "errore"
AnteprimaEventoResponse:
description: Ritorno del servizio di anteprima evento
allOf:
- $ref: 'https://italia.github.io/ansc/docs/openapi/base_servizi.yaml#/components/schemas/AnscResponse'
- type: object
properties:
eventoOutput:
$ref: '#/components/schemas/EventoOutput'
AnteprimaAttestazioneRequest:
description: Richiesta del servizio di anteprima
allOf:
- $ref: 'https://italia.github.io/ansc/docs/openapi/base_servizi.yaml#/components/schemas/AnscRequest'
- type: object
required:
- idEvento
properties:
idEvento:
type: string
description: Id dell'atto
example: 3425253
AnteprimaAttestazioneResponse:
description: Ritorno del servizio di anteprima dell'attestazione di conformità
allOf:
- $ref: 'https://italia.github.io/ansc/docs/openapi/base_servizi.yaml#/components/schemas/AnscResponse'
- type: object
properties:
hasAllegatiDaAttestare:
type: boolean
description: Flag se a true eseguire l'attestazione di conformità
example: "true"
allegatoOutput:
$ref: '#/components/schemas/AnteprimaAttestazioneOutput'
AnteprimaAttestazioneOutput:
description: Modello anteprima attestazione
properties:
contenuto:
type: string
format: base64
description: Il file in formato base64
example: "QU5TQw=="
nomefile:
type: string
description: Nome del file
example: "nome_del_file.pdf"
tipoFile:
type: string
description: Tipo del file (codificato ANSC_10)
example: "1"