List all posts
Get all the posts
POST
Get all the posts
Filter post request body
application/json- body
userId?stringDeprecatedFormat
uuidboardId?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?stringFormat
uuidpage*numberPage number of the results to fetch.
limit?number"Number of posts to return in a single request. Default is 10."
created*stringSort posts by creation date in 'asc' or 'desc' order.
OK
application/json- response
posts?array<>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" } } } ]}