mwunsch / weary

A framework and DSL for building RESTful web service clients
MIT License
482 stars 23 forks source link

Escaping paths that are part of the request #41

Closed matthewcrawford closed 10 years ago

matthewcrawford commented 10 years ago

In the resource header, a structure like this: get :browseable_indexes, "/api;type=class/:indexPath" do |r|

Will result in a path where the backslashes get escaped to %2F's. It'd be great if there were a way to keep the simple structure, but not have to muck with the backslashes.

Nevermind... figured out that this is part of the Addressable gem. To do this, you'd do: "/api;type=class/{+indexPath}"