pub fn substitute_path(
template: &str,
params: &Value,
allowed_wildcard_prefixes: &[&str],
) -> Result<String>Expand description
Substitutes every {key} placeholder in template with the matching
string/number/boolean field from params, and expands a trailing
*path wildcard segment (validated against allowed_wildcard_prefixes).
ยงErrors
Returns UnifiError::PathTemplate for a malformed template or a
missing/mistyped parameter, or UnifiError::ConnectorPath if the
*path wildcard value fails validate_connector_path.