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

Parameterize Responses for Mocked Post Requests #45

Open
tylerpashigian opened this issue Dec 14, 2023 · 0 comments
Open

Parameterize Responses for Mocked Post Requests #45

tylerpashigian opened this issue Dec 14, 2023 · 0 comments

Comments

@tylerpashigian
Copy link

I am integrating with an API that relies on the response of a POST request (updating an item) that returns the updated model and our front end updates our local state from that response. In order to run integration tests, I would like to confirm that the value we pass into the endpoint is returned from the mock (or at least certain values).

Is there a configuration we can set (or a change to Swagger we can make) to ensure our desired fields are returned as the req data rather than faker fields?

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