0.5.1 • Published 6 years ago

@moqada/simple-api-client-generator v0.5.1

Weekly downloads
94
License
MIT
Repository
github
Last release
6 years ago

simple-api-client-generator

Greenkeeper badge

NPM version Build Status Dependency Status DevDependency Status License

API Client Generator from JSON Hyper Schema.

API Client has generated with Flow types for Request, Response, and Resource. And request parameters is validated with tv4 and power-assert on development phase.

WIP

Installation

npm install --save @moqada/simple-api-client-generator

Usage

Usage: simple-api-client-generator [options] <JSON Schema>

Options:
  -n, --name    API Client class name  [string] [default: "APIClient"]
  -o, --output  output file path  [string]
  -a, --assert  assert library name  [string] [default: "power-assert"]
  -l, --lang    output language  [choices: "javascript", "typescript"] [default: "javascript"]
  --help        Show help  [boolean]
  --version     Show version number  [boolean]

Examples:
  simple-api-client-generator ./shema.json                      Output API Client.
  simple-api-client-generator -n AwesomeAPIClient ./shema.json  Output API Client given name

Output Example is here from Sample JSON Hyper Schema;

Restriction

Depenencies

Generated Client depends on following modules.

JSON Hyper Schema

JSON Hyper Schema must have unique rel value per resources.

0.5.1

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.3

7 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago