Skip to content

Instantly share code, notes, and snippets.

@framp
Created September 10, 2015 13:05
Show Gist options
  • Save framp/b28ec48c9ecc8484b058 to your computer and use it in GitHub Desktop.
Save framp/b28ec48c9ecc8484b058 to your computer and use it in GitHub Desktop.
Get URLs from swagger-ui
var nodes = document.querySelectorAll('.path .toggleOperation')
Array.prototype.slice.apply(nodes).map(function(v){ return v.text })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment