Dynamic mutator #833
Unanswered
mkermani144
asked this question in
Q&A
Replies: 1 comment
-
I also found the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I wonder if there is a way to generate api functions dynamically, using something like a mutator factory function.
As an example, suppose I want to customize the generated api functions based on their api spec. A use case would be to apply a custom axios response transformer based on the api function.
The current mutator doesn't support this, or I don't know how it can be used for such a thing. It can be defined only once and doesn't have access to the api spec. I'm looking for a new type of mutator: a mutator factory, which is a function which returns a mutator. Something like this:
Some use cases are adding axios transformers, credentials, etc. for just a special set of apis whose their speciality is known based on their spec .
Beta Was this translation helpful? Give feedback.
All reactions