https://github.com/captainayan/anon-msgs
🐻❄️❄Anon-Msgs is a fun and open-source, secret message and confession app. ⚛️🤫
https://github.com/captainayan/anon-msgs
api create-react-app express jwt mern message mongodb mongoose node react rest-api
Last synced: 3 days ago
JSON representation
🐻❄️❄Anon-Msgs is a fun and open-source, secret message and confession app. ⚛️🤫
- Host: GitHub
- URL: https://github.com/captainayan/anon-msgs
- Owner: captainAyan
- Created: 2022-04-23T16:27:03.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-20T09:51:51.000Z (over 3 years ago)
- Last Synced: 2025-07-25T09:54:20.754Z (9 months ago)
- Topics: api, create-react-app, express, jwt, mern, message, mongodb, mongoose, node, react, rest-api
- Language: JavaScript
- Homepage: https://anon-msgs.onrender.com/
- Size: 366 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Anon-Msgs
## Documentation
|Route|Method|Auth|Description|Query|Body|
|---|---|---|---|---|---|
|/api/auth/login|POST|Public|Login|-|*Username, Password|
|/api/auth/register|POST|Public|Register|-|Name, *Username, Password|
|/api/message|GET|Private|Get messages|Page|-|
|/api/message/[:username]|POST|Public/Private|Send message|-|Body (Message body)|
|/api/message/[:id]|DELETE|Private|Delete message|-|-|
|/api/profile/[:username]|GET|Public/Private|View profile|-|-|
|/api/profile|PUT|Private|Edit profile|-|Name, *Username|
|/api/profile|DELETE|Private|Delete profile|-|-|
***Username is the Handle**
### Error Response
Link the article [Reference](https://www.baeldung.com/rest-api-error-handling-best-practices)
```json
{
"error": {
"message": "Missing redirect_uri parameter.",
"stack": null,
"type": "OAuthException",
"code": 191
}
}
```
**Message**: Actual error message.
**Stack**: The error stack. *(Null value in production)*
**Type**: Error name, e.g. OAuthException
**Code**: Error code, e.g. 191