Forum Discussion

nrrayengar's avatar
Frequent Visitor
3 years ago

Reusing the Header Parameter

I need to add the Authorization parameter to every endpoint in my document. To avoid repetition, I did create a `parameter` section in the `components` as the following and linked it at the required place:

  name: authorization
  in: header
  description: ''
  required: true
   type: string
   example: '<your_api_key_token>'


But then I get a message that reads "Header parameters named Authorization are ignored..." Is there any way to solve this. Please bear in mind that the limitation I have is I need to add the Authorization  information in every endpoint and I have some 100 endpoints. 


2 Replies