Overview
The Tourist Profile API provides endpoints for managing tourist user profiles, including personal information, travel preferences, and favorite guides. All endpoints are prefixed with/api/tourists.
Profile Management
Get Tourist Profile
Retrieve a tourist’s complete profile information.GET /api/tourists/{userId}
Tourist user’s unique identifier
Tourist profile object
Update Tourist Profile
Update a tourist’s profile information. This endpoint uses PATCH, so only the fields you include will be updated.PATCH /api/tourists/{userId}
Tourist user’s unique identifier
Tourist’s current location or home city
Personal biography or description
Achievement badge or status level
Preferred travel style
Type of trips preferred
Preferred pace and company
Physical activity level preference
Group size preference
Dietary restrictions or preferences
Level of trip planning preferred
Preferred amenities and facilities
Transportation preferences
Photography preferences
Accessibility needs or requirements
Additional notes or special requests
URL to the user’s avatar image
URL to the profile cover image
Set of spoken languages
Set of travel interests and hobbies
Updated tourist profile object
Favorite Guides
Get Favorite Guides
Retrieve the list of guide IDs that a tourist has marked as favorites.GET /api/tourists/{touristId}/favorites
Tourist user’s unique identifier
Array of guide user IDs that are marked as favorites
Add Favorite Guide
Add a guide to the tourist’s list of favorites.POST /api/tourists/{touristId}/favorites/{guideId}
Tourist user’s unique identifier
Guide user’s unique identifier to add as favorite
Returns HTTP 204 No Content on success
Remove Favorite Guide
Remove a guide from the tourist’s list of favorites.DELETE /api/tourists/{touristId}/favorites/{guideId}
Tourist user’s unique identifier
Guide user’s unique identifier to remove from favorites
Returns HTTP 204 No Content on success