Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Daniel-Stojanovski/finkiopendesk/llms.txt

Use this file to discover all available pages before exploring further.

Returns all items the specified user has marked as a favorite. Each record identifies a target entity by its ID and type, letting the client look up or link to the correct subject, profession, or channel page. The targetName field is resolved at query time and is not persisted in the database — it is computed from the related entity’s current name.
This endpoint is publicly accessible. No Authorization header is required.

Request

GET https://finkiopendesk-be.onrender.com/api/favorites/{userId}

Path parameters

userId
string
required
The identifier of the user whose favorites to retrieve. This is the same string stored in the userId column of user_favorites and corresponds to the user’s UUID (e.g., a1b2c3d4-e5f6-7890-abcd-ef1234567890).

Response

Returns an array of UserFavorite objects. The array is empty when the user has saved no favorites.
userFavoriteId
string
Unique identifier for this favorite record (UUID v4). Use this value if you need to reference the record directly.
userId
string
UUID of the user who saved this favorite.
targetId
string
Identifier of the favorited entity — for example, a subject code or a profession ID.
targetType
string
Category of the favorited entity. One of "subject", "profession", or "channel". Use this value to route the user to the correct detail page.
targetName
string
Display name of the favorited entity, resolved at request time. This field is not stored in the database (@Transient) and may be null if the referenced entity no longer exists.

Example

curl -X GET \
  "https://finkiopendesk-be.onrender.com/api/favorites/a1b2c3d4-e5f6-7890-abcd-ef1234567890"

Build docs developers (and LLMs) love