hi all ,
simple question, my project have a simple Role based access control (RBAC), so i don want everyone can easy to $expand resource.
but as i known, Web API can only set
[EnableQuery(AllowedQueryOptions = AllowedQueryOptions.Expand , MaxExpansionDepth=2)]
can totally not allow "$expand" or limit the Depth
is it possible to set limit for properties (if can base on role, that's will be better)?
something look like
[EnableQuery(AllowedQueryOptions = AllowedQueryOptions.Expand , propertiesNotAbleExpand="some property not albe to $expand")]
Regards,
Yam