Get User Interests
Retrieve all interests associated with a specific user.Request
The unique identifier of the user
Response
Returns a structured object with user information and their interests.The user’s unique identifier
The user’s username
The user’s email address
Array of interest objects associated with the user
Add User Interests
Attach one or more interests to a user.Request
The unique identifier of the user
Array of interest IDs to attach to the user
Response
Success message confirming interests were attached
Error Responses
Error message describing what went wrong
Status Codes
200- Success: Operation completed successfully500- Server Error: Internal server error occurred
Notes
- When no interests are found for a user, an empty array is returned
- The
interests_idarray can contain multiple interest IDs to attach in a single request - Ensure the interest IDs exist in the interests table before attempting to attach them
- This endpoint can be used to display user profiles with their preferences