v1

latestOpenAPI 3.0.12026-07-1715846.6 KB
Posts

Publish post

Publishes a draft post.

post/api/v1/posts/{id}/publish

Path parameters

idinteger required

Response

Post published successfully

statusboolean
messagestring

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
  }
}