Manage Blogs

Get blog category list

get
/blog-category

Retrieves a list of blog categories.

Responses
200

Successfully retrieved the blog category list.

get
/blog-category

Create a new blog category

post
/blog-category

Creates a new blog category with the provided details.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
namestringRequiredExample: test
Responses
post
/blog-category

Get blog list

get
/blog

Retrieves a list of blogs based on the provided filters.

Query parameters
limitintegerOptional

The maximum number of blogs to return.

Default: 10
offsetintegerOptional

The number of blogs to skip before starting to collect the result set.

Default: 0
countintegerOptional

A flag to indicate whether to return the count of blogs.

Default: 0
Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200

Successfully retrieved the blog list.

get
/blog

Create a new blog

post
/blog

Creates a new blog entry with the provided details.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
titlestringRequiredExample: test
categoryIdintegerRequiredExample: 2
descriptionstringRequiredExample: <p>test</p>
imagestringRequired
relatedBlogIdinteger[]OptionalExample: 9
blogSlugstringRequiredExample: test
metaTitlestringOptional
metaContentstringOptional
metaKeywordstringOptional
Responses
post
/blog

Update a blog

put
/blog/{blogId}

Updates the blog entry identified by the given ID.

Path parameters
blogIdintegerRequired

The ID of the blog to update.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
titlestringRequiredExample: test
categoryIdintegerRequiredExample: 2
descriptionstringRequiredExample: <p>test</p>
imagestringOptional
statusintegerOptionalExample: 1
relatedBlogIdinteger[]OptionalExample: 9
blogSlugstringRequiredExample: test
blogIdstringRequiredExample: 52
Responses
200

Successfully updated the blog.

put
/blog/{blogId}

Delete a blog

delete
/blog/{blogId}

Deletes the blog entry identified by the given ID.

Path parameters
blogIdintegerRequired

The ID of the blog to delete.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200

Successfully deleted the blog.

delete
/blog/{blogId}

Get blog translation details

get
/blog-translation/blog/{blogId}

Retrieves the translation details of a specific blog by its ID.

Path parameters
blogIdintegerRequired

The ID of the blog to retrieve translation details for.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200

Successfully retrieved the blog translation details.

get
/blog-translation/blog/{blogId}

Create blog translations

post
/blog-translation/blog/{blogId}

Creates translations for the blog identified by the given ID.

Path parameters
blogIdintegerRequired

The ID of the blog to create translations for.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
Responses
post
/blog-translation/blog/{blogId}

Get blog category detail

get
/blog-category/blog-category-detail

Retrieves the details of a specific blog category by its ID.

Query parameters
blogCategoryIdintegerRequired

The ID of the blog category to retrieve details for.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200

Successfully retrieved the blog category detail.

get
/blog-category/blog-category-detail

Update blog category status

put
/blog-category/update-blog-category-status/{blogCategoryId}

Updates the status of the blog category identified by the given ID.

Path parameters
blogCategoryIdintegerRequired

The ID of the blog category to update.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
blogCategoryIdintegerRequiredExample: 19
statusintegerRequiredExample: 1
Responses
200

Successfully updated blog category status.

put
/blog-category/update-blog-category-status/{blogCategoryId}

Update a blog category

put
/blog-category/{blogCategoryId}

Updates the blog category identified by the given ID.

Path parameters
blogCategoryIdintegerRequired

The ID of the blog category to update.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
namestringRequiredExample: new categories
blogCategoryIdintegerRequiredExample: 14
Responses
200

Successfully updated the blog category.

put
/blog-category/{blogCategoryId}

Last updated