0.0.0 • Published 9 years ago

api-blueprint-to-json v0.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

API Blueprint to JSON

Pulls down API Blueprints from Apiary, parses them, and saves them locally as JSON.

Install

> npm install api-blueprint-to-json

Use

The this model exposes a single method process which accepts an array of resource objects, defined as follows:

Example

var resources = [
  {
    url: 'https://api.apiary.io/blueprint/get/myapi',
    token: 'someapitoken',
    savePath: __dirname + '/schemas/myapi.json'
  }
];

function callback(err) {
  if (err) {
    console.log(err);
  } else {
    console.log('All done');
  }
}

apiBlueprintToJson.process(resources, callback);