Skip to main content

Comment

Prerequisites #

  • To use the Social Feed API, you must first authenticate yourself and receive a token enables you to access the service. See the Authentication documentation for more information on how to do this.
  • Comment endpoints need a commentId as path parameter. Comment belongs to post so check the Post and get commentId. See the Post documentation for more information on how to do this.

Requests #

Comment resource provides the following endpoints:

PathHTTP MethodDescription
v1/comments/{commentId}GETView a specified comment

See the API documentation documentation for more information on these endpoints

Example Request #

The following example curl command demonstrates how to get a specified comment.

In a Linux/Unix/macOS environment:

curl -i "https://sf-dev.microservice.bankify.io/v1/comments/<commentId>"
-H "Authorization: Bearer <access_token>"

In Windows PowerShell:

curl https://sf-dev.microservice.bankify.io/v1/comments/<commentId>

Responses #

  • If successful, the operation responds with HTTP status code 2XX.
  • If the operation fails, it returns the appropriate status code and (optionally) the error description in the response body.
    • If the specified comment does not belong to the authenticating user organization, the operation returns the Access is denied error.
    • If the authenticating user or the specified comment does not exist, the operation returns the Not found error.
    • If the Authorization header is not present or invalid, a 401 error code will be returned.