SwaggerJS UI Toggle with Path Change
/* Very simple solution to ensure that the path changes each time the Swagger UI is toggled open. This
helps speed up testing and fixes. The older version use to support this, but for some reason it was
not included in the same way in the new swagger JS. This just binds an changes the URL.
*/
setTimeout(function(){
$('.toggleEndpointList, .toggleOperation').on('click', function(data) {
window.location = this.href;
});
}, 2000);