URITemplate.swift
URITemplate.swift copied to clipboard
Is it possible to extract parameters?
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.
Same Issue too..