def refresh_swagger ( self ) : try : os . remove ( self . _get_swagger_filename ( self . swagger_url ) ) except EnvironmentError as e : logger . warn ( os . strerror ( e . errno ) ) else : self . __init__ ( )
how to get swagger on flask python
Manually refresh the swagger document . This can help resolve errors communicate with the API .
def refresh_swagger(self):
        """
        Manually refresh the swagger document. This can help resolve errors communicate with the API.
        """
        try:
            os.remove(self._get_swagger_filename(self.swagger_url))
        except EnvironmentError as e:
            logger.warn(os.strerror(e.errno))
        else:
            self.__init__()