openapistack / openapi-client-axios

JavaScript client library for consuming OpenAPI-enabled APIs with axios
https://openapistack.co
MIT License
558 stars 67 forks source link

[question] Is it possible to generate js client code to avoid accessing openapi doc which should not published on production for safety reasons? #128

Closed Bryant-Yang closed 1 year ago

Bryant-Yang commented 2 years ago

First thanks to this wonderful tool, I've tested it in my vue project, and get rid of lots of boilerplate js codes used to request api with axios.

The only thing I'm worried about is the openapi doc must be published to browser for doing runtime request, It doesn't feel safe to publish all apis on production.

Bryant-Yang commented 2 years ago

found another repository in typescript: openapi-typescript-codegen