I am developing a general function inside a solution which would replace /endpoint/{item.id}/disable/{item.name}
with /endpoint/123/disable/lorem
where I pass the function the URL and item.
The item would be an object with keys id
and name
.
What would be the best way to find items with the structure {item.KEY}
and replacing them with item.KEY
?