/* * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or (at your * option) any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ package com.inteligr8.alfresco.activiti.api; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import javax.ws.rs.core.MediaType; import com.inteligr8.alfresco.activiti.model.DocumentTemplateLight; import com.inteligr8.alfresco.activiti.model.FileMultipartCxf; /** * This is an undocumented API. * * @author brian@inteligr8.com */ @Path("/app/rest") public interface TemplatesCxfApi extends TemplatesApi { @POST @Path("admin/document-templates") @Produces({ MediaType.APPLICATION_JSON }) public DocumentTemplateLight createDocumentTemplate( @QueryParam("tenantId") Integer tenantId, FileMultipartCxf file); @POST @Path("admin/document-templates/{templateId}") @Produces({ MediaType.APPLICATION_JSON }) public DocumentTemplateLight updateDocumentTemplate( @PathParam("templateId") int id, @QueryParam("tenantId") Integer tenantId, FileMultipartCxf file); }