Merge branch 'develop' into stable

This commit is contained in:
Brian Long 2023-11-16 11:38:33 -05:00
commit 775498670e
2 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,7 @@
*/ */
package com.inteligr8.alfresco.activiti.api; package com.inteligr8.alfresco.activiti.api;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST; import javax.ws.rs.POST;
import javax.ws.rs.Path; import javax.ws.rs.Path;
import javax.ws.rs.PathParam; import javax.ws.rs.PathParam;
@ -34,6 +35,7 @@ public interface TemplatesCxfApi extends TemplatesApi {
@POST @POST
@Path("admin/document-templates") @Path("admin/document-templates")
@Consumes({ MediaType.MULTIPART_FORM_DATA })
@Produces({ MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_JSON })
public DocumentTemplateLight createDocumentTemplate( public DocumentTemplateLight createDocumentTemplate(
@QueryParam("tenantId") Long tenantId, @QueryParam("tenantId") Long tenantId,
@ -41,6 +43,7 @@ public interface TemplatesCxfApi extends TemplatesApi {
@POST @POST
@Path("admin/document-templates/{templateId}") @Path("admin/document-templates/{templateId}")
@Consumes({ MediaType.MULTIPART_FORM_DATA })
@Produces({ MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_JSON })
public DocumentTemplateLight updateDocumentTemplate( public DocumentTemplateLight updateDocumentTemplate(
@PathParam("templateId") long id, @PathParam("templateId") long id,

View File

@ -14,6 +14,7 @@
*/ */
package com.inteligr8.alfresco.activiti.api; package com.inteligr8.alfresco.activiti.api;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST; import javax.ws.rs.POST;
import javax.ws.rs.Path; import javax.ws.rs.Path;
import javax.ws.rs.PathParam; import javax.ws.rs.PathParam;
@ -34,6 +35,7 @@ public interface TemplatesJerseyApi extends TemplatesApi {
@POST @POST
@Path("admin/document-templates") @Path("admin/document-templates")
@Consumes({ MediaType.MULTIPART_FORM_DATA })
@Produces({ MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_JSON })
public DocumentTemplateLight createDocumentTemplate( public DocumentTemplateLight createDocumentTemplate(
@QueryParam("tenantId") Long tenantId, @QueryParam("tenantId") Long tenantId,
@ -41,6 +43,7 @@ public interface TemplatesJerseyApi extends TemplatesApi {
@POST @POST
@Path("admin/document-templates/{templateId}") @Path("admin/document-templates/{templateId}")
@Consumes({ MediaType.MULTIPART_FORM_DATA })
@Produces({ MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_JSON })
public DocumentTemplateLight updateDocumentTemplate( public DocumentTemplateLight updateDocumentTemplate(
@PathParam("templateId") long id, @PathParam("templateId") long id,