express-jsdoc-swagger icon indicating copy to clipboard operation
express-jsdoc-swagger copied to clipboard

Adding REQUEST Header for Apis

Open RadientBrain opened this issue 2 years ago • 2 comments
trafficstars

I can't find any method to add REQUEST headers for api documentation. Is there any method to do it? 'Cause only the RESPONSE header feature is only there.

RadientBrain avatar Mar 20 '23 06:03 RadientBrain

I think I got the solution, the trick to add REQUEST headers is just by adding .header in the params with the header name like this:

@param {string} example.header - example description

RadientBrain avatar Mar 20 '23 06:03 RadientBrain

I used this but it does't change the url thats being generated on "try it" but the UI changes the name to "header". So I am still at the starting point, any help will be beneficial.

RadientBrain avatar Mar 20 '23 06:03 RadientBrain