Configurations
Upsert a configuration entry.
Creates a new configuration if the provided id does not exist, or updates the existing configuration with the given id.
Args: request (Configuration): The configuration data to insert or update. db (AsyncSession): The database session dependency.
Returns: JSONResponse: A JSON response containing the configuration 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 id field to determine insert vs update.
- : Read Permissions
Configuration model.
Successful Response
Validation Error
No content
Read multiple ConfigurationModel 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 ConfigurationModel row in the database.
- : Read Permissions
Create Configuration model.
Successful Response
Validation Error
No content
Read a single ConfigurationModel row from the database by its primary keys: ['id'].
- : Read Permissions
Successful Response
Validation Error
Delete a ConfigurationModel row from the database by its primary keys: ['id'].
- : Read Permissions
Successful Response
Validation Error
No content
Update an existing ConfigurationModel row in the database by its primary keys: ['id'].
- : Read Permissions
Create Configuration model.
Successful Response
Validation Error
No content
Last updated
