Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone production or development responses to local environment #46

Open
abalioni opened this issue May 27, 2020 · 2 comments
Open

Clone production or development responses to local environment #46

abalioni opened this issue May 27, 2020 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@abalioni
Copy link

The idea of this feature would be a way of cloning/downloading the responses received by production or development APIs to the local environment.

By that the developer can make local changes using data that is as close as possible from the other environments.

@adrifmonte
Copy link

I was thinking about having a custom onProxyRes in my fake-backend project that would fetch the proxy response and create the fixture file in the data repository.

Unfortunately, I would have to reimplement how the-fake-backend normalizes the path to do so.

Maybe exporting the path normalization function could help, or better yet, support that out of the box in a new enable record option.

@fsmaia
Copy link
Collaborator

fsmaia commented Jun 11, 2021

Amazing suggestion!

onProxyRes would cover on-demand cloning, instead of in batch, but it is definitely a great start!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants