Unique identifier for the post
Get Post by ID
Retrieve a single blog post by its ID
GET
/posts/{id}Overview
Retrieves detailed information about a specific blog post.
Path Parameters
Path Parameters
id requiredThe unique identifier of the post to retrieve
Response
id integeruserId integerID of the user who created the post
title stringTitle of the post
body stringFull content of the post
Example Response
{ "userId": 1, "id": 1, "title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit", "body": "quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto"}Related Endpoints
Error Responses
| Status | Description |
|---|---|
404 | Post not found - the specified ID does not exist |
Try it out
GET
/posts/{id}