In my project there is a documentation of API's by using swagger which URL is like http//www.example.com/api. Issue is that these are public and anyone can see that. I want to secure this link so that anyone can't see these API's.
I see http_authentication
and basic_authentication
but it can't work on swagger because it is in public. How I secure that page?