add ability to substitute {params} in api paths