OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
[ ] [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
I'm using the typescript-axios generator. The creation of the client is not difficult, however there is 0 documentation about the usage.
How should it be initialised? It would be really nice to add examples about the meanings of the API exports:
ResourceApi, ..ApiFn, ApiFactory: What are the differences?
const client = new WikidataApi();
^
TypeError: openapi_1.WikidataApi is not a constructor
However I'm getting this error when initializing the class.
Bug Report Checklist
Description
I'm using the typescript-axios generator. The creation of the client is not difficult, however there is 0 documentation about the usage. How should it be initialised? It would be really nice to add examples about the meanings of the API exports: ResourceApi, ..ApiFn, ApiFactory: What are the differences?
However I'm getting this error when initializing the class.
openapi-generator version
"@openapitools/openapi-generator-cli": "^2.5.1"
OpenAPI declaration file content or url
https://entitree-openapi.vercel.app/api/openapi.json
Generation Details
openapi-generator-cli generate -i src/openapi.json -g typescript-axios -o src/openapi
Steps to reproduce
Related issues/PRs
Suggest a fix