title: Spring Boot Swagger: How to ignore certain API's from swagger based on spring profile?
body: <p>Currently, there are certain private API's in my controller class which I need to ignore them in my production environment, whereas needed in the QA and Dev environments.</p>
  
  <p>I'm using @ApiIgnore annotation from spring fox to achieve this on a global level. Is there a way where I can execute this annotation based on spring boot environment variable? </p>
  
  <p>Or any other solution to tackle this problem ?</p>