List all posts

Get all the posts

POST
/posts/get

Get all the posts

Request Body

Filter post request body

application/json
  1. body
userId?stringDeprecated
Formatuuid
boardId?array<>

Posts will be searched from the list of provided board IDs. If a value is not provided, it defaults to empty array and posts are searched from all the boards.

roadmapId?string
Formatuuid
page*number

Page number of the results to fetch.

limit?number

"Number of posts to return in a single request. Default is 10."

created*string

Sort posts by creation date in 'asc' or 'desc' order.

Response Body

OK

application/json
  1. response
posts?array<>
Example Request
curl -X POST 'http://localhost:8000/api/v1/posts/get' \  -H 'Content-Type: application/json' \  -d '{  "page": 0,  "created": "string"}'
Example Response
{  "posts": [    {      "postId": "string",      "title": "string",      "slug": "string",      "contentMarkdown": "string",      "createdAt": "string",      "updatedAt": "string",      "board": {        "boardId": "a654038e-9287-48a2-acfd-90b8cfa8b1f4",        "name": "string",        "color": "string",        "url": "string",        "createdAt": "string"      },      "author": {        "userId": "string",        "name": "string",        "avatar": "string",        "username": "string"      },      "roadmap": {        "id": {},        "name": {},        "url": {},        "color": {}      },      "voters": {        "votes": [          {            "voteId": "string",            "userId": "string",            "postId": "string",            "createdAt": "string",            "name": "string",            "username": "string",            "avatar": "string"          }        ],        "votesCount": 0,        "viewerVote": {          "voteId": "string",          "userId": "string",          "postId": "string",          "createdAt": "string"        }      }    }  ]}