I have the following attributes on a service:
Restrict(VisibilityTo = RequestAttributes.Localhost)]
[Api(“Non-Public administrative endpoints”)]
I see 2 problems:
- The endpoints in /metadata with the JSON icon greyed out.
- The endpoints do not appear at all in /swagger-ui
How can I make the endpoints visible in swagger when viewed from localhost?