Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Query parameters ignored when saving fixtures #73

Open
kadamwhite opened this issue Jan 19, 2016 · 0 comments
Open

Query parameters ignored when saving fixtures #73

kadamwhite opened this issue Jan 19, 2016 · 0 comments

Comments

@kadamwhite
Copy link

I have the following API queries for which I want to mock responses:

Despite this text in the node-replay readme:

All responses are stored as text files using the simplest format ever […]

  • First comes the request path (including query string)

with REPLAY=record, each variant is not stored as a separate request file: I only get one file, set to the query http:https://wpapi.loc/wp-json/wp/v2/posts, and replaying the requests for the query string variants throws an error. Unless I can replay multiple responses from the same endpoint, based on query string, replay isn't going to do my application a lot of good.

Is there a way to get Replay to record responses inclusive of query strings?

Version details: Latest version of replay & superagent

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant