Description
Swagger and OpenAPI usually expose API documentation at:
/api-docs
Then approach is mirrored across your generators:
https://github.com/OpenAPITools/openapi-generator/search?q=api-docs&unscoped_q=api-docs
However nodejs-express-server uses /api-doc
this.app.use('/api-doc', swaggerUI.serve, swaggerUI.setup(this.schema));
https://github.com/OpenAPITools/openapi-generator/search?q=api-doc&unscoped_q=api-doc
Which is confusing because in the README.md it says /api-docs
- API documentation, and to check the available endpoints:
http://localhost:3000/api-docs/
openapi-generator version
"@openapitools/openapi-generator-cli": "^1.0.15-4.3.1"
OpenAPI declaration file content or url
https://petstore.swagger.io/v2/swagger.yaml
Command line used for generation
npx @openapitools/openapi-generator-cli generate -i ./petstore.yaml -g nodejs-express-server -o ./src
Steps to reproduce
npm install @openapitools/openapi-generator-cli --save-dev
npx @openapitools/openapi-generator-cli list
npx @openapitools/openapi-generator-cli generate -i ./petstore.yaml -g nodejs-express-server -o ./src
cd src
npm install
npm start
Related issues/PRs
none
Suggest a fix
Update strings from /api-doc to /api-docs
Description
Swagger and OpenAPI usually expose API documentation at:
/api-docsThen approach is mirrored across your generators:
https://github.com/OpenAPITools/openapi-generator/search?q=api-docs&unscoped_q=api-docs
However nodejs-express-server uses
/api-docthis.app.use('/api-doc', swaggerUI.serve, swaggerUI.setup(this.schema));https://github.com/OpenAPITools/openapi-generator/search?q=api-doc&unscoped_q=api-doc
Which is confusing because in the README.md it says
/api-docsopenapi-generator version
"@openapitools/openapi-generator-cli": "^1.0.15-4.3.1"OpenAPI declaration file content or url
https://petstore.swagger.io/v2/swagger.yaml
Command line used for generation
npx @openapitools/openapi-generator-cli generate -i ./petstore.yaml -g nodejs-express-server -o ./srcSteps to reproduce
Related issues/PRs
none
Suggest a fix
Update strings from
/api-docto/api-docs