v1

latestOpenAPI 3.0.3Apache 2.02026-07-1710047196.1 KB
blogs

create a blog post by a superadmin

post/blogs

Request body

titlestring
contentstring
categorystring
image_urlstring

Example request

{
  "title": "New Blog Post",
  "content": "This is the content of the new blog post",
  "category": "Tech",
  "image_url": "http://image.com"
}

Response

Blog post created successfully

statusstring
status_codeinteger
messagestring

Example response

{
  "status": "success",
  "status_code": 201,
  "message": "Blog post created successfully.",
  "data": {
    "title": "New Blog Post",
    "content": "This is the content of the new blog post",
    "image_url": "http://image.com",
    "category": "Tech"
  }
}