Merge pull request #338 from CyberL1/master
Add token authorization method to swagger openapi
This commit is contained in:
commit
5fa3820d54
@ -32,7 +32,8 @@
|
|||||||
"description": "User not found",
|
"description": "User not found",
|
||||||
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } }
|
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } }
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"security": [{ "Token": [] }]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/users/@me": {
|
"/users/@me": {
|
||||||
@ -46,7 +47,8 @@
|
|||||||
"description": "Authenticated user",
|
"description": "Authenticated user",
|
||||||
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserPublic" } } }
|
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserPublic" } } }
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"security": [{ "Token": [] }]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -1470,9 +1472,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"requestBodies": {},
|
"requestBodies": {},
|
||||||
"securitySchemes": {},
|
"securitySchemes": {
|
||||||
|
"Token": {
|
||||||
|
"type": "apiKey",
|
||||||
|
"name": "Authorization",
|
||||||
|
"in": "header"
|
||||||
|
}
|
||||||
|
},
|
||||||
"links": {},
|
"links": {},
|
||||||
"callbacks": {}
|
"callbacks": {}
|
||||||
},
|
}
|
||||||
"security": []
|
}
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user