pub fn normalize_endpoint(
endpoint: &str,
is_object_id: impl Fn(&str) -> bool,
) -> Option<String>Expand description
normalize a rest-api endpoint to its canonical app/resource/ path, dropping
a trailing object-id segment when is_object_id matches it. netbox and
nautobot share this and differ only in is_object_id (integer vs uuid pks).