@fresha/openapi-codegen-server-mock
v0.4.0
Published
OpenAPI code generation for mock API servers
Downloads
14
Readme
@fresha/openapi-codegen-server-mock
OpenAPI code generator for Mirage.js mock servers.
Installation
This generator is installed along with @fresha/openapi-codegen
.
$ npm install @fresha/openapi-codegen
Usage
Listing available options
npx fresha-openapi-codegen server-mock --help
Generating source code
npx fresha-openapi-codegen server-mock \
--input PATH_TO_OPENAPI_SCHEMA_FILE
--output ROOT_DIR_OF_NPM_PROJECT
--json-api
where:
--json-api
is used to make generator generate the code according to JSON:API specification