c# - Sending parameters as path segments doesn't work in ServiceStack -


i'm trying make request ss service parameters have empty values when send them url segments. according https://github.com/servicestack/servicestack/wiki/routing can call service in 2 ways:

/resource/p1/p2/p3 or /resource?p1=v1&p2=v2&p3=v3

the first method never works (the parameters have default values depending on types) , second 1 works. wan't call service using first method.

here's code

//request dto     [route("/test/{param1}/{param2}/{param3}")] public class test {     public string param1 { get; set; }     public int param2 { get; set; }     public string param3 { get; set; } }  //response dto     public class testresponse : ihasresponsestatus {     public responsestatus responsestatus { get; set; }     public string inputs { get; set; } } 

what doing wrong?

just close question: esker posted link mythz confirms we're experiencing iis/asp.net bug.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -