Search Profiles
Upsert a Search Profile entry.
Creates a new Search Profile if the provided id does not exist, or updates the existing Search Profile with the given id.
Args: request (SearchProfile): The Search Profile data to insert or update. db (AsyncSession): The database session dependency.
Returns: JSONResponse: A JSON response containing the Search Profile data that was upserted.
Raises: HTTPException: If the operation encounters an unexpected error (not currently implemented, but can be added for error handling).
Notes: - Uses FastCRUD for abstracted DB operations. - Relies on the codename field to determine insert vs update.
- : Read Permissions
Search Profile model.
ProfileType is an enumeration that defines various types of profiles used in the application.
Attributes: SEARCH (str): Represents a search profile type. AUTOSUGGEST (str): Represents an autosuggest profile type. SHINGLES (str): Represents a shingles profile type. WEB_SEARCH (str): Represents a web search profile type. DISCOVERY (str): Represents a discovery profile type. DEEP_SEARCH (str): Represents a deep search profile type.
InputProcessor is an enumeration class that defines various input processing types.
Attributes: CATAPA_MENU (str): Represents the "Catapa Menu" input processing type. GLCHAT (str): Represents the "GLChat" input processing type. NO_MOD (str): Represents the "No Moderation" input processing type.
Successful Response
Validation Error
No content
Read multiple SearchProfileModel rows from the database.
Use page & itemsPerPage for paginated results
Use offset & limit for specific ranges
Returns paginated response when using page/itemsPerPage
Returns simple list response when using offset/limit
- : Read Permissions
Offset for unpaginated queries
Limit for unpaginated queries
Page number
Number of items per page
Successful Response
Validation Error
Create a new SearchProfileModel row in the database.
- : Read Permissions
Create Search Profile model.
ProfileType is an enumeration that defines various types of profiles used in the application.
Attributes: SEARCH (str): Represents a search profile type. AUTOSUGGEST (str): Represents an autosuggest profile type. SHINGLES (str): Represents a shingles profile type. WEB_SEARCH (str): Represents a web search profile type. DISCOVERY (str): Represents a discovery profile type. DEEP_SEARCH (str): Represents a deep search profile type.
InputProcessor is an enumeration class that defines various input processing types.
Attributes: CATAPA_MENU (str): Represents the "Catapa Menu" input processing type. GLCHAT (str): Represents the "GLChat" input processing type. NO_MOD (str): Represents the "No Moderation" input processing type.
Successful Response
Validation Error
No content
Read a single SearchProfileModel row from the database by its primary keys: ['id'].
- : Read Permissions
Successful Response
Validation Error
Delete a SearchProfileModel row from the database by its primary keys: ['id'].
- : Read Permissions
Successful Response
Validation Error
No content
Update an existing SearchProfileModel row in the database by its primary keys: ['id'].
- : Read Permissions
Create Search Profile model.
ProfileType is an enumeration that defines various types of profiles used in the application.
Attributes: SEARCH (str): Represents a search profile type. AUTOSUGGEST (str): Represents an autosuggest profile type. SHINGLES (str): Represents a shingles profile type. WEB_SEARCH (str): Represents a web search profile type. DISCOVERY (str): Represents a discovery profile type. DEEP_SEARCH (str): Represents a deep search profile type.
InputProcessor is an enumeration class that defines various input processing types.
Attributes: CATAPA_MENU (str): Represents the "Catapa Menu" input processing type. GLCHAT (str): Represents the "GLChat" input processing type. NO_MOD (str): Represents the "No Moderation" input processing type.
Successful Response
Validation Error
No content
Last updated
