1.1.3 • Published 4 years ago

api-generator v1.1.3

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

API Generator

An API generation library for NodeJS.

Dependencies Build Status Downloads NPM version Maintainability Known Vulnerabilities

Installation

$ npm install api-generator

Usage

let apiGen = require('api-generator');

let config = {
	"name" : "fetchGithubApiEndpoints",
	"type" : "REQUEST",
	"methods" : [
		{
			"type" : "GET",
			"url"    : "https://api.github.com",
			"callback": function (err, data) {
				if (!err) { 
					console.log("Success!", data);
				}
				console.log("Error!", err);
			}
		}
	]
};

let myApi = apiGen([config]);

console.log(myApi);
// => { fetchGithubApiEndpoints: { GET: [Function] } }

Tests

Coming soon...

$ npm test

Note: This requires mocha, should, and underscore.

Features

  • Automatic API Generation
  • Easily extensible
  • Simplifies repeated API generation
1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

5 years ago

1.1.0

7 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.1

10 years ago