added @Consumes multipart/form-data for TemplatesApi
This commit is contained in:
parent
09aabea4e3
commit
c0916958f0
@ -14,6 +14,7 @@
|
||||
*/
|
||||
package com.inteligr8.alfresco.activiti.api;
|
||||
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.POST;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.PathParam;
|
||||
@ -34,6 +35,7 @@ public interface TemplatesCxfApi extends TemplatesApi {
|
||||
|
||||
@POST
|
||||
@Path("admin/document-templates")
|
||||
@Consumes({ MediaType.MULTIPART_FORM_DATA })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
public DocumentTemplateLight createDocumentTemplate(
|
||||
@QueryParam("tenantId") Long tenantId,
|
||||
@ -41,6 +43,7 @@ public interface TemplatesCxfApi extends TemplatesApi {
|
||||
|
||||
@POST
|
||||
@Path("admin/document-templates/{templateId}")
|
||||
@Consumes({ MediaType.MULTIPART_FORM_DATA })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
public DocumentTemplateLight updateDocumentTemplate(
|
||||
@PathParam("templateId") long id,
|
||||
|
@ -14,6 +14,7 @@
|
||||
*/
|
||||
package com.inteligr8.alfresco.activiti.api;
|
||||
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.POST;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.PathParam;
|
||||
@ -34,6 +35,7 @@ public interface TemplatesJerseyApi extends TemplatesApi {
|
||||
|
||||
@POST
|
||||
@Path("admin/document-templates")
|
||||
@Consumes({ MediaType.MULTIPART_FORM_DATA })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
public DocumentTemplateLight createDocumentTemplate(
|
||||
@QueryParam("tenantId") Long tenantId,
|
||||
@ -41,6 +43,7 @@ public interface TemplatesJerseyApi extends TemplatesApi {
|
||||
|
||||
@POST
|
||||
@Path("admin/document-templates/{templateId}")
|
||||
@Consumes({ MediaType.MULTIPART_FORM_DATA })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
public DocumentTemplateLight updateDocumentTemplate(
|
||||
@PathParam("templateId") long id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user