LE-KO Feed Comments (v1.0.3)

Download OpenAPI specification:

LE-KO Feed Comments

comments

Feed Comments

.../comments

✨ Comments of specific Post.

Authorizations:
bearerHttpAuthentication
path Parameters
userId
required
string <uuid> (UserId)
Example: 00000000-0000-1000-9000-55f01dda9dd0

User ID

postId
required
string <uuid> (PostId)
Example: 00000000-0000-1000-9000-510d9bb07630

Post ID

query Parameters
page
integer (PageNumber) >= 0
Default: 0
Example: page=0

Page number

limit
integer (PageLimit) [ 1 .. 100 ]
Default: 10
Example: limit=10

Page limit

header Parameters
x-current-user-id
required
string <uuid> (UserId)
Example: 00000000-0000-1000-9000-55f01dda9dd0

User ID

traceparent
string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-...
Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01

W3C Trace Context traceparent header for request tracing

Responses

Response Schema: application/json
Array of objects
Array
commentId
required
string <uuid> (CommentId)

Comment ID

postId
required
string <uuid> (PostId)

Post ID

commenterUserId
required
string <uuid> (UserId)

User ID

text
required
string <text> (CommentText) [ 1 .. 2000 ] characters

Comment text

likeCount
required
integer
likedByUser
required
boolean
edited
required
boolean
createdAt
required
string <date-time> (DateTime)

Date and time in RFC-3339

updatedAt
required
string <date-time> (DateTime)

Date and time in RFC-3339

Array of objects (CommentMention)
count
required
integer (Count)

Page entries count

currentPage
integer (CurrentPage) >= 0
Deprecated
Default: 0

Current page

page
required
integer (PageNumber) >= 0
Default: 0

Page number

pageSize
integer (PageSize) [ 1 .. 100 ]
Deprecated
Default: 10

Page size

limit
required
integer (PageLimit) [ 1 .. 100 ]
Default: 10

Page limit

total
required
integer (TotalCount) >= 0
Default: 0

Total count

Response samples

Content type
application/json
{
  • "data": [
    • {
      • "commentId": "00000000-0000-1000-9000-510d9bb07630",
      • "postId": "00000000-0000-1000-9000-510d9bb07630",
      • "commenterUserId": "00000000-0000-1000-9000-55f01dda9dd0",
      • "text": "ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n",
      • "likeCount": 0,
      • "likedByUser": true,
      • "edited": true,
      • "createdAt": "2024-11-29T12:09:53+00:00",
      • "updatedAt": "2024-11-29T12:09:53+00:00",
      • "mentions": [
        ]
      }
    ],
  • "count": 10,
  • "currentPage": 0,
  • "page": 0,
  • "pageSize": 10,
  • "limit": 10,
  • "total": 1000
}

.../comments

✨ Create new Post Comment.

Authorizations:
bearerHttpAuthentication
path Parameters
userId
required
string <uuid> (UserId)
Example: 00000000-0000-1000-9000-55f01dda9dd0

User ID

postId
required
string <uuid> (PostId)
Example: 00000000-0000-1000-9000-510d9bb07630

Post ID

header Parameters
x-current-user-id
required
string <uuid> (UserId)
Example: 00000000-0000-1000-9000-55f01dda9dd0

User ID

traceparent
string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-...
Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01

W3C Trace Context traceparent header for request tracing

Request Body schema: application/json
required
commenterUserId
required
string <uuid> (UserId)

User ID

text
required
string <text> (CommentText) [ 1 .. 2000 ] characters

Comment text

Array of objects (CommentMention)
Array
mentionedUserId
required
string <uuid>
mentionText
required
string

Responses

Response Schema: application/json
commentId
required
string <uuid> (CommentId)

Comment ID

postId
required
string <uuid> (PostId)

Post ID

commenterUserId
required
string <uuid> (UserId)

User ID

text
required
string <text> (CommentText) [ 1 .. 2000 ] characters

