Skip to content

ahmetatar/swagger-client-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open API v3 Client Code Generator

This package is a yeoman generator for swagger codegen CLI. Requires the installation of an appropriate version of the CLI.

After copying the jar file to a directory of your choice, set the environment variable SWAGGER_CODEGEN_CLI to the directory where the cli file is located.

Then you need to install the generator globally with yarn or npm;

npm i generator-swagger-client -g

or

yarn global add generator-swagger-client

Generator currently only supports building client libraries for Angular, Axios and Fetch. You can place the open api spec file (swagger.yml by default) in the directory where you want to create the client library and then run the generator. Or you can provide a url as input. The generator will create the appropriate client library after receiving a set of questions as input.

yo swagger-client

image

Make sure you run build before publishing the package to the registry after production is complete.

yarn install or npm install
yarn build

Releases

No releases published

Packages

No packages published