use serde_json::Value;
use crate::client::GuacamoleClient;
use crate::error::Result;
impl GuacamoleClient {
/// Lists all server patches applied to the Guacamole instance.
///
/// This is a public Guacamole endpoint that does not require authentication.
pub async fn list_patches(&self) -> Result<Value> {
let url = self.url_unauth("/api/patches");
let response = self.http.get(&url).send().await?;
Self::parse_response(response, "patches").await
}
}