JSPM

@moqada/simple-api-client-generator

0.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 780
  • Score
    100M100P100Q127556F
  • License MIT

API Client Generator from JSON Hyper Schema

Package Exports

  • @moqada/simple-api-client-generator

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@moqada/simple-api-client-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

simple-api-client-generator

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]
  --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.