forked from Deuxfleurs/garage
Declare Authorization scheme in OpenAPI
This commit is contained in:
parent
0a01b34e81
commit
5f0928f89c
1 changed files with 9 additions and 4 deletions
|
@ -429,11 +429,13 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/KeyInfo'
|
$ref: '#/components/schemas/KeyInfo'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
components:
|
components:
|
||||||
|
securitySchemes:
|
||||||
|
bearerAuth:
|
||||||
|
type: http
|
||||||
|
scheme: bearer
|
||||||
schemas:
|
schemas:
|
||||||
NodeNetworkInfo:
|
NodeNetworkInfo:
|
||||||
type: object
|
type: object
|
||||||
|
@ -554,7 +556,10 @@ components:
|
||||||
owner:
|
owner:
|
||||||
type: boolean
|
type: boolean
|
||||||
example: false
|
example: false
|
||||||
|
|
||||||
|
security:
|
||||||
|
- bearerAuth: []
|
||||||
|
|
||||||
servers:
|
servers:
|
||||||
- description: A local server
|
- description: A local server
|
||||||
url: http://localhost:3903/v0/
|
url: http://localhost:3903/v0/
|
||||||
|
|
Loading…
Reference in a new issue