/openapi-rest-generator

generates default spec for rest apis

Primary LanguageJavaScript

Openapi generator

Automatically generate OpenApi specification document (yaml or json) for a REST API given its resources

Usage

node index.js \
  --resource=User,Users \
  --resource=Group,Groups \
  --resource=Role,Roles \
  --resource=ACLRule,ACLRules \
  --output=./openapi.json \
  --format=json