Reputation: 2153
I'm trying to make a GET request to my SS service but the parameters have empty values when I send them as URL segments. According to https://github.com/ServiceStack/ServiceStack/wiki/Routing I can call the service in two 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 their types) and the second one always works. I wan't to call the service using the first method.
Here's my 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 am I doing wrong?
Upvotes: 2
Views: 869
Reputation: 2153
Just to close the question: esker posted a link where mythz confirms that what we're experiencing is actually an IIS/ASP.NET bug.
Upvotes: 1