online-swagger-codegen
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i online-swagger-codegen

Weekly Downloads

2

Version

0.0.6

License

MIT

Unpacked Size

7.13 kB

Total Files

6

Last publish

Collaborators

  • mdasmendel