Skip to content

Commit

Permalink
Issue #517
Browse files Browse the repository at this point in the history
Aggiornati gli openapi generati.
  • Loading branch information
pintorig committed Aug 3, 2022
1 parent 807bc7c commit 3dbaa2a
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 92 deletions.
86 changes: 40 additions & 46 deletions jars/client-api-gde/src/main/resources/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ paths:
required: false
schema:
type: string
- name: categoria
- name: categoriaEvento
in: query
description: Filtro per categoria evento
required: false
Expand Down Expand Up @@ -99,13 +99,13 @@ paths:
enum:
- CLIENT
- SERVER
- name: sottotipo
- name: sottotipoEvento
in: query
description: Filtro per sottotipo evento
required: false
schema:
type: string
- name: tipo
- name: tipoEvento
in: query
description: Filtro per tipo evento
required: false
Expand Down Expand Up @@ -147,6 +147,12 @@ paths:
type: integer
format: int32
responses:
"400":
description: Bad Request
content:
'*/*':
schema:
$ref: '#/components/schemas/problem'
"404":
description: Not Found
content:
Expand All @@ -159,18 +165,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/problem'
"400":
description: Bad Request
content:
'*/*':
schema:
$ref: '#/components/schemas/problem'
"403":
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
"200":
description: Lista eventi
content:
Expand All @@ -183,6 +177,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/problem'
"403":
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
post:
tags:
- eventi
Expand All @@ -196,6 +196,12 @@ paths:
$ref: '#/components/schemas/nuovoEvento'
required: true
responses:
"400":
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
"404":
description: Not Found
content:
Expand All @@ -208,32 +214,22 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/problem'
"400":
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
"403":
description: Forbidden
"422":
description: Unprocessable Entity
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
"201":
description: Evento salvato con successo
content:
'*/*':
schema:
type: object
"422":
description: Unprocessable Entity
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
"401":
description: Unauthorized
"403":
description: Forbidden
content:
application/json:
schema:
Expand All @@ -254,6 +250,12 @@ paths:
type: integer
format: int64
responses:
"400":
description: Bad Request
content:
'*/*':
schema:
$ref: '#/components/schemas/problem'
"404":
description: Not Found
content:
Expand All @@ -266,10 +268,10 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/problem'
"400":
description: Bad Request
"401":
description: Unauthorized
content:
'*/*':
application/json:
schema:
$ref: '#/components/schemas/problem'
"403":
Expand All @@ -284,12 +286,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/evento'
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
components:
schemas:
problem:
Expand All @@ -308,10 +304,6 @@ components:
instance:
type: string
format: uri
Links:
type: object
additionalProperties:
$ref: '#/components/schemas/Link'
datiPagoPA:
type: object
properties:
Expand Down Expand Up @@ -339,8 +331,6 @@ components:
type: string
idTracciato:
type: number
_links:
$ref: '#/components/schemas/Links'
nuovoEvento:
type: object
properties:
Expand Down Expand Up @@ -458,6 +448,10 @@ components:
type: array
items:
type: string
Links:
type: object
additionalProperties:
$ref: '#/components/schemas/Link'
PageMetadata:
type: object
properties:
Expand Down
86 changes: 40 additions & 46 deletions wars/api-gde/src/main/resources/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ paths:
required: false
schema:
type: string
- name: categoria
- name: categoriaEvento
in: query
description: Filtro per categoria evento
required: false
Expand Down Expand Up @@ -99,13 +99,13 @@ paths:
enum:
- CLIENT
- SERVER
- name: sottotipo
- name: sottotipoEvento
in: query
description: Filtro per sottotipo evento
required: false
schema:
type: string
- name: tipo
- name: tipoEvento
in: query
description: Filtro per tipo evento
required: false
Expand Down Expand Up @@ -147,6 +147,12 @@ paths:
type: integer
format: int32
responses:
"400":
description: Bad Request
content:
'*/*':
schema:
$ref: '#/components/schemas/problem'
"404":
description: Not Found
content:
Expand All @@ -159,18 +165,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/problem'
"400":
description: Bad Request
content:
'*/*':
schema:
$ref: '#/components/schemas/problem'
"403":
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
"200":
description: Lista eventi
content:
Expand All @@ -183,6 +177,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/problem'
"403":
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
post:
tags:
- eventi
Expand All @@ -196,6 +196,12 @@ paths:
$ref: '#/components/schemas/nuovoEvento'
required: true
responses:
"400":
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
"404":
description: Not Found
content:
Expand All @@ -208,32 +214,22 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/problem'
"400":
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
"403":
description: Forbidden
"422":
description: Unprocessable Entity
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
"201":
description: Evento salvato con successo
content:
'*/*':
schema:
type: object
"422":
description: Unprocessable Entity
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
"401":
description: Unauthorized
"403":
description: Forbidden
content:
application/json:
schema:
Expand All @@ -254,6 +250,12 @@ paths:
type: integer
format: int64
responses:
"400":
description: Bad Request
content:
'*/*':
schema:
$ref: '#/components/schemas/problem'
"404":
description: Not Found
content:
Expand All @@ -266,10 +268,10 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/problem'
"400":
description: Bad Request
"401":
description: Unauthorized
content:
'*/*':
application/json:
schema:
$ref: '#/components/schemas/problem'
"403":
Expand All @@ -284,12 +286,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/evento'
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
components:
schemas:
problem:
Expand All @@ -308,10 +304,6 @@ components:
instance:
type: string
format: uri
Links:
type: object
additionalProperties:
$ref: '#/components/schemas/Link'
datiPagoPA:
type: object
properties:
Expand Down Expand Up @@ -339,8 +331,6 @@ components:
type: string
idTracciato:
type: number
_links:
$ref: '#/components/schemas/Links'
nuovoEvento:
type: object
properties:
Expand Down Expand Up @@ -458,6 +448,10 @@ components:
type: array
items:
type: string
Links:
type: object
additionalProperties:
$ref: '#/components/schemas/Link'
PageMetadata:
type: object
properties:
Expand Down

0 comments on commit 3dbaa2a

Please sign in to comment.