URITemplate.swift icon indicating copy to clipboard operation
URITemplate.swift copied to clipboard

Is it possible to extract parameters?

Open Ricardo1980 opened this issue 7 years ago • 1 comments

Hi!

If I execute:

let template = URITemplate(template: "https://api.github.com/repos/{owner}/{repo}{?token}")
let variables = template.extract("https://api.github.com/repos/kylef/PathKit?token=1234")

Then I get: "owner" = "kylef" "repo" = "PathKit" "token" = "?token=1234"

What do I have to do to get in the last variable something like? "token" = "1234"

Thanks a lot for help.

Ricardo1980 avatar Dec 07 '17 12:12 Ricardo1980

Same Issue too..

EatDinner avatar Sep 27 '23 12:09 EatDinner