Get comments for userId
GET/comments/by/user/:userId
Get comments for userId
Request
Path Parameters
Query Parameters
Search for comments by content
Search by start date
Search by end date
Possible values: >= 1
Default value: 1
Specify the page number for pagination (default is 1).
Default value: 10
Specify the number of projects per page (default is 10, 0 gets all results).
Possible values: [createdAt
, content
]
Field to order the results by (e.g., 'createdAt', 'numMonthlyUsers'). Default is 'createdAt'.
Possible values: [asc
, desc
]
Default value: desc
'asc' for ascending or 'desc' for descending order. Default is 'desc'.
Responses
- 200
- 404
- default
Comments retrieved
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
Time representation of entity creation
Possible values: [public
, hidden
, flagged
, studioApproved
, studioRejected
]
Unique identifier for Comment
Unique identifier for Project
[
{
"createdAt": "2024-01-01T09:00:00.00Z",
"body": "string",
"state": "public",
"owner": "string",
"id": "cCX5ZZHMk",
"submissionId": "S14dqdbbnC"
}
]
[
{
"state": "public",
"body": "This is a comment",
"submissionId": "6c3f1178-3x45-3ec4-bac3-205026484a7e",
"id": "35c4407b-6bca-4178-ac77-6dd7889fv703",
"createdAt": "2021-07-08T20:15:00.000Z",
"ownerId": "5d4f3111-4x21-4e3c-bac3-452164484b9c"
}
]
NotFound
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "A mandatory item was not found"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "An unexpected error occured"
}