Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 27 days 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T13:23:17.000Z (about 2 years ago)
- Last Synced: 2023-03-04T01:35:36.938Z (almost 2 years ago)
- Topics: angular-cli, discussion-forum, node-js
- Language: TypeScript
- Homepage: https://discuss-forum.herokuapp.com
- Size: 2.33 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 75
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# APIs For Backend of Discussion Forum
## Authentication Routes
### Register
`/user/register` Method Type : POSTRequire
```
{
name
password
mobile
username
}
```Return
```
{
"msg" : "User Registered"
}
```### Login
`/user/login` Method Type : POSTRequire
```
{
password
}
```Return
```
{
"msg" : "User Logged In"
}
```### Profile
`/user/profile` Method Type: GETReturn
```
{
name : user's name,
mobile : user's mobile,
email : user's email
}
```### Public Profile
`/user/:id` Method Type : GETReturn
```
{
name : user's name,
mobile : user's mobile,
email : user's email
}
```### Logout
`/user/logout` Method Type : GETReturn
```
{
"msg" : "User Logged Out"
}
```### Update Profile
`/user/update` Method Type : POSTOptional
```
{
name
mobile
username
}
```Return
```
{
"msg" : "Profile Updated"
}
```## Thread Routes
### Create Thread
`/thread/new` Method Type: POSTRequire
```
{
topic
category
thread
}
```Return
```
{
"msg" : "Thread Created"
}
```### Show All Threads
`/thread/all` Method Type : GETReturn
` Array of All the Threads `
### Single Thread
`/thread/:id` Method Type: GET### Making Comment on a Thread
`/thread/comment` Method Type: POSTRequire
```
{
txt
}
```Return
` Updated Thread `
### Like a Thread
`/thread/like/:id` Method Type: GETReturn
` Updated Thread `
### Disike a Thread
`/thread/dilike/:id` Method Type: GETReturn
` Updated Thread `