cancel
Showing results for 
Search instead for 
Did you mean: 

How to define securityDefinitions for a path api_key

SOLVED
Highlighted
New Contributor

How to define securityDefinitions for a path api_key

Hi

 

I have a rest service like this:

/{api_key}/search?id=1

 

I would like to define in swagger yaml the securityDefinitions for it

But it allows only "header" or "query" for api_key. No way to set "path"

 

is this possible?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
New Contributor

Re: How to define securityDefinitions for a path api_key

2 REPLIES 2
Highlighted
Moderator

Re: How to define securityDefinitions for a path api_key

You can describe such an API key as a regular path parameter. It will not be part of securityDefinitions.


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
New Contributor

Re: How to define securityDefinitions for a path api_key

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors