openapi-crud-generator
v1.0.1
Published
CLI tool to scaffold openapi specifications for CRUD APIs which can then be extended
Downloads
4
Readme
openapi-crud-generator
Only supported flag currently is --print-template
which will print the built-in template to the console and exit.
installation
npm i -g openapi-crud-generator
usage
openapi-crud-generator [--print-template]
If there is a file in the directory that you run this command in called template.json
, the tool will use this instead of the built-in one. You can use the --print-template
option to get a copy of the built-in template which you can then tweak and save as template.json
to use custom base templates. Check lib/buildTemplate.js
to see what properties are overridden / set by this tool.
files
cli.js
is the main CLI entrypointlib/makeCrud.js
is responsible for collecting data from the userlib/buildTemplate.js
is responsible for augmenting the built-in template with data collected from the user