Returns a promise that is resolved once the approve article comment action has been performed. This action sets the state of an article comment to "approved". This route uses HAL enabled objects to obtain routes and therefore it doesn't apply articleCommentsRoute
route template. Here is an example of how a route can be obtained from HAL enabled objects:
let params = modelMapper.updateParams(articleComment);
let uri = params['model'].links('comment-approve').href;
Article Comment object.
Notification configuration used to control the article comment recourse access when managing notification distribution.
A promise that is resolved once the approve article comment action has been performed.
Returns a promise that is resolved once the create article comment action has been performed; this action creates a new comment for an article.
An article comment object that needs to be inserted into the system.
A promise that is resolved once the create article comment action has been performed.
Returns a promise that is resolved once the find action has been performed. Success response returns a list of article comment resources matching the given criteria.
Article slug or id which uniquely identifies article whose comment resources need to be retrieved.
Query resource options object.
A promise that is resolved once the find action has been performed.
Returns a promise that is resolved once the flag article comment action has been performed. This action sets the state of an article comment to "flagged". This route uses HAL enabled objects to obtain routes and therefore it doesn't apply articleCommentsRoute
route template. Here is an example of how a route can be obtained from HAL enabled objects:
let params = modelMapper.updateParams(articleComment);
let uri = params['model'].links('comment-flag').href;
Article Comment object.
A promise that is resolved once the flag article comment action has been performed.
Returns a promise that is resolved once the get action has been performed. Success response returns the specified article comment resource.
Article slug or id which uniquely identifies article whose comment resource needs to be retrieved.
Id which identifies article comment resource that needs to be retrieved.
Options object that contains embed data.
A promise that is resolved once the get action has been performed.
Returns a promise that is resolved once the remove article comment action has been performed. If the action is successfully completed, the article comment resource and its replies will be permanently removed from the system. This route uses HAL enabled objects to obtain routes and therefore it doesn't apply articleCommentsRoute
route template. Here is an example of how a route can be obtained from HAL enabled objects:
let params = modelMapper.removeParams(articleComment);
let uri = params['model'].links('delete').href;
An article comment object used to delete specified article comment resource.
A promise that is resolved once the remove article comment action has been performed.
Returns a promise that is resolved once the removeAll article comment action has been performed. This action will remove all comments and comment replies from an article if successfully completed. This route uses HAL enabled objects to obtain routes and therefore it doesn't apply articleInstanceRoute
route template. Here is an example of how a route can be obtained from HAL enabled objects:
let params = modelMapper.removeParams(articleComment);
let uri = params['model'].links('delete-comments-by-article').href;
An article object used to delete specified article comment resource.
A promise that is resolved once the removeAll article comment action has been performed.
Returns a promise that is resolved once the report article comment action has been performed. This action sets the state of an article comment to "reported". This route uses HAL enabled objects to obtain routes and therefore it doesn't apply articleCommentsRoute
route template. Here is an example of how a route can be obtained from HAL enabled objects:
let params = modelMapper.updateParams(articleComment);
let uri = params['model'].links('comment-report').href;
Article Comment object.
Notification configuration used to control the article comment recourse access when managing notification distribution.
A promise that is resolved once the report article comment action has been performed.
Returns a promise that is resolved once the mark as spam article comment action has been performed. This action sets the state of an article comment to "spam". This route uses HAL enabled objects to obtain routes and therefore it doesn't apply articleInstanceRoute
route template. Here is an example of how a route can be obtained from HAL enabled objects:
let params = modelMapper.updateParams(articleComment);
let uri = params['model'].links('comment-spam').href;
Article Comment object.
A promise that is resolved once the mark as spam article comment action has been performed.
Returns a promise that is resolved once the unapprove article comment action has been performed. This action sets the state of an article comment to "unapproved". This route uses HAL enabled objects to obtain routes and therefore it doesn't apply articleCommentsRoute
route template. Here is an example of how a route can be obtained from HAL enabled objects:
let params = modelMapper.updateParams(articleComment);
let uri = params['model'].links('comment-unapprove').href;
Article Comment object.
A promise that is resolved once the unapprove article comment action has been performed.
Returns a promise that is resolved once the unflag article comment action has been performed. This action removes the "flagged" comment mark. This route uses HAL enabled objects to obtain routes and therefore it doesn't apply articleCommentsRoute
route template. Here is an example of how a route can be obtained from HAL enabled objects:
let params = modelMapper.updateParams(articleComment);
let uri = params['model'].links('comment-unflag').href;
Article Comment object.
A promise that is resolved once the unflag article comment action has been performed.
Returns a promise that is resolved once the unreport article comment action has been performed. This action removes the "reported" comment mark. This route uses HAL enabled objects to obtain routes and therefore it doesn't apply articleCommentsRoute
route template. Here is an example of how a route can be obtained from HAL enabled objects:
let params = modelMapper.updateParams(articleComment);
let uri = params['model'].links('comment-unreport').href;
Article Comment object.
A promise that is resolved once the unreport article comment action has been performed.
Returns a promise that is resolved once the unspam article comment action has been performed. This action removes the "spam" comment state. This route uses HAL enabled objects to obtain routes and therefore it doesn't apply articleInstanceRoute
route template. Here is an example of how a route can be obtained from HAL enabled objects:
let params = modelMapper.updateParams(articleComment);
let uri = params['model'].links('comment-unspam').href;
Article Comment object.
A promise that is resolved once the unspam article comment action has been performed.
Returns a promise that is resolved once the update article comment action has been performed; this action updates an article comment resource. This route uses HAL enabled objects to obtain routes and therefore it doesn't apply articleCommentsRoute
route template. Here is an example of how a route can be obtained from HAL enabled objects:
let params = modelMapper.updateParams(articleComment);
let uri = params['model'].links('put').href;
An article comments object used to update specified article comment resource.
A promise that is resolved once the update article comment action has been performed.
Generated using TypeDoc
Contains a reference to valid list of article comment states. It returns an object containing all article comment states.
articleInstanceCommentsClient.statuses.approved;