An open API service indexing awesome lists of open source software.

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)

Awesome Lists containing this project

README

          

# swagger-walk [![Build Status](https://travis-ci.org/paulvollmer/swagger-walk.svg?branch=master)](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)