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

Proxy full URL for API requests preserving query string #346

Merged
merged 1 commit into from Nov 30, 2013
Merged

Proxy full URL for API requests preserving query string #346

merged 1 commit into from Nov 30, 2013

Conversation

dpowell
Copy link
Contributor

@dpowell dpowell commented Nov 30, 2013

No description provided.

stefanpenner added a commit that referenced this pull request Nov 30, 2013
Proxy full URL for API requests preserving query string
@stefanpenner stefanpenner merged commit a26b5a3 into stefanpenner:master Nov 30, 2013
@stefanpenner
Copy link
Owner

good catch, thanks!

@ganicus
Copy link

ganicus commented Mar 5, 2014

Out of pure curiosity, what would be the appropriate way to stub a query string request?

@stefanpenner
Copy link
Owner

@ganicus thats a good question for señor @machty

@machty
Copy link
Collaborator

machty commented Mar 5, 2014

I think @ganicus is referring to stubbing an ajax call with a query string, right? Not really sure the EAK way of doing this

@ganicus
Copy link

ganicus commented Mar 5, 2014

Right! Suppose I had a query string like "/images?ids[]=72405&ids[]=72406&ids[]=72407".

I think I'd like to develop something that would stub a generic placeholder (disregarding the image ids) for each image. Is anyone anywhere of any similar design pattern for this? Maybe something used for testing or development?

EDIT: A little digging into express.js did wonders. I can get my query parameters simply by "req.query".

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

Successfully merging this pull request may close these issues.

None yet

4 participants