Comments

Get All

Get all comments.

get/public/api/comments?filter={filter}

Query parameters

filterstring

A valid JSON filter object

Headers

Acceptstring

e.g. application/json

Request body

Example request

{
  "Authorization": {
    "Authorization": "Bearer JWT"
  }
}

Response

OK

Example response

{
  "paging": {
    "total": 2,
    "skip": 0,
    "limit": 1000
  },
  "data": [
    {
      "comment_id": "5d31ecba11e695003a9b1dfc",
      "user_id": "5beee5197fc4d50043801bd1",
      "news_id": "5d31b71a1a76e9003afd621e",
      "date": "2019-07-19T16:15:54.554Z",
      "text": "Hello",
      "text_en": "Hello",
      "language": "en",
      "_lmt": "2019-07-19T16:15:54.610Z",
      "_ect": "2019-07-19T16:15:54.610Z",
      "tenant": "testproductv6_boost",
      "created_date": "2019-07-19T16:15:54.610Z",
      "updated_date": "2019-07-19T16:15:54.610Z"
    },
    {
      "comment_id": "5d31ecba11e695003a9b1dfc",
      "user_id": "5beee5197fc4d50043801bd1",
      "news_id": "5d31b71a1a76e9003afd621e",
      "date": "2019-07-19T16:15:54.554Z",
      "text": "La vie est belle!",
      "text_en": "Life is beautiful!",
      "sentiment": 0.9,
      "language": "fr",
      "_lmt": "2019-07-19T16:15:54.610Z",
      "_ect": "2019-07-19T16:15:54.610Z",
      "tenant": "tenant name",
      "created_date": "2019-07-19T16:15:54.610Z",
      "updated_date": "2019-07-19T16:15:54.610Z"
    }
  ]
}

Changes