Skip to main content

extract_path_params

Function extract_path_params 

Source
pub fn extract_path_params(template: &str) -> Vec<Parameter>
Expand description

Extract path parameters from a template string like /users/{id}/posts/{post_id}.

Returns Parameter objects with in: path, required: true.