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
@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")