ServiceStack Restrict Visibility -
I However this API is the reason for being invisible from both localhost and external. I get route visible way Swagger on localhost request to Json and xml formats will show it You have to give Json permission. using'm trying to optimize the visibility of a ServiceStack endpoint so as restricted Attribute.
[root ( "/ test", action = "GET")] [Limit (VisibilityTo = RequestAttributes.Localhost)] public class TestDto {...}
LocalSubnet is the same behavior with are all gray formats on metadata page and when browsing localhost I do not see the way in Swagger.
. [Restricted (VisibilityTo = RequestAttributes.Localhost | RequestAttributes.Xml | RequestAttributes.Json)]
Comments
Post a Comment