chore: PDF-Tool-Service auf neue Basis-URL http://localhost:8084/api/v1 umgestellt

Endpunkt-Pfad entsprechend von /api/invoices/sign auf /invoices/sign
(relativ zur Basis-URL) angepasst.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-17 11:57:28 +02:00
co-authored by Claude Fable 5
parent 5169527f1f
commit 0e7ced47a8
2 changed files with 5 additions and 4 deletions
@@ -19,7 +19,8 @@ import java.util.List;
/** /**
* Client for the external PDF Tool (ZUGFeRD converter). Sends an invoice PDF * Client for the external PDF Tool (ZUGFeRD converter). Sends an invoice PDF
* together with the structured invoice data to {@code POST /api/invoices/sign} * together with the structured invoice data to {@code POST /invoices/sign}
* (relative to the configured base URL, e.g. http://localhost:8084/api/v1)
* and receives a ZIP file containing the signed e-invoice (PDF/A-3 with * and receives a ZIP file containing the signed e-invoice (PDF/A-3 with
* embedded EN16931 XML), the factur-x.xml and the Mustang validation report. * embedded EN16931 XML), the factur-x.xml and the Mustang validation report.
*/ */
@@ -33,7 +34,7 @@ public class PdfToolService {
private final RestClient restClient; private final RestClient restClient;
private final ObjectMapper objectMapper; private final ObjectMapper objectMapper;
public PdfToolService(@Value("${app.pdftool.base-url:http://localhost:8083}") String baseUrl, public PdfToolService(@Value("${app.pdftool.base-url:http://localhost:8084/api/v1}") String baseUrl,
ObjectMapper objectMapper) { ObjectMapper objectMapper) {
SimpleClientHttpRequestFactory requestFactory = new SimpleClientHttpRequestFactory(); SimpleClientHttpRequestFactory requestFactory = new SimpleClientHttpRequestFactory();
requestFactory.setConnectTimeout(5000); requestFactory.setConnectTimeout(5000);
@@ -83,7 +84,7 @@ public class PdfToolService {
body.part("metadata", metadataJson, MediaType.APPLICATION_JSON); body.part("metadata", metadataJson, MediaType.APPLICATION_JSON);
try { try {
ResponseEntity<byte[]> response = restClient.post().uri("/api/invoices/sign") ResponseEntity<byte[]> response = restClient.post().uri("/invoices/sign")
.contentType(MediaType.MULTIPART_FORM_DATA).body(body.build()).retrieve() .contentType(MediaType.MULTIPART_FORM_DATA).body(body.build()).retrieve()
.toEntity(byte[].class); .toEntity(byte[].class);
return toSignedInvoice(response.getBody(), response.getHeaders(), metadata); return toSignedInvoice(response.getBody(), response.getHeaders(), metadata);
@@ -76,7 +76,7 @@ app.version=@project.version@
app.google.maps.api-key=AIzaSyDnbitL06iLp3elmj-WtPudCykX9xvXcVE app.google.maps.api-key=AIzaSyDnbitL06iLp3elmj-WtPudCykX9xvXcVE
# PDF Tool (ZUGFeRD-E-Rechnungs-Konverter), Basis-URL des externen Service # PDF Tool (ZUGFeRD-E-Rechnungs-Konverter), Basis-URL des externen Service
app.pdftool.base-url=${PDFTOOL_BASE_URL:http://localhost:8083} app.pdftool.base-url=${PDFTOOL_BASE_URL:http://localhost:8084/api/v1}
# =========================================== # ===========================================
# LLM Configuration (Anthropic Claude) # LLM Configuration (Anthropic Claude)