New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

github.com/muslimah94/forum

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/muslimah94/forum

  • v0.0.0-20210221155346-2b4564c2342d
  • Source
  • Go
  • Socket score

Version published
Created

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