Each method represents a specific comment activity, for example getting a comment. You use each method by sending a request to the URI in a certain format. Upon successful request, the server always responds with a 200 OK status code.
In the following table, you can see details on the various methods you can use to manage comments.
HTTP POST request: /RestApi/comments-api/comments
/RestApi/comments-api/comments
Posted data JSON format:
Details of the published comment:
HTTP GET request: /RestApi/comments-api/comments/{key} where key is the comment's identifier
/RestApi/comments-api/comments/{key}
Details of the requested comment:
HTTP PUT request: /RestApi/comments-api/comments
Details of the updated comment:
HTTP GET request: /RestApi/comments-api/comments
Total number of comments and content of the comments filtered by the request parameters:
HTTP POST request: /RestApi/comments-api/comments/filter
/RestApi/comments-api/comments/filter
HTTP GET request: /RestApi/comments-api/comments/count
/RestApi/comments-api/comments/count
Number of comments:
HTTP PUT request: /RestApi/comments-api/comments/list
/RestApi/comments-api/comments/list
Total number of comments and content of updated comments:
HTTP DELETE request: /RestApi/comments-api/comments/{key} where key is the comment's identifier
The comment is deleted.
HTTP DELETE request: /RestApi/comments-api/comments/list
The comments are deleted.
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.
This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important