DocumentCommentsService

The service that performs the requests for document comments. This include retrieve and create operations.

Constructor

new DocumentCommentsService(documentProvider, requestService, configServer)

Creates a document comments service.

Parameters:
NameTypeDescription
documentProviderDocumentProvider

The document provider.

requestServiceRequestService

The request service.

configServerobject

The server access config.

Properties
NameTypeDescription
urlstring

The server URL.

documentstring

The route for documents.

commentstring

The route for comments.

userstring

The route for users.

Classes

DocumentCommentsService

Methods

(async) getComments() → {object}

Get the comments as JSON object

Returns:

Comment as JSON object

Type: 
object

(async) publishComment(formData)

Publish the comments

Parameters:
NameTypeDescription
formDataFormData

The form data containing the comments