svalley-onlyoffice-controller
v1.0.29
Published
SvalleyEditorOnlyoffice
Downloads
5
Readme
Overview
This package will help you integrate ONLYOFFICE Docs into your web application on Node.js.
Release for the package v1.0.0
Install the prerequisites on your backend
- Install svalley-onlyoffice-controller:
npm install svalley-onlyoffice-controller --save
- Add on your backend
Example :const onlyfficeController = require('svalley-onlyoffice-controller')
/** * define a handler for uploading files */ router.post('/endpoint-api', onlyfficeController.method);
List of method functional
- track: POST method for savaving the document with the callbackUrl.
- documentCreate: POST method for created a new empty document body: {fileName: filename.extension}.
- upload: POST method for uploaded a document from your local body: {fileName: filename.extension}.
- createWithModel: POST method for created a new document from a modal body: {fileName: filename.extension}.
- saveAsModel: POST method for saved a document like a modal body: {fileName: filename.extension}.
- models: GET method for getting all the modals.
- delFile: DELETE method for deletedg a document query: filename=filename.extension.