Check like status

Check if the current user has liked a specific item. **Authentication Required:** Yes - Valid JWT token in Authorization header **Path Parameters:** - **type** (required): Type of item (restaurant, hotel, flight, experience) - **productId** (required): UUID of the item to check **Response includes:** - **success**: Boolean indicating success - **data**: Object containing like status - **isLiked**: Boolean indicating if the item is liked - **listItemId**: ID of the like record (null if not liked) **Usage:** 1. Generate a test token using the `/auth/generate-test-token` endpoint 2. Include the token in the Authorization header: `Bearer <token>` 3. Call this endpoint to check if an item is liked **Note:** This endpoint checks the user's default "Likes" list. **Error Handling:** - **400**: Invalid path parameters (invalid type or product ID) - **401**: Invalid or missing JWT token - **503**: Database service temporarily unavailable - **500**: Internal server error

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

typestringRequired
productIdstringRequired

Response

Like status retrieved successfully
successboolean
dataobject

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error
503
Service Unavailable Error