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

SearchPosts

GET
/post/search/{term}
Post Api
Search Posts Process

Request

Path Params
term
string 
required
Search Term
Query Params
sort
string 
optional
Define and get sorting field
page
string 
optional
Define and get Page for pagination
size
string 
optional
Define and get Size for pagination
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/search/' \
--header 'Authorization;'

Responses

🟢200OK
application/json
Body
hits
array[object (service.HitPost) {21}] 
optional
author
object (dto.AuthorResponse) 
optional
category
string 
optional
choices
array[object (dto.PollResponse) {3}] 
optional
content
string 
optional
createdAt
string 
optional
highlights
object 
optional
id
string 
optional
images
array[string]
optional
isFavorite
boolean 
optional
isOwnPost
boolean 
optional
isVoted
boolean 
optional
selectedVote
string 
optional
sort
array [object] 
optional
title
string 
optional
totalComment
integer 
optional
totalLike
integer 
optional
totalShare
integer 
optional
totalVote
integer 
optional
type
string 
optional
updatedAt
string 
optional
url
string 
optional
total
integer 
optional
Example
{
    "hits": [
        {
            "author": {
                "fullName": "string",
                "id": "string",
                "urlImage": "string",
                "userId": "string"
            },
            "category": "string",
            "choices": [
                {
                    "choice": "string",
                    "id": "string",
                    "votes": 0
                }
            ],
            "content": "string",
            "createdAt": "string",
            "highlights": {
                "category": [
                    "string"
                ],
                "content": [
                    "string"
                ],
                "title": [
                    "string"
                ]
            },
            "id": "string",
            "images": [
                "string"
            ],
            "isFavorite": true,
            "isOwnPost": true,
            "isVoted": true,
            "selectedVote": "string",
            "sort": [
                {}
            ],
            "title": "string",
            "totalComment": 0,
            "totalLike": 0,
            "totalShare": 0,
            "totalVote": 0,
            "type": "string",
            "updatedAt": "string",
            "url": "string"
        }
    ],
    "total": 0
}
Modified at 2023-01-25 05:57:12
Previous
ReportPost
Next
SharePost
Built with