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
GET /backend/api/blog-category HTTP/1.1
Host: 139.59.67.17
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got the blog category list.</message>
</object>

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
201

Successfully created new category.

post
/blog-category
POST /backend/api/blog-category HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 15

"name='test'"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully created new category.</message>
</object>

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
GET /backend/api/blog HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got blog list.</message>
</object>

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
201

Successfully created a new blog.

post
/blog
POST /backend/api/blog HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 157

"title='test'&categoryId=2&description='<p>test</p>'&image=''&relatedBlogId=[9]&blogSlug='test'&metaTitle=''&metaContent=''&metaKeyword=''"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully created new blog.</message>
</object>

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}
PUT /backend/api/blog/{blogId} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 133

"title='test'&categoryId=2&description='<p>test</p>'&image=''&status=1&relatedBlogId=[9]&blogSlug='test'&blogId='52'"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully updated blog.</message>
</object>

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}
DELETE /backend/api/blog/{blogId} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully deleted Blog</message>
</object>

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}
GET /backend/api/blog-translation/blog/{blogId} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got blog translation detail.</message>
</object>

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
201

Successfully created new blog translation.

post
/blog-translation/blog/{blogId}
POST /backend/api/blog-translation/blog/{blogId} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 82

"blogTranslation=[{'languageId':57,'title':'test','description':'<p>test</p>'}]"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully created new blog translation.</message>
</object>

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
GET /backend/api/blog-category/blog-category-detail?blogCategoryId=1 HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got blog category detail.</message>
</object>

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}
PUT /backend/api/blog-category/update-blog-category-status/{blogCategoryId} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 32

"blogCategoryId=19&status=1"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully updated blog category status.</message>
</object>

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}
PUT /backend/api/blog-category/{blogCategoryId} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 45

"name='new categories'&blogCategoryId=14"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully updated category.</message>
</object>

Last updated