Skip to content

Commit

Permalink
Issue #517
Browse files Browse the repository at this point in the history
Aggiunta generazione del link al dettaglio per gli eventi della lista.
  • Loading branch information
pintorig committed Sep 5, 2022
1 parent 89c98d2 commit a516824
Show file tree
Hide file tree
Showing 6 changed files with 246 additions and 261 deletions.
2 changes: 1 addition & 1 deletion integration-test/src/test/java/karate-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function() {
govpay_url: 'http://localhost:8080',
govpay_backoffice_user: 'gpadmin',
govpay_backoffice_password: 'Password1!',
ndpsym_url: 'http://localhost:8180/govpay-ndpsym',
ndpsym_url: 'http://localhost:8080/govpay-ndpsym',
ndpsym_user: 'ndpsym',
ente_api_url: 'http://localhost:8888/paServiceImpl',
ente_api_rendicontazioni_url: 'http://localhost:8888/enteRendicontazioni',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
import org.slf4j.LoggerFactory;
import org.springframework.web.reactive.function.client.WebClientResponseException;

import it.govpay.gde.v1.api.GdeControllerApi;
import it.govpay.gde.v1.api.EventiApi;
import it.govpay.gde.v1.api.impl.ApiClient;
import it.govpay.gde.v1.model.NuovoEvento;

public class GdeInvoker {

private static Logger logger = LoggerFactory.getLogger(GdeInvoker.class);

private GdeControllerApi gdeApi;
private EventiApi gdeApi;

public GdeInvoker(String gdeUrl){
ApiClient apiClient = new ApiClient();
apiClient.setBasePath(gdeUrl);
gdeApi = new GdeControllerApi(apiClient );
gdeApi = new EventiApi(apiClient );
}

public void salvaEvento(NuovoEvento nuovoEvento) {
Expand Down
146 changes: 114 additions & 32 deletions jars/client-api-gde/src/main/resources/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,94 +9,111 @@ paths:
/eventi:
get:
tags:
- gde-controller
- eventi
summary: Ricerca eventi
description: Ricerca eventi
operationId: findEventi
parameters:
- name: pageable
in: query
description: informazioni di paginazione e ordinamento
required: true
schema:
$ref: '#/components/schemas/Pageable'
- name: dataDa
in: query
description: Inizio della finestra temporale di osservazione
required: false
schema:
type: string
format: date-time
- name: dataA
in: query
description: Fine della finestra temporale di osservazione
required: false
schema:
type: string
format: date-time
- name: idDominio
in: query
description: Identificativo del dominio beneficiario
required: false
schema:
type: string
- name: iuv
in: query
description: Identificativo univoco di versamento
required: false
schema:
type: string
- name: ccp
in: query
description: Codice contesto pagamento/ID ricevuta
required: false
schema:
type: string
- name: idA2A
in: query
description: Identificativo del gestionale proprietario della pendenza
required: false
schema:
type: string
- name: idPendenza
in: query
description: Identificativo della pendenza nel gestionale proprietario
required: false
schema:
type: string
- name: idPagamento
in: query
description: Identificativo della richiesta di pagamento
required: false
schema:
type: string
- name: categoriaEvento
- name: categoria
in: query
description: Filtro per categoria evento
required: false
schema:
type: string
enum:
- INTERNO
- INTERFACCIA
- UTENTE
- name: esitoEvento
- name: esito
in: query
description: Filtro per esito evento
required: false
schema:
type: string
enum:
- OK
- KO
- FAIL
- name: ruoloEvento
- name: ruolo
in: query
description: Filtro per ruolo evento
required: false
schema:
type: string
enum:
- CLIENT
- SERVER
- name: sottotipoEvento
- name: sottotipo
in: query
description: Filtro per sottotipo evento
required: false
schema:
type: string
- name: tipoEvento
- name: tipo
in: query
description: Filtro per tipo evento
required: false
schema:
type: string
- name: componenteEvento
- name: componente
in: query
description: Filtro per componente evento
required: false
schema:
type: string
Expand All @@ -117,44 +134,60 @@ paths:
- GOVPAY
- name: severitaDa
in: query
description: Filtro per severita' errore
required: false
schema:
type: integer
format: int32
- name: severitaA
in: query
description: Filtro per severita' errore
required: false
schema:
type: integer
format: int32
responses:
"422":
description: Unprocessable Entity
content:
'*/*':
schema:
$ref: '#/components/schemas/problem'
"404":
description: Not Found
content:
'*/*':
application/json:
schema:
$ref: '#/components/schemas/problem'
"500":
description: Internal Server Error
content:
'*/*':
application/json:
schema:
$ref: '#/components/schemas/problem'
"422":
description: Unprocessable Entity
"200":
description: Lista eventi
content:
'*/*':
application/json:
schema:
$ref: '#/components/schemas/PagedModel'
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
"200":
description: OK
"403":
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/PagedModelEventoIndexModel'
$ref: '#/components/schemas/problem'
post:
tags:
- gde-controller
- eventi
summary: Salvataggio di un nuovo evento
description: Salvataggio di un nuovo evento
operationId: addEvento
requestBody:
content:
Expand All @@ -163,6 +196,12 @@ paths:
$ref: '#/components/schemas/nuovoEvento'
required: true
responses:
"422":
description: Unprocessable Entity
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
"404":
description: Not Found
content:
Expand All @@ -172,58 +211,85 @@ paths:
"500":
description: Internal Server Error
content:
'*/*':
application/json:
schema:
$ref: '#/components/schemas/problem'
"422":
description: Unprocessable Entity
"400":
description: Bad Request
content:
'*/*':
application/json:
schema:
$ref: '#/components/schemas/problem'
"200":
description: OK
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
"201":
description: Evento salvato con successo
content:
'*/*':
schema:
type: object
"403":
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
/eventi/{id}:
get:
tags:
- gde-controller
- eventi
summary: Dettaglio di un evento
description: Dettaglio di un evento
operationId: getEventoById
parameters:
- name: id
in: path
description: Id dell'evento da leggere.
required: true
schema:
type: integer
format: int64
responses:
"422":
description: Unprocessable Entity
content:
'*/*':
schema:
$ref: '#/components/schemas/problem'
"404":
description: Not Found
content:
'*/*':
application/json:
schema:
$ref: '#/components/schemas/problem'
"500":
description: Internal Server Error
content:
'*/*':
application/json:
schema:
$ref: '#/components/schemas/problem'
"422":
description: Unprocessable Entity
"401":
description: Unauthorized
content:
'*/*':
application/json:
schema:
$ref: '#/components/schemas/problem'
"200":
description: OK
description: Dettaglio Evento
content:
application/json:
schema:
$ref: '#/components/schemas/evento'
"403":
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/problem'
components:
schemas:
problem:
Expand Down Expand Up @@ -353,6 +419,18 @@ components:
type: object
parametriRisposta:
type: object
idTracciato:
type: integer
format: int64
idFr:
type: integer
format: int64
idRiconciliazione:
type: integer
format: int64
_links:
$ref: '#/components/schemas/Links'
description: Evento da salvare.
Pageable:
type: object
properties:
Expand Down Expand Up @@ -383,16 +461,16 @@ components:
number:
type: integer
format: int64
PagedModelEventoIndexModel:
PagedModel:
type: object
properties:
_embedded:
type: object
properties:
eventi:
objects:
type: array
items:
$ref: '#/components/schemas/evento'
type: object
_links:
$ref: '#/components/schemas/Links'
page:
Expand Down Expand Up @@ -468,6 +546,10 @@ components:
severita:
type: integer
format: int32
parametriRichiesta:
type: object
parametriRisposta:
type: object
_links:
$ref: '#/components/schemas/Links'
Link:
Expand Down
Loading

0 comments on commit a516824

Please sign in to comment.