cancel
Showing results for 
Search instead for 
Did you mean: 

Selective API security application

stephb
New Member

Selective API security application

Hi, 

I have an OpenAPI spec I built. All endpoints in the spec use some form of security (API Key, Token). Of course, the login endpoint does not use security when acquiring the login token. How can I represent in OpenAPI that the user does not need to use a Token for a specific endpoint while using some security scheme in other endpoints.

 

Thanks

1 REPLY 1
HKosova
Moderator

Re: Selective API security application

paths:
  /login:
    post:
      security: []   # <--- No security
      ...

 


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Top Kudoed Authors