From c5f7e04fed6dd48c9bf2229452db108f8f895ce7 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 21 Nov 2024 02:42:39 +0100 Subject: [PATCH] Prefixed create paths with /create --- .../kotlin/net/codinux/invoicing/api/InvoicingResource.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e-invoice-api/src/main/kotlin/net/codinux/invoicing/api/InvoicingResource.kt b/e-invoice-api/src/main/kotlin/net/codinux/invoicing/api/InvoicingResource.kt index a5f2b39..ef1dab2 100644 --- a/e-invoice-api/src/main/kotlin/net/codinux/invoicing/api/InvoicingResource.kt +++ b/e-invoice-api/src/main/kotlin/net/codinux/invoicing/api/InvoicingResource.kt @@ -23,21 +23,21 @@ class InvoicingResource( } - @Path("xrechnung") + @Path("create/xrechnung") @POST @Operation(summary = "Create a XRechnung XML") @Tag(name = "Create") fun createXRechnung(invoice: Invoice) = service.createXRechnung(invoice) - @Path("facturx/xml") + @Path("create/facturx/xml") @POST @Operation(summary = "Create a Factur-X / ZUGFeRD XML (ZUGFeRD is a synonym for Factur-X)") @Tag(name = "Create") fun createFacturXXml(invoice: Invoice) = service.createFacturXXml(invoice) - @Path("facturx/pdf") + @Path("create/facturx/pdf") @POST @Produces(MediaTypePdf) @Operation(summary = "Create a Factur-X / ZUGFeRD XML, transforms it to PDF and attaches before created XML to it")