Software AG Products 10.11 | Using Developer Portal | Developer Portal REST APIs | Managing comments
 
Managing comments
Overview
This REST API is used to add, retrieve, upvote or downvote, and delete comments under a topic.
List of resources
*GET /topics/{id}/comments
Retrieves the list of comments for the given topic.
*POST /topics/{id}/comments
Creates a comment under the given topic.
*GET /topics/{topicId}/comments/{id}
Retrieves the details of a specified comment under the given topic.
*PUT /topics/{topicId}/comments/{id}
Updates the specified comment under the given topic.
*DELETE /topics/{topicId}/comments/{id}
Deletes the specified comment under the given topic.
*PUT /topics/{topicId}/comments/{id}/upvote
Upvotes the specified comment under the given topic.
*PUT /topics/{topicId}/comments/{id}/downvote
Downvotes the specified comment under the given topic.
*PUT /topics/{topicId}/comments/{id}/flag
Adds a flag to the specified comment under the given topic.
Sample cURL Command
curl --location --request
GET 'developer_portal_rest_base/topics/topic_Id/comments' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic basic_auth' \
The comment.yaml file is located at SAGInstallDir\DeveloperPortal\developers\openapis.