Ask a Question

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
SmartBear Alumni (Retired)

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. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: