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