API Blueprint Focus Booster
This tool lets you split one huge document into smaller ones so you can easily edit them in your favorite text editor.
When you're done, it will validate your API Blueprints (JSON payloads), concatenate them into one file and publish the resulting API Blueprint into the Apiary.io.
So what does it do exactly?
- Substitutes commonly used values (templating).
- Validates JSON strings inside files (payloads).
- Converts hard tabs to spaces.
- Concatenates all files into one output file.
- Publishes to Apiary.io.
Preferred way is to use Slush generator for API Blueprint Focus Booster.
Clone this repository.
git clone https://github.com/saamo/api-blueprint-focus-booster.git
cd api-blueprint-focus-booster npm install
And finally copy the example config file.
cp config.example.js config.js
Put your files (with
.apib extension) into the
./src directory and run following command.
Resulting API Blueprint is saved in
Publish to Apiary.io
In order to use publish task, you need to install the Apiary CLI first.
gem install apiaryio
Setup API name and token in the config file and then publish your API Blueprint using following command.
MIT © Samir Djellil