diff --git a/platform/api.yml b/platform/api.yml index 23acaa6a..67a1c69a 100644 --- a/platform/api.yml +++ b/platform/api.yml @@ -588,6 +588,8 @@ paths: $ref: "./paths/infrastructure/external-volumes/external-volumes.yml" "/v1/infrastructure/external-volumes/{externalVolumeId}": $ref: "./paths/infrastructure/external-volumes/external-volume.yml" + "/v1/infrastructure/external-volumes/sources": + $ref: "./paths/infrastructure/external-volumes/sources.yml" "/v1/infrastructure/external-volumes/{externalVolumeId}/access": $ref: "./paths/infrastructure/external-volumes/access.yml" "/v1/infrastructure/external-volumes/{externalVolumeId}/tasks": diff --git a/platform/paths/infrastructure/external-volumes/sources.yml b/platform/paths/infrastructure/external-volumes/sources.yml new file mode 100644 index 00000000..505ca77e --- /dev/null +++ b/platform/paths/infrastructure/external-volumes/sources.yml @@ -0,0 +1,37 @@ +get: + operationId: "getExternalVolumeSources" + summary: List External Volume Sources + description: Requires the `external-volumes-view` capability. + tags: + - External Volumes + responses: + 200: + description: Returns supported external volume sources and their capabilities. + content: + application/json: + schema: + type: object + required: + - data + properties: + data: + type: object + additionalProperties: + type: object + title: ExternalVolumeSource + required: + - capabilities + - creatable + properties: + capabilities: + type: object + description: Map where keys are attachment types and values are arrays of supported modes. + additionalProperties: + type: array + items: + type: string + creatable: + type: boolean + description: Whether volumes of this source type can be created via the API. + default: + $ref: ../../../../components/responses/errors/DefaultError.yml diff --git a/platform/paths/pipelines/triggerKeys/triggerKey.yml b/platform/paths/pipelines/triggerKeys/triggerKey.yml index 4d53af0a..e486e5fa 100644 --- a/platform/paths/pipelines/triggerKeys/triggerKey.yml +++ b/platform/paths/pipelines/triggerKeys/triggerKey.yml @@ -75,7 +75,7 @@ patch: - data properties: data: - $ref: ../../../../components/schemas/jobs/JobDescriptor.yml + $ref: ../../../../components/schemas/pipelines/trigger-keys/TriggerKey.yml default: $ref: ../../../../components/responses/errors/DefaultError.yml