OpenAPI swagger properly working scheme
@@ -19,6 +19,8 @@ paths:
type: array
items:
$ref: '#/definitions/User'
+ security:
+ - Bearer: []
post:
tags:
- users
@@ -37,6 +39,8 @@ paths:
description: Duplication error.
'500':
$ref: '#/responses/InternalError'
+ security:
+ - Bearer: []
/reservations:
get:
tags:
@@ -70,6 +74,8 @@ paths:
type: array
items:
$ref: '#/definitions/ReservationEvent'
+ security:
+ - Bearer: []
post:
tags:
- reservations
@@ -86,6 +92,8 @@ paths:
description: Successfully created.
'500':
$ref: '#/responses/InternalError'
+ security:
+ - Bearer: []
/reservations/{id}:
delete:
tags:
@@ -102,6 +110,8 @@ paths:
description: Successfully deleted.
'404':
$ref: '#/responses/NotFound'
+ security:
+ - Bearer: []
# TODO Nodes: Add more specific schemas, response codes + descriptions
/nodes/hostnames:
get:
@@ -116,6 +126,8 @@ paths:
type: array
items:
type: string
+ security:
+ - Bearer: []
/nodes/metrics:
get:
tags:
@@ -127,6 +139,8 @@ paths:
description: 'Success'
schema:
type: object
+ security:
+ - Bearer: []
/nodes/{hostname}/gpu/info:
get:
tags:
@@ -144,6 +158,8 @@ paths:
type: object
'404':
$ref: '#/responses/NotFound'
+ security:
+ - Bearer: []
/nodes/{hostname}/gpu/metrics:
get:
tags:
@@ -162,6 +178,8 @@ paths:
type: object
'404':
$ref: '#/responses/NotFound'
+ security:
+ - Bearer: []
/nodes/{hostname}/gpu/processes:
get:
tags:
@@ -179,6 +197,8 @@ paths:
type: object
'404':
$ref: '#/responses/NotFound'
+ security:
+ - Bearer: []
definitions:
CreateUserController:
type: object
