Replies: 1 comment 21 replies
-
Hello @freez10 https://github.com/tsedio/tsed-cli/tree/master/packages/cli-generate-http-client You need to have the a custom command on your project level and implement the command class as following: But instead generating client code, you just need to have to write the swagger.json here: See you |
Beta Was this translation helpful? Give feedback.
21 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there.
As for now, in order to generate open api spec I have start the application.
Eg I have the following configuration '
I have to start the app eg with
yarn start
in order to get the specThe question is how do I generate the spec without having app fully up and running, listening on port etc.
Eg with
yarn generate:spec
having this script exited right after generation completesThe thing is that during the build process eg on CI\CD stage I need to also generate and publish API clients for other back-end and front-end services using the spec, so it would be great having possibility to generate the spec during build, instead of having to start app eg on dev env to get updated spec, then commit and push it so that clients could be generated by the actual spec.
Hope you got what I mean )
Beta Was this translation helpful? Give feedback.
All reactions