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;
|
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,
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user