Socket
Book a DemoInstallSign in
Socket

github.com/Muslimah94/forum

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/Muslimah94/forum

v0.0.0-20210221155346-2b4564c2342d
Source
Go
Version published
Created
Source

forum\

/api/register [POST] user registration to forum

/api/login [POST] //nickname, password ()

/api/addpost [POST] create new post

/api/posts?liked=0&created=0 [GET] get all posts

/api/posts?liked=1&created=0 [GET] get liked posts

/api/posts?liked=0&created=1 [GET] get created posts

/api/postsby?category= [GET] get posts by category name

/api/post?id= [GET] get post by post id

/api/comment [POST] write a new comment to post by post id

/api/comments?post_id= [GET] get all comments to post by post id

/api/categories [GET] get names of categories

/api/reaction [POST] add like/dislike to DB (like type=1, dislike type=0)

/api/logout [GET] log out

Will be implemented for ADVANCED FEATURES (optional task):

/api/profile?id= [GET]

/api/profile?id= [PUT]

/api/post?id= [PUT] edit post

/api/comment?id= [PUT] edit comment

/api/post?id= [DELETE] delete post

/api/comment?id= [DELETE] delete comment

FAQs

Package last updated on 21 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.