appirio-tech/api-blueprint-to-json

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

API Blueprint to JSON

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

Install
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
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);

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.