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
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 Technical Writer
________________________

 Join SmartBear Connect next April in Boston to meet with software development, API and testing experts from around the world! Get your ticket today!
Highlighted
New Contributor

Re: How to define securityDefinitions for a path api_key