Way to generate multiple contracts/api with single http-client with custom names programmatic using generateApi
#909
Unanswered
dylaginator
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to generate clients for multiple swagger files. I would like to have them custom named but keep
http-client.ts
as a single file as it holds shared code. I managed to generate multiple<CustomName>-data-contracts.ts
files, but I'm unable to set forApi.ts
file.Output of the operation is that I get set of files:
Api.ts
, 'myServiceName-data-contracts.ts` and 'http-clients.ts'.Is it a bug or is there any solution?
I checked source code and added some props that are not mentioned in config and they works.
Below the config for
generateApi
I'm using:If it is a bug or if I could contribute to it please let me know.
Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions