Skip to main content

interpolate_path

Function interpolate_path 

Source
pub fn interpolate_path(
    path: &str,
    params: &[ApiParam],
    args: &Map<String, Value>,
) -> String
Expand description

Replaces {param_name} placeholders in the path with values from args.

Only parameters with location == Path are interpolated. String values are used directly (without surrounding quotes); other types are converted via to_string(). Missing parameters leave the placeholder unchanged.