Declare Authorization scheme in OpenAPI

This commit is contained in:
Quentin Dufour
2022-09-12 17:24:44 +02:00
parent 0a01b34e81
commit 5f0928f89c
+9 -4
View File
@@ -429,11 +429,13 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/KeyInfo'
$ref: '#/components/schemas/KeyInfo'
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
schemas:
NodeNetworkInfo:
type: object
@@ -554,7 +556,10 @@ components:
owner:
type: boolean
example: false
security:
- bearerAuth: []
servers:
- description: A local server
url: http://localhost:3903/v0/