leitstand-swagger
Swagger plugin for Leitstand
Installation
First, install leitstand-cli, if you haven't done yet. Then install the plugin as dependency into your Leitstand app via:
npm install leitstand-swagger --save
Usage
leitstand
.widget('my-api', {
plugin: 'swagger',
settings: {
url: 'http://petstore.swagger.io/v2/swagger.json'
},
methods: {
name: 'pet.getPetById',
opts: {
petId: 7
},
key: 'pet',
schedule: '*/10 * * * *'
}
})
API
License
MIT © Sebastian Krüger