OAPI: add operation to get the shared storage, for current platform
Add an operation `getSharedStorage` that can return the shared storage location, adjusted for the given audience & platform. This uses the two-way variables system to adjust the Manager's configuration.
This commit is contained in:
parent
bb377e7572
commit
48a1c06277
@ -167,6 +167,30 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema: { $ref: "#/components/schemas/ManagerVariables" }
|
schema: { $ref: "#/components/schemas/ManagerVariables" }
|
||||||
|
|
||||||
|
/api/v3/configuration/shared-storage/{audience}/{platform}:
|
||||||
|
summary: Endpoint for getting the shared storage location from Flamenco Manager's configuration.
|
||||||
|
get:
|
||||||
|
summary: >
|
||||||
|
Get the shared storage location of this Manager, adjusted for the given
|
||||||
|
audience and platform.
|
||||||
|
operationId: getSharedStorage
|
||||||
|
tags: [meta]
|
||||||
|
parameters:
|
||||||
|
- name: audience
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
schema: { $ref: "#/components/schemas/ManagerVariableAudience" }
|
||||||
|
- name: platform
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
schema: { type: string }
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: Normal response.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema: { $ref: "#/components/schemas/SharedStorageLocation" }
|
||||||
|
|
||||||
## Worker
|
## Worker
|
||||||
|
|
||||||
/api/v3/worker/register-worker:
|
/api/v3/worker/register-worker:
|
||||||
@ -1157,6 +1181,21 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
enum: [workers, users]
|
enum: [workers, users]
|
||||||
|
|
||||||
|
SharedStorageLocation:
|
||||||
|
type: object
|
||||||
|
description: >
|
||||||
|
Location of the shared storage, adjusted for a specific audience &
|
||||||
|
platform. This uses two-way variables to adjust the shared storage path
|
||||||
|
from the Manager's configuration.
|
||||||
|
properties:
|
||||||
|
"location": { type: string }
|
||||||
|
"audience": { $ref: "#/components/schemas/ManagerVariableAudience" }
|
||||||
|
"platform": { type: string }
|
||||||
|
"shamanEnabled":
|
||||||
|
description: Whether the Shaman file transfer API is available.
|
||||||
|
type: boolean
|
||||||
|
required: [location, audience, platform, shamanEnabled]
|
||||||
|
|
||||||
PathCheckInput:
|
PathCheckInput:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user