Adds middleware to your express app to serve the Swagger UI bound to your Swagger document. This acts as living documentation for your API hosted from within your app.
The implementation needed a setInterval function call because of the unpredictable time that takes for the preauthorizeApiKey function to load schema definition.
This PR addresses issue #311.
The implementation needed a setInterval function call because of the unpredictable time that takes for the preauthorizeApiKey function to load schema definition.
Added proper unit testing as well