Answer the question
In order to leave comments, you need to log in
Is it possible to describe my authorization in swagger v3?
{
"securitySchemes": {
"cookieAuth": [
{
"type": "string",
"in": "cookie",
"name": "token"
},
{
"type": "string",
"in": "cookie",
"name": "session_id"
}
]
}
}
Answer the question
In order to leave comments, you need to log in
{
"openapi": "3.0.0",
"info": {
"version": "1.0.0",
"title": "Swagger Sample"
},
"components": {
"securitySchemes": {
"cookieAuth": {
"type": "apiKey",
"in": "cookie",
"name": "token"
},
"cookieSession": {
"type": "apiKey",
"in": "cookie",
"name": "session_id"
}
}
},
"security": [
{
"cookieSession": []
},
{
"cookieAuth": []
}
],
"servers": [
{
"url": "https://jsonplaceholder.typicode.com"
}
],
"paths": {
"/posts": {
"get": {
"description": "Returns a list of posts.",
"responses": {
"200": {
"description": "OK"
}
}
}
}
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question