@fresha/openapi-codegen-cli

0.7.1 • Public • Published

@fresha/openapi-codegen-cli

The code generator CLI for RESTful APIs.

Installation

$ npm install @fresha/openapi-codegen-cli

Usage

Listing available generators

$ npx fresha-openapi-codegen --help

Typical output of the command above. Each generator is implemented as a separate command:

Usage

Commands:
  fresha-openapi-codegen server-nestjs  generates code for NestJS

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]

Generating source code

As an example, we'll use NestJS generator. For more details, please see its documentation.

$ npx fresha-openapi-codegen server-nestjs \
  --input ~/Developer/openapi/schema.yaml \
  --output ~/Developer/nestjs-project
  --nest-app web
  --json-api

Readme

Keywords

Package Sidebar

Install

npm i @fresha/openapi-codegen-cli

Weekly Downloads

71

Version

0.7.1

License

MIT

Unpacked Size

22.2 kB

Total Files

32

Last publish

Collaborators

  • dziala
  • kondrat-fresha
  • dnaploszek
  • rafal.panasiuk.fresha
  • mykulyak
  • fresha_root
  • wokay_fresha