-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): Allow transferring credentials in Public API (#10259)
- Loading branch information
Showing
8 changed files
with
127 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
packages/cli/src/PublicApi/v1/handlers/credentials/spec/paths/credentials.id.transfer.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
put: | ||
x-eov-operation-id: transferCredential | ||
x-eov-operation-handler: v1/handlers/credentials/credentials.handler | ||
tags: | ||
- Workflow | ||
summary: Transfer a credential to another project. | ||
description: Transfer a credential to another project. | ||
parameters: | ||
- $ref: '../schemas/parameters/credentialId.yml' | ||
requestBody: | ||
description: Destination project for the credential transfer. | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
destinationProjectId: | ||
type: string | ||
description: The ID of the project to transfer the credential to. | ||
required: | ||
- destinationProjectId | ||
required: true | ||
responses: | ||
'200': | ||
description: Operation successful. | ||
'400': | ||
$ref: '../../../../shared/spec/responses/badRequest.yml' | ||
'401': | ||
$ref: '../../../../shared/spec/responses/unauthorized.yml' | ||
'404': | ||
$ref: '../../../../shared/spec/responses/notFound.yml' |
6 changes: 6 additions & 0 deletions
6
packages/cli/src/PublicApi/v1/handlers/credentials/spec/schemas/parameters/credentialId.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: id | ||
in: path | ||
description: The ID of the credential. | ||
required: true | ||
schema: | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters