0.0.6 • Published 4 years ago

online-swagger-codegen v0.0.6

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

Online swagger codegen

An online swagger client generator

This package generate a zip folder (sdk.zip) from your swagger JSON file and the desired client using https://generator.swagger.io/api/gen/clients endpoint.

Installation

yarn add --dev online-swagger-codegen

Usage

Example:

GenerateSDK({
        specURL: 'http://localhost:3000/swaggher.json',
        outPath: path.resolve(__dirname, '../generated'),
    });

Input parameters:

  • outPath - required - place to save zip file
  • client - optional, default: typescript-node
  • specURL - optional - the url to swagger json file
  • spec - optional - the swagger json object
  • specURL or spec should be provided

Supported clients

  • Typescript node
  • Typescript angular
  • ...
0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago