Search Profiles

Upsert

post

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.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Body

Search Profile model.

idintegerRequired
codenamestringRequired
titlestringRequired
typestring · enumRequired

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.

Possible values:
input_processorstring · enumRequired

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.

Possible values:
Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/search-profiles/upsert

No content

Get

get

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

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Query parameters
offsetany ofOptional

Offset for unpaginated queries

integerOptional
or
nullOptional
limitany ofOptional

Limit for unpaginated queries

integerOptional
or
nullOptional
pageany ofOptional

Page number

integerOptional
or
nullOptional
itemsPerPageany ofOptional

Number of items per page

integerOptional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
Responseany of
or
get
/search-profiles

Create

post

Create a new SearchProfileModel row in the database.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Body

Create Search Profile model.

codenamestringRequired
titlestringRequired
typestring · enumRequired

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.

Possible values:
input_processorstring · enumRequired

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.

Possible values:
Responses
chevron-right
200

Successful Response

application/json
Responseany
post
/search-profiles

No content

Get

get

Read a single SearchProfileModel row from the database by its primary keys: ['id'].

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
idintegerRequired
Responses
chevron-right
200

Successful Response

application/json
get
/search-profiles/{id}

Delete

delete

Delete a SearchProfileModel row from the database by its primary keys: ['id'].

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
idintegerRequired
Responses
chevron-right
200

Successful Response

application/json
Responseany
delete
/search-profiles/{id}

No content

Update

patch

Update an existing SearchProfileModel row in the database by its primary keys: ['id'].

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Read Permissions
Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
idintegerRequired
Body

Create Search Profile model.

codenamestringRequired
titlestringRequired
typestring · enumRequired

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.

Possible values:
input_processorstring · enumRequired

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.

Possible values:
Responses
chevron-right
200

Successful Response

application/json
Responseany
patch
/search-profiles/{id}

No content

Last updated