Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Add possibility of generating 'header' parameters #3

Closed
marcgibbons opened this issue Jun 17, 2013 · 3 comments
Closed

Add possibility of generating 'header' parameters #3

marcgibbons opened this issue Jun 17, 2013 · 3 comments

Comments

@marcgibbons
Copy link
Owner

This may not be useful...

@miguelfg
Copy link

I find it very usefull

@sbussetti
Copy link

Consider this (actual real world) use case.

I have an API that is location dependent. All results returned by the API depend on the geographical location reported by the user. Rather than force developers working against my API to always provide lat/lng in their query strings, they can provide it in a single location in their code by setting a Location header on all their requests.

Being able to set ad-hoc headers in the same way that you can set an api_key for the Authorization header would be extremely useful.

Another use case for this would be APIs with polymorphic content based on the Accept header. Developers testing my API should be able to set that header in order to specify their desired response type.

@miguelfg
Copy link

miguelfg commented Oct 2, 2015

+1 @sbussetti

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

No branches or pull requests

3 participants