https://github.com/paulvollmer/swagger-walk
swagger utility to walk through paths, methods and definitions. (WIP)
https://github.com/paulvollmer/swagger-walk
swagger-specification swagger-walker
Last synced: 5 months ago
JSON representation
swagger utility to walk through paths, methods and definitions. (WIP)
- Host: GitHub
- URL: https://github.com/paulvollmer/swagger-walk
- Owner: paulvollmer
- License: mit
- Created: 2017-05-16T17:39:47.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-28T21:58:34.000Z (about 8 years ago)
- Last Synced: 2025-01-27T10:29:38.895Z (over 1 year ago)
- Topics: swagger-specification, swagger-walker
- Language: JavaScript
- Homepage: http://paulvollmer.net/swagger-walk
- Size: 245 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# swagger-walk [](https://travis-ci.org/paulvollmer/swagger-walk)
swagger utility to walk through paths, methods and definitions.
## Usage
simple example how to use the `swagger-walk` utility.
```
const SwaggerWalk = require('swagger-walk')
// read swagger file
const spec = require('./swagger.json')
// create a new instance and set the swagger specification
let walker = new SwaggerWalk()
walker.setSpec(spec)
// walk all path methods
walker.paths.walkMethods((index, path, method, data) => {
console.log(path, method)
})
```
# License
Licensed under [MIT-License](LICENSE)