@fresha/openapi-codegen-client-fetch
v0.6.1
Published
OpenAPI code generation for Fetch API clients
Downloads
15
Readme
@fresha/openapi-codegen-client-fetch
OpenAPI code generator for TypeScript clients using Fetch API.
Installation
This generator is installed along with @fresha/openapi-codegen
.
$ npm install @fresha/openapi-codegen
Usage
Listing available options
npx fresha-openapi-codegen client-fetch --help
Generating source code
npx fresha-openapi-codegen client-fetch \
--input PATH_TO_OPENAPI_SCHEMA_FILE
--output ROOT_DIR_NPM_PROJECT
--json-api
where:
--json-api
is used to make generator generate the code according to JSON:API specification