Skip to content

Instantly share code, notes, and snippets.

@DanaEpp
Created November 26, 2022 00:05
Show Gist options
  • Select an option

  • Save DanaEpp/ca4b612734e73b4cf46ae6eeab6626b6 to your computer and use it in GitHub Desktop.

Select an option

Save DanaEpp/ca4b612734e73b4cf46ae6eeab6626b6 to your computer and use it in GitHub Desktop.

Revisions

  1. DanaEpp created this gist Nov 26, 2022.
    1 change: 1 addition & 0 deletions dump-endpoints.jq
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    .paths | to_entries | map(select(.key | test("^x-") | not)) | map ( .key as $path | .value | to_entries | map( select( .key | IN("get", "put", "post", "delete", "options", "head", "patch", "trace")) | { method: .key, path: $path, summary: .value.summary?, deprecated: .value.deprecated? })[] ) | map( .method + "\t" + .path + "\t" + .summary + (if .deprecated then " (deprecated)" else "" end)) []