1
我想根据我的querystring参数路由两个不同的RequestDTO类。 PFB这两种情况。根据查询字符串参数名称在servicestack中路由?
Scenario 1:-
localhost:8080/myservice?type="abc" //Service URL
// should be called below DTO class
public class TypeRequestDTO //DTO
{
public string type;
}
Scenario 2:-
--------------------------------------------------
localhost:8080/myservice?Name="xyz" //Service URL
// should be called below DTO class
public class NameRequestDTO //DTO
{
public string Name;
}
在这两种情景,base url
是相同的(/myservice
),但我想这样做,根据querystring parameter
路由。有没有可能的方法来做到这一点。