Weblutions Documentation
Weblutions Main Site Contact Us Our Discord
Some pages are still pending proper formatting, if required refer to the legacy documentation website.
FaxStore IconFaxStore

Blog

By Josh M. 1 min 0

The Blog API for FaxStore facilitates the management of blog content, including creating, deleting, updating, and retrieving blog posts. This API streamlines the process of maintaining and publishing content on your site.

GET /api/blogs

Returns all created blog posts

Parameters:

authorization[Header] A valid API token

Response: [Expand]

GET /api/blog/:id

Returns the blog associated with the ID provided

Parameters:

authorization[Header] A valid API token
id[URL] The blog ID

Response: [Expand]

POST /api/blog

Creates a blog post

Parameters:

authorization[Header] A valid API token
id[URL] The blog ID
userId[Body] Required, the account ID of the author
username[Body] Required, the display name of the author
title[Body] Required, the blog post title
url[Body] Required, the URL path for the blog post
catId[Body] Optional, the category ID to place the blog post within
content[Body] The content markdown supported for the blog post
image[Body] Optional, link to an image, this is for the banner

Response: [Expand]

DELETE /api/blog/:id

Deletes the blog associated with the given ID

Parameters:

authorization[Header] A valid API token
id[URL] The blog ID

Response: [Expand]