logicmonitor

Extract just the ‘get’ paths from the swagger json file:

curl https://www.logicmonitor.com/swagger-ui-master/dist/swagger.json | jq '.paths | map_values(keys) | to_entries | map(select(.value[] | contains ("get"))) | .[].key'

Extract the ‘get’ parameters and print as json file:

See this gist: https://gist.github.com/jkrasnay/7fbdda198561f5ca924edb9c5d7188ce

curl https://www.logicmonitor.com/swagger-ui-master/dist/swagger.json | jq '[ .paths | to_entries[] | .key as $path | .value | to_entries[] | select(.key == "get") | { path:$path, method:.key, parameters:.value.parameters } ]'