https://github.com/ryand1234/discussion-forum
A MEAN stack Discussion site
https://github.com/ryand1234/discussion-forum
angular-cli discussion-forum node-js
Last synced: 2 months ago
JSON representation
A MEAN stack Discussion site
- Host: GitHub
- URL: https://github.com/ryand1234/discussion-forum
- Owner: Ryand1234
- Created: 2020-04-19T18:14:41.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-03T13:33:01.000Z (about 3 years ago)
- Last Synced: 2024-12-28T06:13:19.228Z (over 1 year ago)
- Topics: angular-cli, discussion-forum, node-js
- Language: TypeScript
- Homepage: https://discuss-forum.herokuapp.com
- Size: 1.5 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 `