AndyTGardner
6 years agoNew Contributor
Cookie Authentication
As per the SwaggerHub documentation, I have created a login API which sends back a Session Id by setting a cookie. The YAML is as follows
responses:
'200':
description: >
...
- 6 years ago
You don't need to define it as a parameter, but you do need to define the 'security' at the top level or operations to apply the securityScheme. Check out Step 2 in https://swagger.io/docs/specification/authentication/.