Function list_providers

Source
pub async fn list_providers(
    platform_id: i64,
    page: Option<i64>,
    per_page: Option<i64>,
    db_manager: &State<Arc<DatabaseManager>>,
) -> Result<Json<Value>, (Status, Json<Value>)>
Expand description

List all providers in the system with pagination support.

§Arguments

  • platform_id - The ID of the platform to retrieve providers for.
  • page - The page number to retrieve.
  • per_page - The number of providers to retrieve per page.
  • db_manager - The database manager for accessing platform-specific database pools.

§Returns

A JSON response containing the list of providers and pagination information.