-
Notifications
You must be signed in to change notification settings - Fork 0
Get users endpoint (Deprecated)
Alvin Cheng edited this page Jun 8, 2023
·
1 revision
This is the get user endpoint, this endpoint will get all the user's information from the MongoDB database. This endpoint does not have any arguments, the endpoint will return '200' on success, '401' on an invalid API key or '500' on an internal server error. Furthermore, the endpoint's source is at /src/endpoints/getUsers.ts
. As a side note, this endpoint is no longer used by the Chill&chat frontend.
fetch("http://<URL>/api/get-users?key=<YOUR_API_KEY>")
.then((res) => {
console.log(res);
})
.catch((err) => {
console.error(err);
});
- Home
- Login endpoint
- Block user endpoint
- Create room endpoint
- Delete user endpoint
- Get all rooms endpoint
- Get GIF endpoint
- Get messages endpoint
- Get public rooms endpoint
- Get user info endpoint
- Get users info endpoint (Deprecated)
- Join room endpoint
- Signup endpoint
- Report room endpoint
- Remove room endpoint
- Update description endpoint
- Follow user endpoint
- Unfollow user endpoint
- Update icon color endpoint
- Upload content endpoint
- Upload content endpoint (Deprecated)
- Verify client endpoint
- Upload token endpoint
- Chill&chat websockets
- Message socket
- Keyboard socket
- Delete message socket
- User content
- Final words&thoughts
- Run API