Comment text

likeCount
required
integer
likedByUser
required
boolean
edited
required
boolean
createdAt
required
string <date-time> (DateTime)

Date and time in RFC-3339

updatedAt
required
string <date-time> (DateTime)

Date and time in RFC-3339

Array of objects (CommentMention)
Array
mentionedUserId
required
string <uuid>
mentionText
required
string

Request samples

Content type
application/json
{
  • "commenterUserId": "00000000-0000-1000-9000-55f01dda9dd0",
  • "text": "ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n",
  • "mentions": [
    • {
      • "mentionedUserId": "140e25be-3b54-4b10-8614-005ab1b61fc6",
      • "mentionText": "string"
      }
    ]
}

Response samples

Content type
application/json
{
  • "commentId": "00000000-0000-1000-9000-510d9bb07630",
  • "postId": "00000000-0000-1000-9000-510d9bb07630",
  • "commenterUserId": "00000000-0000-1000-9000-55f01dda9dd0",
  • "text": "ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n",
  • "likeCount": 0,
  • "likedByUser": true,
  • "edited": true,
  • "createdAt": "2024-11-29T12:09:53+00:00",
  • "updatedAt": "2024-11-29T12:09:53+00:00",
  • "mentions": [
    • {
      • "mentionedUserId": "140e25be-3b54-4b10-8614-005ab1b61fc6",
      • "mentionText": "string"
      }
    ]
}

.../comments/{id}

✨ Get Post Comment.

Authorizations:
bearerHttpAuthentication
path Parameters
userId
required
string <uuid> (UserId)
Example: 00000000-0000-1000-9000-55f01dda9dd0

User ID

postId
required
string <uuid> (PostId)
Example: 00000000-0000-1000-9000-510d9bb07630

Post ID

commentId
required
string <uuid> (CommentId)
Example: 00000000-0000-1000-9000-510d9bb07630

Comment ID

header Parameters
x-current-user-id
required
string <uuid> (UserId)
Example: 00000000-0000-1000-9000-55f01dda9dd0

User ID

traceparent
string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-...
Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01

W3C Trace Context traceparent header for request tracing

Responses

Response Schema: application/json
commentId
required
string <uuid> (CommentId)

Comment ID

postId
required
string <uuid> (PostId)

Post ID

commenterUserId
required
string <uuid> (UserId)

User ID

text
required
string <text> (CommentText) [ 1 .. 2000 ] characters

Comment text

likeCount
required
integer
likedByUser
required
boolean
edited
required
boolean
createdAt
required
string <date-time> (DateTime)

Date and time in RFC-3339

updatedAt
required
string <date-time> (DateTime)

Date and time in RFC-3339

Array of objects (CommentMention)
Array
mentionedUserId
required
string <uuid>
mentionText
required
string

Response samples

Content type
application/json
{
  • "commentId": "00000000-0000-1000-9000-510d9bb07630",
  • "postId": "00000000-0000-1000-9000-510d9bb07630",
  • "commenterUserId": "00000000-0000-1000-9000-55f01dda9dd0",
  • "text": "ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n",
  • "likeCount": 0,
  • "likedByUser": true,
  • "edited": true,
  • "createdAt": "2024-11-29T12:09:53+00:00",
  • "updatedAt": "2024-11-29T12:09:53+00:00",
  • "mentions": [
    • {
      • "mentionedUserId": "140e25be-3b54-4b10-8614-005ab1b61fc6",
      • "mentionText": "string"
      }
    ]
}

.../comments/{id}

✨ Update Post Comment

Authorizations:
bearerHttpAuthentication
path Parameters
userId
required
string <uuid> (UserId)
Example: 00000000-0000-1000-9000-55f01dda9dd0

User ID

postId
required
string <uuid> (PostId)
Example: 00000000-0000-1000-9000-510d9bb07630

Post ID

