ServiceStack parses queryString using the JSV format, it is mostly JSON with quotes in CSV style (i.e. only quotes are needed when your value has an escape char) ..
Although you did not define a user route here, in most cases your user route matches your DTO request, which in this case Test has no means.
So, assuming the custom route looks like this:
Routes.Add<Test>("/test");
You can call the service through a QueryString, for example:
HTTP: // local: 49490 / API / test Tools = [{Key: Key1, Percentage: 1}, {Key: Key2, Percentage: 2}]
On a side note, Interfaces on a DTO are usually a bad idea; you should avoid (at least limit) its use at all times.
mythz
source share