Skip to content

zongben/jvertswag-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jvertswag

To install dependencies:

bun install

To convert json file to swagger schema:

bun run start -f [path to json file] [-g] [gap value]

call an api to swagger schema:

bun run start -X [method] -R [api root url] -P [api path] -p [params] -q [query] -H [headers] [-g] [gap value]

example:

bun run start -R http://localhost:80 -P /api/book/{bookId} -H Content-Type=application/json -X PUT -c "\*" -d %reqBodyPath% -p bookId=1

To build executable:

bun build ./src/index.ts --compile --outfile ./dist/jvertswag

About

convert json file to swagger object schema

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published