OpenIsle Docs
ApiMessagesConversationsConversationid

Get conversation

Get messages of a conversation

GET
/api/messages/conversations/{conversationId}
AuthorizationBearer <token>

In: header

Path Parameters

conversationIdinteger
Formatint64

Query Parameters

page?integer
Default0
Formatint32
size?integer
Default20
Formatint32

Response Body

curl -X GET "https://www.open-isle.com/api/messages/conversations/0?page=0&size=20"
{
  "id": 0,
  "name": "string",
  "channel": true,
  "avatar": "string",
  "participants": [
    {
      "id": 0,
      "username": "string",
      "avatar": "string"
    }
  ],
  "messages": {
    "totalElements": 0,
    "totalPages": 0,
    "pageable": {
      "pageNumber": 0,
      "pageSize": 0,
      "offset": 0,
      "sort": {
        "sorted": true,
        "empty": true,
        "unsorted": true
      },
      "paged": true,
      "unpaged": true
    },
    "size": 0,
    "content": [
      {
        "id": 0,
        "content": "string",
        "sender": {
          "id": 0,
          "username": "string",
          "avatar": "string"
        },
        "conversationId": 0,
        "createdAt": "2019-08-24T14:15:22Z",
        "replyTo": {
          "id": 0,
          "content": "string",
          "sender": {
            "id": 0,
            "username": "string",
            "avatar": "string"
          },
          "conversationId": 0,
          "createdAt": "2019-08-24T14:15:22Z",
          "replyTo": {},
          "reactions": [
            {
              "id": 0,
              "type": "LIKE",
              "user": "string",
              "postId": 0,
              "commentId": 0,
              "messageId": 0,
              "reward": 0
            }
          ]
        },
        "reactions": [
          {
            "id": 0,
            "type": "LIKE",
            "user": "string",
            "postId": 0,
            "commentId": 0,
            "messageId": 0,
            "reward": 0
          }
        ]
      }
    ],
    "number": 0,
    "sort": {
      "sorted": true,
      "empty": true,
      "unsorted": true
    },
    "first": true,
    "last": true,
    "numberOfElements": 0,
    "empty": true
  }
}