commentId
required
string <uuid> (CommentId)
Example: 00000000-0000-1000-9000-510d9bb07630

Comment ID

header Parameters
x-current-user-id
required
string <uuid> (UserId)
Example: 00000000-0000-1000-9000-55f01dda9dd0

User ID

traceparent
string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-...
Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01

W3C Trace Context traceparent header for request tracing

Request Body schema: application/json
required
commenterUserId
required
string <uuid> (UserId)

User ID

text
required
string <text> (CommentText) [ 1 .. 2000 ] characters

Comment text

Responses

Response Schema: application/json
commentId
required
string <uuid> (CommentId)

Comment ID

postId
required
string <uuid> (PostId)

Post ID

commenterUserId
required
string <uuid> (UserId)

User ID

text
required
string <text> (CommentText) [ 1 .. 2000 ] characters

Comment text

likeCount
required
integer
likedByUser
required
boolean
edited
required
boolean
createdAt
required
string <date-time> (DateTime)

Date and time in RFC-3339

updatedAt
required
string <date-time> (DateTime)

Date and time in RFC-3339

Array of objects (CommentMention)
Array
mentionedUserId
required
string <uuid>
mentionText
required
string

Request samples

Content type
application/json
{
  • "commenterUserId": "00000000-0000-1000-9000-55f01dda9dd0",
  • "text": "ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n"
}

Response samples

Content type
application/json
{
  • "commentId": "00000000-0000-1000-9000-510d9bb07630",
  • "postId": "00000000-0000-1000-9000-510d9bb07630",
  • "commenterUserId": "00000000-0000-1000-9000-55f01dda9dd0",
  • "text": "ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n",
  • "likeCount": 0,
  • "likedByUser": true,
  • "edited": true,
  • "createdAt": "2024-11-29T12:09:53+00:00",
  • "updatedAt": "2024-11-29T12:09:53+00:00",
  • "mentions": [
    • {
      • "mentionedUserId": "140e25be-3b54-4b10-8614-005ab1b61fc6",
      • "mentionText": "string"
      }
    ]
}

.../comments/{id}

✨ Delete Post Comment.

Authorizations:
bearerHttpAuthentication
path Parameters
userId
required
string <uuid> (UserId)
Example: 00000000-0000-1000-9000-55f01dda9dd0

User ID

postId
required
string <uuid> (PostId)
Example: 00000000-0000-1000-9000-510d9bb07630

Post ID

commentId
required
string <uuid> (CommentId)
Example: 00000000-0000-1000-9000-510d9bb07630

Comment ID

header Parameters
x-current-user-id
required
string <uuid> (UserId)
Example: 00000000-0000-1000-9000-55f01dda9dd0

User ID

traceparent
string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-...
Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01

W3C Trace Context traceparent header for request tracing

Responses

Response Schema: application/json
commentId
string <uuid> (CommentId)

Comment ID

Response samples

Content type
application/json
{
  • "commentId": "00000000-0000-1000-9000-510d9bb07630"
}

.../comments/{id}/likes

✨ Get Comment Likes

Authorizations:
bearerHttpAuthentication
path Parameters
userId
required
string <uuid> (UserId)
Example: 00000000-0000-1000-9000-55f01dda9dd0

User ID

postId
required
string <uuid> (PostId)
Example: 00000000-0000-1000-9000-510d9bb07630

Post ID

commentId
required
string <uuid> (CommentId)
Example: 00000000-0000-1000-9000-510d9bb07630

Comment ID

query Parameters
page
integer (PageNumber) >= 0
Default: 0
Example: page=0

Page number

limit
integer (PageLimit) [ 1 .. 100 ]
Default: 10
Example: limit=10

Page limit

header Parameters
x-current-user-id
required
string <uuid> (UserId)
Example: 00000000-0000-1000-9000-55f01dda9dd0

User ID

traceparent
string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-...
Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01

W3C Trace Context traceparent header for request tracing

Responses

