Interface DiagramResources

  • All Superinterfaces:
    org.xwiki.rest.XWikiRestComponent

    public interface DiagramResources
    extends org.xwiki.rest.XWikiRestComponent
    Provides the APIs needed by the Diagram application in order to delete the attachments.
    Version:
    $Id$
    • Method Detail

      • deleteAttachments

        javax.ws.rs.core.Response deleteAttachments​(@Encoded
                                                    String documentReference)
                                             throws Exception
        Deletes the attachments associated with a diagram.
        Parameters:
        documentReference -
        Returns:
        OK if the deletion was successfully finished, 405 if the user doesn't have rights or 500 for other errors.
        Throws:
        Exception