GET
/
posts
/
{id}

Path Parameters

id
string
required

The ID of the post to retrieve

Response

200 - application/json
_id
string

The ID of the post

title
string

Title of the post

content
string

Content of the post

authorDetails
object

Details of the post author

createdAt
string

Date and time when the post was created

hearts
string[]

List of users who liked the post

comments
object[]

List of comments on the post

image
string

URL of the post's image