Prefixed create paths with /create

This commit is contained in:
dankito 2024-11-21 02:42:39 +01:00
parent 67c58db9d7
commit c5f7e04fed
1 changed files with 3 additions and 3 deletions

View File

@ -23,21 +23,21 @@ class InvoicingResource(
} }
@Path("xrechnung") @Path("create/xrechnung")
@POST @POST
@Operation(summary = "Create a XRechnung XML") @Operation(summary = "Create a XRechnung XML")
@Tag(name = "Create") @Tag(name = "Create")
fun createXRechnung(invoice: Invoice) = fun createXRechnung(invoice: Invoice) =
service.createXRechnung(invoice) service.createXRechnung(invoice)
@Path("facturx/xml") @Path("create/facturx/xml")
@POST @POST
@Operation(summary = "Create a Factur-X / ZUGFeRD XML (ZUGFeRD is a synonym for Factur-X)") @Operation(summary = "Create a Factur-X / ZUGFeRD XML (ZUGFeRD is a synonym for Factur-X)")
@Tag(name = "Create") @Tag(name = "Create")
fun createFacturXXml(invoice: Invoice) = fun createFacturXXml(invoice: Invoice) =
service.createFacturXXml(invoice) service.createFacturXXml(invoice)
@Path("facturx/pdf") @Path("create/facturx/pdf")
@POST @POST
@Produces(MediaTypePdf) @Produces(MediaTypePdf)
@Operation(summary = "Create a Factur-X / ZUGFeRD XML, transforms it to PDF and attaches before created XML to it") @Operation(summary = "Create a Factur-X / ZUGFeRD XML, transforms it to PDF and attaches before created XML to it")