Response Schema: application/json
Array of objects
Array
likeId
string <uuid> (LikeId)

Like ID

postId
required
string <uuid> (PostId)

Post ID

commentId
string <uuid> (CommentId)

Comment ID

likeUserId
required
string <uuid> (LikeUserId)

Like User ID

isLiked
required
boolean
createdAt
string <date-time> (DateTime)

Date and time in RFC-3339

count
required
integer (Count)

Page entries count

currentPage
integer (CurrentPage) >= 0
Deprecated
Default: 0

Current page

page
required
integer (PageNumber) >= 0
Default: 0

Page number

pageSize
integer (PageSize) [ 1 .. 100 ]
Deprecated
Default: 10

Page size

limit
required
integer (PageLimit) [ 1 .. 100 ]
Default: 10

Page limit

total
required
integer (TotalCount) >= 0
Default: 0

Total count

Response samples

Content type
application/json
{
  • "data": [
    • {
      • "likeId": "00000000-0000-1000-9000-510d9bb07630",
      • "postId": "00000000-0000-1000-9000-510d9bb07630",
      • "commentId": "00000000-0000-1000-9000-510d9bb07630",
      • "likeUserId": "00000000-0000-1000-9000-510d9bb07630",
      • "isLiked": true,
      • "createdAt": "2024-11-29T12:09:53+00:00"
      }
    ],
  • "count": 10,
  • "currentPage": 0,
  • "page": 0,
  • "pageSize": 10,
  • "limit": 10,
  • "total": 1000
}

.../comments/{id}/like

✨ Comment like toggling

Authorizations:
bearerHttpAuthentication
path Parameters
userId
required
string <uuid> (UserId)
Example: 00000000-0000-1000-9000-55f01dda9dd0

User ID

postId
required
string <uuid> (PostId)
Example: 00000000-0000-1000-9000-510d9bb07630

Post ID

commentId
required
string <uuid> (CommentId)
Example: 00000000-0000-1000-9000-510d9bb07630

Comment ID

header Parameters
x-current-user-id
required
string <uuid> (UserId)
Example: 00000000-0000-1000-9000-55f01dda9dd0

User ID

traceparent
string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-...
Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01

W3C Trace Context traceparent header for request tracing

Responses

Response Schema: application/json
likeId
string <uuid> (LikeId)

Like ID

postId
required
string <uuid> (PostId)

Post ID

commentId
string <uuid> (CommentId)

Comment ID

likeUserId
required
string <uuid> (LikeUserId)

Like User ID

isLiked
required
boolean
createdAt
string <date-time> (DateTime)

Date and time in RFC-3339

Response samples

Content type
application/json
{
  • "likeId": "00000000-0000-1000-9000-510d9bb07630",
  • "postId": "00000000-0000-1000-9000-510d9bb07630",
  • "commentId": "00000000-0000-1000-9000-510d9bb07630",
  • "likeUserId": "00000000-0000-1000-9000-510d9bb07630",
  • "isLiked": true,
  • "createdAt": "2024-11-29T12:09:53+00:00"
}

Report a comment

✨ Submit a report for inappropriate or problematic comment content

Authorizations:
bearerHttpAuthentication
path Parameters
commentId
required
string <uuid> (CommentId)
Example: 00000000-0000-1000-9000-510d9bb07630

Comment ID

header Parameters
x-current-user-id
required
string <uuid> (UserId)
Example: 00000000-0000-1000-9000-55f01dda9dd0

User ID

traceparent
string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-...
Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01

W3C Trace Context traceparent header for request tracing

Request Body schema: application/json
description
string or null <= 1000 characters

Optional text description explaining why this content is being reported

Responses

Request samples

Content type
application/json
{
  • "description": "string"
}

Response samples

Content type
application/json
{
  • "errors": [
    • {
      • "code": "validation",
      • "message": "string",
      • "endpoint": "string",
      • "requestId": "string"
      }
    ]
}