Community Service
HomeCommunity Service
Api Reference
  • User Activity
  • Comment
  • Comment V2
  • Post
Changelog Release
HomeCommunity Service
Api Reference
  • User Activity
  • Comment
  • Comment V2
  • Post
Changelog Release
  1. Post Api
  • Introduction
  • Changelog Release
  • Local Development
  • UserActivity Api
    • Get User Comment
      GET
    • Get User Posts
      GET
    • Get User Activity Info
      GET
  • Comment Api
    • LikeUnlikeComment
      POST
    • CommentPost
      POST
    • UpdateComment
      POST
    • DeleteComment
      DELETE
    • Get Comment by Post Id
      GET
    • Get Reply Comment by Post Id and Post Id
      GET
  • CommentV2 Api
    • CommentPost
      POST
  • Post Api
    • GetAllPost
      GET
    • CreatePost
      POST
    • HidePost
      GET
    • GetAllLikedPosts
      GET
    • LikeUnlikePost
      POST
    • ReportPost
      POST
    • SearchPosts
      GET
    • SharePost
      GET
    • UpdatePost
      POST
    • GetAllPostV2
      GET
    • VotePost
      POST
    • GetPost
      GET
    • DeletePost
      DELETE
    • GetRelatedPost
      GET
  1. Post Api

GetRelatedPost

GET
/post/{id}/related
Post Api
Get Related Post Process SECTION Response is will be ("RELATED_POST","POPULAR_DISCUSSION")

Request

Path Params
id
string 
required
Post ID
Header Params
Authorization
string 
required
Insert your access token

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 '/post//related' \
--header 'Authorization;'

Responses

🟢200OK
application/json
Body
code
string 
optional
data
object 
dto.RelatedPostResponse
optional
posts
array[object (dto.PostResponse) {18}] 
optional
section
string 
optional
message
object 
optional
Example
{
    "code": "string",
    "data": {
        "posts": [
            {
                "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"
            }
        ],
        "section": "string"
    },
    "message": {}
}
Modified at 2023-01-25 05:57:12
Previous
DeletePost
Built with