Ryand1234 / Discussion-forum

A MEAN stack Discussion site

Home Page:https://discuss-forum.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

APIs For Backend of Discussion Forum

Authentication Routes

Register

/user/register Method Type : POST

Require

{
  name
  email
  password
  mobile
  username
}

Return

{
  "msg" : "User Registered"
}

Login

/user/login Method Type : POST

Require

{
  email
  password
}

Return

{
  "msg" : "User Logged In"
}

Profile

/user/profile Method Type: GET

Return

{
  name : user's name,
  mobile : user's mobile,
  email : user's email
}

Public Profile

/user/:id Method Type : GET

Return

{
  name : user's name,
  mobile : user's mobile,
  email : user's email
}

Logout

/user/logout Method Type : GET

Return

{
  "msg" : "User Logged Out"
}

Update Profile

/user/update Method Type : POST

Optional

{
  name
  mobile
  username
}

Return

{
  "msg" : "Profile Updated"
}

Thread Routes

Create Thread

/thread/new Method Type: POST

Require

{
  topic
  category
  thread
}

Return

{
  "msg" : "Thread Created"
}

Show All Threads

/thread/all Method Type : GET

Return

Array of All the Threads

Single Thread

/thread/:id Method Type: GET

Making Comment on a Thread

/thread/comment Method Type: POST

Require

{
  txt
}

Return

Updated Thread

Like a Thread

/thread/like/:id Method Type: GET

Return

Updated Thread

Disike a Thread

/thread/dilike/:id Method Type: GET

Return Updated Thread

About

A MEAN stack Discussion site

https://discuss-forum.herokuapp.com


Languages

Language:TypeScript 51.5%Language:JavaScript 29.1%Language:HTML 14.3%Language:CSS 4.4%Language:Python 0.7%