Methods
(static) create(users_id, tracks_id) → {JSON}
A function to add new users favorite radio tracks.
Parameters:
Name | Type | Description |
---|---|---|
users_id |
String | UUIDv4 which represents user's ID. |
tracks_id |
String | UUIDv4 which represents radio track's ID. |
Returns:
An object that contains both an error message and a successful about users favorite radio tracks.
- Type
- JSON
(static) delete(id) → {JSON}
A function to get delete users favorite radio tracks.
Parameters:
Name | Type | Description |
---|---|---|
id |
String | UUIDv4 which represents users favorite radio track's ID. |
Returns:
An object that contains message about users favorite radio info tracks.
- Type
- JSON
(static) get(id) → {JSON}
A function to get a specific data about users favorite radio tracks.
Parameters:
Name | Type | Description |
---|---|---|
id |
String | UUIDv4 which represents user's ID. |
Returns:
An object that contains a specific data about users favorite radio tracks.
- Type
- JSON
(static) getAll() → {JSON}
A function to get all data about users favorite radio tracks.
Returns:
An object that contains list about users favorite radio tracks.
- Type
- JSON