diff --git a/Dockerfile b/Dockerfile index 6822b33..3f2c5f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -106,6 +106,10 @@ RUN gradle openApiGeneratePayhub dependencies --no-daemon RUN gradle openApiGeneratePdndClient dependencies --no-daemon +RUN gradle openApiGenerateAnprApiC030 dependencies --no-daemon + +RUN gradle openApiGenerateAnprApiC003 dependencies --no-daemon + # # 🏗️ Build Stage # diff --git a/openapi/p4pa-pdnd.openapi.yaml b/openapi/p4pa-pdnd.openapi.yaml index 6820fe3..8cb96da 100644 --- a/openapi/p4pa-pdnd.openapi.yaml +++ b/openapi/p4pa-pdnd.openapi.yaml @@ -4,7 +4,7 @@ info: description: API and Models. version: 0.0.1 servers: - - url: "http://localhost:8080/p4papdnd" + - url: "http://localhost:8080" paths: /anpr-service-e002/citizen: get: diff --git a/src/test/java/it/gov/pagopa/payhub/pdnd/anpr/controller/PdndServiceControllerTest.java b/src/test/java/it/gov/pagopa/payhub/pdnd/anpr/controller/PdndServiceControllerTest.java index cd08dc5..d7a0c7a 100644 --- a/src/test/java/it/gov/pagopa/payhub/pdnd/anpr/controller/PdndServiceControllerTest.java +++ b/src/test/java/it/gov/pagopa/payhub/pdnd/anpr/controller/PdndServiceControllerTest.java @@ -43,7 +43,7 @@ void givenValidFiscalCodeWhenGetCitizenDataThenReturnCitizenDetails() throws Exc Mockito.when(pdndService.getCitizenData(fiscalCode)).thenReturn(citizen); - mockMvc.perform(get("/p4papdnd/anpr-service-e002/citizen") + mockMvc.perform(get("/anpr-service-e002/citizen") .param("fiscalCode", fiscalCode)) .andExpect(status().isOk()) .andExpect(jsonPath("$.firstName").value("Julieta"))