All apps/swagger-typescript-api

swagger-typescript-api

swagger-typescript-api

Generate a TypeScript or JavaScript API client from a Swagger/OpenAPI schema.

Runs as swagger-typescript-api|macOS, Linux, Windows

Command form

ai-draft · 1 task · 14 fields

Generate an API client from a schema file or URL. Template generation and SSL/proxy switches are not included.

Opens the form; the finished command lands at your prompt, unrun
otty gui swagger-typescript-api
Generate API clientExample values, fixed in this page — nothing here reaches a terminal
Basic
Schema path or URL*
string
Output folder
directory
Output file name
string
Axios HTTP client
--axios
Separate files
--modular
Union enums
--union-enums
TasksEach one presets the form for one job
Generate client
pathoutputnameaxiosmodularunion_enums
ParametersOnly these flags are editable in the form
Schema path or URL
string
--path-p
Output folder
path
--output-o
Output file name
Default is Api.ts.
string
--name-n
Templates folder
path
--templates-t
Axios HTTP client
boolean
--axios
Separate files
boolean
--modular
JavaScript output
boolean
--js
Union enums
boolean
--union-enums
Route types
boolean
--route-types
No API class
boolean
--no-client
Response info
boolean
--responses
Clean output folder first
May delete existing files in the output folder.
boolean
--clean-output
Type prefix
string
--type-prefix
Errors only
boolean
--silent
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed swagger-typescript-api against its version. A form that does not match your version is not offered.