ServiceStack: Handle query params in the form of "/people?includes=A,B,C
Assuming an incoming GET request with the raw URL:
/people?includes=family,friends,enemies
From the service side, is adding a string[] property called "Includes" to
my Request object, and parsing each item in the array, and then performing
my business logic the right way to go?
Or perhaps, rather than going a string[] route, is there any way to
strongly type this (maybe in a Flags enum?) so my clients and service can
make this look nicer?
No comments:
Post a Comment