This is a Forum API
bearerauth
Bearer Auth
In
header
Name
Authorization
Sign Out
Signing User Out. Requires refresh token
Name
Located in
Description
Required
Schema
refreshToken
body
refresh token possessed by the user
Yes
string
Login with Username & Password
authenticate user
Name
Located in
Description
Required
Schema
username
body
username address of the user
Yes
string
password
body
password of the user
Yes
string
Refresh Authentication
Generating new access token using a refresh token. Only valid refresh token will generate new
Name
Located in
Description
Required
Schema
refreshToken
body
refresh token possessed by the user
Yes
string
Create Thread
Creating a new thread. Only valid users can create a thread
Name
Located in
Description
Required
Schema
Authorization
header
Bearer Token
Yes
string
title
body
title of the thread
Yes
string
body
body
body of the thread
Yes
string
/threads/{thread_id}/comments
Soft Delete Comment
Soft Delete a comment. Only valid users can delete their own comment
Name
Located in
Description
Required
Schema
Authorization
header
Bearer Token
Yes
string
thread_id
path
Thread ID
Yes
string
comment_id
path
Comment ID
Yes
string
Register A User
New user must have a unique email address
Name
Located in
Description
Required
Schema
email
body
email address of the new user, must be unique
Yes
string
password
body
password of the new user
Yes
string
name
body
name of the new user
Yes
string
domains.AddCommentResponse
domains.AddCommentResponseData
Name
Type
Description
Required
content
string
No
id
string
No
owner
string
No
domains.AddThreadResponse
domains.AddThreadResponseData
Name
Type
Description
Required
id
string
No
owner
string
No
title
string
No
Name
Type
Description
Required
message
string
No
status
string
No
domains.LoginResponseData
Name
Type
Description
Required
accessToken
string
No
refreshToken
string
No
domains.RefreshResponseData
Name
Type
Description
Required
accessToken
string
No
domains.SignupResponseData
Name
Type
Description
Required
fullname
string
No
id
string
No
username
string
No
Name
Type
Description
Required
message
string
No
status
string
No