flip_api.site_services.services.details_service

Functions

get_site_details(...)

Fetch site details from the database.

update_site_details(→ None)

Update site details in the database.

Module Contents

flip_api.site_services.services.details_service.get_site_details(db: sqlmodel.Session) flip_api.domain.interfaces.site.ISiteDetails

Fetch site details from the database.

Parameters:

db (Session) – Database session.

Returns:

Current site details including banner and deployment mode.

Return type:

SiteDetails

Raises:

HTTPException – If site details cannot be fetched due to an error.

flip_api.site_services.services.details_service.update_site_details(site_details: flip_api.domain.interfaces.site.ISiteDetails, db: sqlmodel.Session) None

Update site details in the database.

Parameters:
  • site_details (ISiteDetails) – Updated site configuration.

  • db (Session) – Database session.

Returns:

None

Raises:

HTTPException – If site details cannot be updated due to an error.