Post by Slug

Get post by Slug

POST
/posts/slug

Get post by Slug

Request Body

Post by Slug request body

application/json
  1. body
slug*string
userId?string
Formatuuid

Response Body

OK

application/json
  1. response
post?
Example Request
curl -X POST 'http://localhost:8000/api/v1/posts/slug' \  -H 'Content-Type: application/json' \  -d '{  "slug": "string"}'
Example Response
{  "post": {    "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"      }    },    "slugId": "string"  }}