cancel
Showing results for 
Search instead for 
Did you mean: 

How to define securityDefinitions for a path api_key

SOLVED
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
New Contributor

Re: How to define securityDefinitions for a path api_key

2 REPLIES 2
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 Technical Writer
________________________
Vote up helpful replies.
Accept this reply if you think it's the best solution to your question.
New Contributor

Re: How to define securityDefinitions for a path api_key

New Here?
Join us and watch the welcome video:
Watch the new Interview