-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathR013_rettifica_validazione.yaml
136 lines (133 loc) · 5.11 KB
/
R013_rettifica_validazione.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
openapi: 3.0.0
info:
title: Servizi cooperativi per la validazione della rettifica
version: '1.4.0'
servers:
- url: https://anscservice.anpr.interno.it/services/service/val
description: Servizio di produzione
- url: https://anscservicepre.anpr.interno.it/services/service/val
description: Servizio di preproduzione
- url: http://localhost:8083
description: Servizio mock locale
paths:
/rettifica/validazione/evento/{version}:
post:
description: Validazione dell'annotazione di rettifica
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/ValidazioneRettificaEventoRequest'
responses:
200:
description: Successo
content:
application/json:
schema:
$ref: '#/components/schemas/ValidazioneRettificaEventoResponse'
403:
description: Non autorizzato
content:
application/json:
schema:
$ref: '#/components/schemas/ValidazioneRettificaEventoResponse'
404:
description: Se i dati dello use case non sono presenti in base dati.
content:
application/json:
schema:
$ref: '#/components/schemas/ValidazioneRettificaEventoResponse'
/annotazione/modificativa/validazione/evento/{version}:
post:
security:
- bearerAuth: []
parameters:
- name: version
in: path
required: true
description: La versione del servizio invocato
schema:
type: string
tags:
- ValidazioneAnnModificativa
description: Servizio che valida l'evento di annotazione modificativa
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ValidazioneAnnModificativaEventoRequest'
responses:
200:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ValidazioneAnnModificativaEventoResponse'
400:
description: Dati non validi
content:
application/json:
schema:
$ref: '#/components/schemas/ValidazioneAnnModificativaEventoResponse'
403:
description: Accesso non autorizzato
content:
application/json:
schema:
$ref: '#/components/schemas/ValidazioneAnnModificativaEventoResponse'
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
schemas:
ValidazioneAnnModificativaEventoResponse:
description: DTO di risposta dei servizi di annotazione prefettizio rettifica per cambio generalita genitori
allOf:
- $ref: 'https://italia.github.io/ansc/docs/openapi/base_servizi.yaml#/components/schemas/AnscResponse'
- type: object
properties:
evento:
$ref: 'https://italia.github.io/ansc/docs/openapi/model_evento.yaml#/components/schemas/ModelEvento'
eventoModificato:
$ref: 'https://italia.github.io/ansc/docs/openapi/model_evento.yaml#/components/schemas/ModelEvento'
ValidazioneAnnModificativaEventoRequest:
description: DTO di richiesta dei servizi di annotazione prefettizio rettifica per cambio generalita genitori
allOf:
- $ref: 'https://italia.github.io/ansc/docs/openapi/base_servizi.yaml#/components/schemas/AnscRequest'
- type: object
properties:
evento:
$ref: 'https://italia.github.io/ansc/docs/openapi/model_evento.yaml#/components/schemas/ModelEvento'
ValidazioneRettificaEventoResponse:
description: Risposta per il servizio di dettaglio rettifica
allOf:
- $ref: 'https://italia.github.io/ansc/docs/openapi/base_servizi.yaml#/components/schemas/AnscResponse'
- type: object
properties:
evento:
$ref: 'https://italia.github.io/ansc/docs/openapi/model_evento.yaml#/components/schemas/ModelEvento'
eventoModificato:
$ref: 'https://italia.github.io/ansc/docs/openapi/model_evento.yaml#/components/schemas/ModelEvento'
ValidazioneRettificaEventoRequest:
description: Richiesta del servizio di rettifica
allOf:
- $ref: 'https://italia.github.io/ansc/docs/openapi/base_servizi.yaml#/components/schemas/AnscRequest'
required:
- evento
- type: object
properties:
evento:
$ref: 'https://italia.github.io/ansc/docs/openapi/model_evento.yaml#/components/schemas/ModelEvento'
eventoModificato:
$ref: 'https://italia.github.io/ansc/docs/openapi/model_evento.yaml#/components/schemas/ModelEvento'