- Introduction
- Changelog Release
- Local Development
- UserActivity Api
- Comment Api
- CommentV2 Api
- Post Api
Get User Posts
GET
/activity/posts
UserActivity Api
Request
Query Params
sort
string
optional
Header Params
Authorization
string
required
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/activity/posts' \
--header 'Authorization;'
Responses
🟢200OK
application/json
Body
allOf {2}
optional
object (dto.Response)
optional
code
string
optional
data
object
optional
message
object
optional
object
optional
data
array[object (dto.PostResponse) {18}]
optional
Example
{
"code": "string",
"data": [
{
"author": {
"fullName": "string",
"id": "string",
"urlImage": "string",
"userId": "string"
},
"category": "string",
"choices": [
{
"choice": "string",
"id": "string",
"votes": 0
}
],
"content": "string",
"createdAt": "string",
"id": "string",
"images": [
"string"
],
"isFavorite": true,
"isOwnPost": true,
"isVoted": true,
"selectedVote": "string",
"title": "string",
"totalComment": 0,
"totalLike": 0,
"totalShare": 0,
"totalVote": 0,
"type": "string",
"updatedAt": "string"
}
],
"message": {}
}
Modified at 2023-01-25 05:57:12