v1
latestOpenAPI 3.0.12026-07-1715846.6 KBPosts
Get post by ID
Retrieves a specific post by its ID.
get/api/v1/posts/{id}
Path parameters
idinteger required
Response
Post retrieved successfully
Example response
{
"status": true,
"message": "Post retrieved successfully",
"data": {
"id": 1,
"title": "Getting Started with Go",
"slug": "getting-started-with-go",
"content": "# Introduction\n\nThis is a blog post...",
"summary": "Learn the basics of Go programming",
"thumbnail": "https://example.com/image.jpg",
"category_id": 1,
"sub_category_id": 2,
"keywords": "go,programming,tutorial",
"status": "published",
"is_public": true,
"created_by": 1,
"view_count": 100,
"version": 1
}
}