Following is the Web API Url that I need to call (GET Request)
https://v-vabhan.visualstudio.com/_apis/wit/workitems?ids=9,10,11&$expand=all&api-version=2.2
Question -: How to add the 9,10,11 ids in the header???
I want to add this ids in the header
You cannot add the work item ids in to the header, otherwise the result is 404.
Related
In swaager-doc,i want to add a header param for all api .This param is for filter to search some information and is must required.
Any Suggestion for it.
Here is an example of how I passed my value through the URL; If I correctly remember, to pass any key/value in the URL, I just need to use the "?" after the URL and add my "key" and "value".
The error I get is a "401 unauthorized".
For query parameter, your should use code as shown below
https://<APP_NAME>.azurewebsites.net/api/<FUNCTION_NAME>?code=<API_KEY>
If by Http header then use x-functions-key.
Documentation
Im trying to add a custom header in my post request header in apache nifi, I have seen that in the configuration tab there's Attributes to send as http header (regex) I'm not very familiar with regex, any idea how to add a header and its value like the following : token : READ ?
PostHttp's "Attributes to Send as HTTP Headers (Regex)" property can accept a regex, but it will work just fine to specify a single attribute name like token. If you had multiple attribute you wanted to name, you could use a pipe to "or" them together:
token|attrib2|attrib3
For each attribute you selected, the attribute name and value are sent as the HTTP header name and value.
How can I remove a Header from response in grails. I have a filter which filters requests and in case response contains a specific header I want to remove it is this possible?
Thanks,
It looks like the only way to do this is to have your servlet filter wrap the response with an implementation of HttpServletResponseWrapper that filters out the header you want to remove. So you're not physically removing the header, but when the response is generated only the headers that your response wrapper returns will be included in the HTTP response.
I've not tried this, so if it does work, please let me know!
I am using "/reader/api/0/stream/items/ids" API to get the item ids for sources that I want.
I have quite a number of sources, so I repeated "s=" parameter to include in the api url.
However, google has given me an error of "URL is too long".
So the question is that How can I solve it so that I just use one time api call to get item ids for that many sources?
Thanks
It seems that /reader/api/0/stream/items/ids path supports a POST method. This means the amount of data you could pass by using POST verb is much more than by using a query string and a GET method.
So use https://www.google.com/reader/api/0/stream/items/ids URL for the post, and pass your query string as a post data. Don't forget to include an action token(T) which is required for POST requests.