Constructor
new DocumentCommentsService(documentProvider, requestService, configServer)
Creates a document comments service.
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
documentProvider | DocumentProvider | The document provider. | |||||||||||||||
requestService | RequestService | The request service. | |||||||||||||||
configServer | object | The server access config. Properties
|
Classes
Methods
(async) getComments() → {object}
Get the comments as JSON object
Returns:
Comment as JSON object
- Type:
- object
(async) publishComment(formData)
Publish the comments
Parameters:
Name | Type | Description |
---|---|---|
formData | FormData | The form data containing the comments |