Tourist Profile Interests API
The Tourist Profile Interests API manages the many-to-many relationship between tourist profiles and interest categories. This allows tourists to select multiple interests for their profile to improve tour matching and recommendations.Base Endpoint
Tourist Profile Interest Model
This is a join table with a composite primary key.User ID of the tourist profile
Interest category ID
Add Interest to Tourist Profile
Associate an interest category with a tourist profile.Request Body
User ID of the tourist
Interest category ID to add
Example Request
Example Response
Get All Tourist Profile Interests
Retrieve all tourist-interest associations.Example Request
Example Response
Get Specific Tourist Profile Interest
Retrieve a specific tourist-interest association using the composite key.Path Parameters
Tourist user ID
Interest category ID
Example Request
Example Response
Update Tourist Profile Interest
Update a tourist-interest association (rarely used since it’s a simple join).Path Parameters
Tourist user ID
Interest category ID
Request Body
User ID (must match path parameter)
Interest ID (must match path parameter)
Remove Interest from Tourist Profile
Remove an interest association from a tourist profile.Path Parameters
Tourist user ID
Interest category ID
Example Request
Example Response
Usage Examples
Get All Interests for a Tourist
To get all interests for a specific tourist, filter the results by userId:Add Multiple Interests
To add multiple interests to a tourist profile, make multiple POST requests:Related Endpoints
Tourist Profiles
Manage tourist profiles
Interests
Browse available interest categories