Backend API for the UseDelight apps to manage videos, settings, users, and authentication
Routes for user authentication including register, login, reset password, etc.
Generate password token and send email
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Clear token cookie
Add user to database with encrypted password
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Reset user password using token
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Update logged in user name and email
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Update logged in user password, send in the body currentPassword and newPassword
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Get, create, update, delete ratings.
Add a rating for the video
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Delete rating from the database
Get all ratings from database. Advanced querying is supported.
Get specific ratings for a video.
Get a single rating by its id
Update a rating in the database
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Send settings object and create new users if not existing.
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Add user to database (admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Delete user from database (admin)
Get all users (admin). Advanced querying is supported.
Get single user by id (admin)
Update user in database (admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Videos CRUD functionality
Add new video to database. Must be authenticated and must be publisher or admin
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVmMjhmZWQ2ODViYTEyOWZjODVjYjUwMCIsImlhdCI6MTU5NjUyNDExOCwiZXhwIjoxNTk5MTE2MTE4fQ.vA20ziQrd2g152i3VYB0mpOoqInI_vOs2JxYpiI8Sfg |
Delete video from database
Fetch all videos from database. Includes pagination, filtering, etc. Advanced querying is supported.
Fetch car videos. Advanced querying is supported.
Fetch all videos of type “cars” and the provided tag
Get a random number of videos. Optional parameters: favonly, minduration={duration in secs}, num
| Key | Value | Description |
|---|---|---|
| num | 20 | |
| favonly | true |
Fetch nature videos. Advanced querying is supported.
Fetch all videos with type “Nature” and the provided tag
Get single video by id
Get all videos with minimum duration
Update single video in database
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Upload video file
| Key | Value | Description |
|---|---|---|
| file |