Name: api-blueprint-to-json
Owner: Topcoder
Description: null
Created: 2015-07-15 22:21:25.0
Updated: 2016-04-12 19:45:23.0
Pushed: 2015-07-17 22:38:33.0
Homepage: null
Size: 108
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Pulls down API Blueprints from Apiary, parses them, and saves them locally as JSON.
install api-blueprint-to-json
The this model exposes a single method process
which accepts an array of resource objects, defined as follows:
https://api.apiary.io/blueprint/get/<api-name>
. You can find the <api-name>
part in the subdomain of your Apiary docs: http://docs.<api-name>.apiary.io/
resources = [
url: 'https://api.apiary.io/blueprint/get/myapi',
token: 'someapitoken',
savePath: __dirname + '/schemas/myapi.json'
tion callback(err) {
(err) {
console.log(err);
else {
console.log('All done');
lueprintToJson.process(resources, callback);