Command-line tool for filtering documentation created with Swagger.
The filter matches all paths defined in the input JSON against the given regular expression. Definition of all paths that don't match given regex, are removed. In the second step tool filters all data structure definitions and removes all that are not used within the remaining part of the paths.
Usage
as node.js package
Install package for your project
npm install swagger-json-filter --save
then you can use the swagger-json-filter from a js code, providing the input JSON string and options of filtering: