When Lift parses a path, the last element of the path is split at the first '.'. This allows you to match of "foo" :: "bar", "jpg" vs. "foo" :: "bar", "png"
However, this is biting you right now... and I've got a solution. Please open a ticket at http://github.com/dpp/liftweb/issues and I'll get it fixed. On Thu, Oct 29, 2009 at 2:27 PM, andythedestroyer < [email protected]> wrote: > > Hello, > > I am creating a rest api for an app and am having trouble extracting a > var from the matched request. > > Object MyApi extends XMLHelperApi { > def dispatch : LiftRules.DispatchPF = { > case Req(List("api","package", packageName), _, GetRequest) > => > () => myMethodThatDoesSomething(packageName) > } > } > > The packageName variable is in the form similar but not exactly like > java package names ( my.company.package:key=value ) > > so the rest url would be > > http://domain.com/api/package/my.company.package%3Akey%3Dvalue > > This should work and the package var in my case expression should be > "my.company.package:key=value" but it is just "my". > > I have gone through "The Definitive Guide to Lift" and the group > postings but have had no luck so far. I know this should be easy and I > am just missing something. > > Thanks > Andy > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
