TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/pvnm4/Social-Media-Backend/llms.txt
Use this file to discover all available pages before exploring further.
GET /posts/{id} endpoint retrieves a single post by its unique numeric ID. The response includes the full post record along with the aggregated vote count and the owner’s details. A valid JWT Bearer token must be supplied with every request.
Endpoint
Authorization header.
Path Parameters
The unique numeric identifier of the post to retrieve.
Response
HTTP 200 OK — Returns a singlePostOut object.
The full post record.
Total number of votes this post has received.
Error Responses
| Status Code | Description |
|---|---|
401 Unauthorized | No token was provided or the token is invalid/expired. |
404 Not Found | No post with the specified id exists. |