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

Feature: Response patching #293

Open
3 tasks done
nathanredblur opened this issue Aug 29, 2022 · 0 comments
Open
3 tasks done

Feature: Response patching #293

nathanredblur opened this issue Aug 29, 2022 · 0 comments

Comments

@nathanredblur
Copy link

Response patching is a technique when a mocked response is based on the actual response. This technique may be useful when working with an existing API with an intention to augment it for various purposes (i.e., experimenting or debugging).

so, what I need is to let the proxy resolve the request, then modify the response data.
Y try to do this using axios, but my API is in a https server and I get an error that I couldn't fix "unable to verify the first certificate" I tried with this approach https://backbencher.dev/articles/solved-unable-to-verify-first-certificate-axios-request and this https://technoteshelp.com/node-js-error-unable-to-verify-the-first-certificate-in-nodejs/

here you can see how what I want in other mocker https://mswjs.io/docs/recipes/response-patching

This feature is important because sometimes you are working in a feature where the data is dynamic and you want to work with that api data and plus your change, so patching is the best option to do it, but currently is impossible to do it even using axios.

  • I have checked for other similar issues
  • I have explained why this change is important
  • I have added necessary documentation (if appropriate)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant