This modules defines all the routes in our backend API
Members
# route Accept request to join stream
Route:
Method | Path |
---|---|
POST | /api/streams/acceptRequestToJoin |
Body Parameters:
Name | Type | Description |
---|---|---|
data | streamerData | streamerData of the user to accept |
# route Check Username
Route:
Method | Path |
---|---|
POST | /api/userdata |
Body Parameters:
Name | Type | Description |
---|---|---|
username | String | to get data of |
# route Close stream
Route:
Method | Path |
---|---|
POST | /api/streams/closeStream |
# route Create stream
Route:
Method | Path |
---|---|
POST | /api/user/createstream |
Body Parameters:
Name | Type | Description |
---|---|---|
Data | StreamData | of the stream to create |
# route Delete notification
Route:
Method | Path |
---|---|
POST | /api/notifications/deleteNotification |
Body Parameters:
Name | Type | Description |
---|---|---|
notificationId | String | Id of the notification to delete |
# route Delete notification
Route:
Method | Path |
---|---|
POST | /api/notifications/clearNotifications |
# route Facebook Auth
Route:
Method | Path |
---|---|
GET | /api/auth/facebook |
# route Facebook Auth callback
Route:
Method | Path |
---|---|
GET | /api/auth/facebook/callback |
# route Get Stream By Id
Route:
Method | Path |
---|---|
POST | /api/user/find_stream_data |
Body Parameters:
Name | Type | Description |
---|---|---|
streamId | String | id of the stream to get data of |
# route Get twitch streams
Route:
Method | Path |
---|---|
POST | /api/twitch/get_streams |
Body Parameters:
Name | Type | Description |
---|---|---|
streamGroups | Array. |
List of all the groups of streamers to search data for |
# route Get User
Route:
Method | Path |
---|---|
GET | /api/user |
# route Get User Data
Route:
Method | Path |
---|---|
POST | /api/userdata |
Body Parameters:
Name | Type | Description |
---|---|---|
username | String | to get data of |
# route Get YouTube Live video id by channel id
Route:
Method | Path |
---|---|
POST | /api/youtube/getLiveVideoId |
Body Parameters:
Name | Type | Description |
---|---|---|
ChannelId | String | of all the groups of streamers to search data for |
# route Google Auth
Route:
Method | Path |
---|---|
GET | /api/auth/google |
# route Google Auth callback
Route:
Method | Path |
---|---|
GET | /api/auth/google/callback |
# route IsUserOnline
Route:
Method | Path |
---|---|
POST | api/user/is_user_online |
Body Parameters:
Name | Type | Description |
---|---|---|
users | userId | id |
# route Reject request to join stream
Route:
Method | Path |
---|---|
POST | /api/streams/rejectRequestToJoin |
Body Parameters:
Name | Type | Description |
---|---|---|
data | streamerData | streamerData of the user to reject |
# route Request to join stream
Route:
Method | Path |
---|---|
POST | /api/streams/requestToJoinStream |
Body Parameters:
Name | Type | Description |
---|---|---|
creatorId | String | Id of the creator of the stream to request to join |
data | streamerData | streamerData of the user requesting to join |
# route Search streams
Route:
Method | Path |
---|---|
POST | /api/search/streams |
Body Parameters:
Name | Type | Description |
---|---|---|
searchString | String | string to search streams by |
page | String | to return |
status | String | stream status |
# route Search streams by status
Route:
Method | Path |
---|---|
POST | /api/feed/streams |
Body Parameters:
Name | Type | Description |
---|---|---|
page | String | to return |
status | String | stream status |
# route Search users
Route:
Method | Path |
---|---|
POST | /api/search/users |
Body Parameters:
Name | Type | Description |
---|---|---|
searchString | String | string to search users by |
page | String | to return |
# route Set Redirect Url
Route:
Method | Path |
---|---|
POST | /api/auth/setRedirectUrl |
Header Parameters:
Name | Type | Description |
---|---|---|
referer | String | URL to redirect to |
# route Twitch Auth
Route:
Method | Path |
---|---|
GET | /api/auth/twitch |
# route Twitch Auth callback
Route:
Method | Path |
---|---|
GET | /api/auth/twitch/callback |
# route UpdateDescription
Route:
Method | Path |
---|---|
POST | /api/user/update_field |
Body Parameters:
Name | Type | Description |
---|---|---|
id | userId | of user |
new | shortDescription | description text |
# route UpdateInterests
Route:
Method | Path |
---|---|
POST | /api/user/update_interests |
Body Parameters:
Name | Type | Description |
---|---|---|
id | userId | of user |
interests | interests | list |
# route User Login
Route:
Method | Path |
---|---|
POST | /api/signin |
Body Parameters:
Name | Type | Description |
---|---|---|
username | String | to login with |
password | String | to login with |
# route User Login
Route:
Method | Path |
---|---|
POST | /api/signup |
Body Parameters:
Name | Type | Description |
---|---|---|
username | String | to signup with |
password | String | to signup with |
String | to signup with |
# route User Logout
Route:
Method | Path |
---|---|
POST | /api/signout |