Table of Contents
Swagger visual scripted allows creation of scripts using any valid Swagger v2 or OpenApi v3 json file.
Vanilla JS! That's right. This project has only one dependency.
To start, load any valid JSON file describing your API.
Pre-defined variables
$lastResult
or$r
- the response body of the most recent API request$lastStatus
or$s
- the response code of the most recent API request$loopItem
or$i
- the current item in an iteration of a for loop
To minify, run this command:
uglifyjs --compress --mangle --define PACKAGED=true -- main.js scriptRunner.js > dist/swag-vis-scripter.1.0.min.js
You'll need uglifyjs globally installed
- Package and minify project
- Convert a flowchart to JS script
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
Original contributors: Andrew Gnagy, Alex Ross, Francis Uzorh, and Davis Peterson from Genesys Inc.