-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated commit 'Removed the id path from workflow post operation (#…
…1858)' by github action: 11333163269
- Loading branch information
1 parent
e8bc30a
commit 198cab5
Showing
2 changed files
with
125 additions
and
126 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -216,131 +216,5 @@ delete: | |
$ref: '../../../v3/responses/403.yaml' | ||
'429': | ||
$ref: '../../../v3/responses/429.yaml' | ||
'500': | ||
$ref: '../../../v3/responses/500.yaml' | ||
post: | ||
operationId: createWorkflow | ||
tags: | ||
- Workflows | ||
summary: Create Workflow | ||
description: >- | ||
Create a new workflow with the desired trigger and steps specified in the request body. | ||
security: | ||
- userAuth: [sp:workflow:manage] | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
allOf: | ||
- required: | ||
- name | ||
- owner | ||
- $ref: '../../schemas/workflows/WorkflowBody.yaml' | ||
examples: | ||
Event Trigger: | ||
description: Workflow initiated by an event trigger | ||
value: | ||
name: Send Email | ||
owner: | ||
type: IDENTITY | ||
id: 2c91808568c529c60168cca6f90c1313 | ||
name: William Wilson | ||
description: Send an email to the identity who's attributes changed. | ||
definition: | ||
start: Send Email Test | ||
steps: | ||
Send Email: | ||
actionId: sp:send-email | ||
attributes: | ||
body: This is a test | ||
from: [email protected] | ||
recipientId.$: "$.identity.id" | ||
subject: test | ||
nextStep: success | ||
selectResult: | ||
type: action | ||
success: | ||
type: success | ||
enabled: false | ||
trigger: | ||
type: EVENT | ||
attributes: | ||
id: idn:identity-attributes-changed | ||
filter: "$.changes[?(@.attribute == 'manager')]" | ||
Scheduled Trigger: | ||
description: Workflow initiated by a scheduled trigger | ||
value: | ||
name: Send Email | ||
owner: | ||
type: IDENTITY | ||
id: 2c91808568c529c60168cca6f90c1313 | ||
name: William Wilson | ||
description: Send an email to the identity who's attributes changed. | ||
definition: | ||
start: Send Email Test | ||
steps: | ||
Send Email: | ||
actionId: sp:send-email | ||
attributes: | ||
body: This is a test | ||
from: [email protected] | ||
recipientId.$: "$.identity.id" | ||
subject: test | ||
nextStep: success | ||
selectResult: | ||
type: action | ||
success: | ||
type: success | ||
enabled: false | ||
trigger: | ||
type: SCHEDULED | ||
attributes: | ||
cronString: 0 * */3 */5 * | ||
External Trigger: | ||
description: Workflow initiated by an external trigger | ||
value: | ||
name: Send Email | ||
owner: | ||
type: IDENTITY | ||
id: 2c91808568c529c60168cca6f90c1313 | ||
name: William Wilson | ||
description: Send an email to the identity whose attributes changed. | ||
definition: | ||
start: Send Email Test | ||
steps: | ||
Send Email: | ||
actionId: sp:send-email | ||
attributes: | ||
body: This is a test | ||
from: [email protected] | ||
recipientId.$: "$.identity.id" | ||
subject: test | ||
nextStep: success | ||
selectResult: | ||
type: action | ||
success: | ||
type: success | ||
enabled: false | ||
trigger: | ||
type: EXTERNAL | ||
attributes: | ||
name: search-and-notify | ||
description: Run a search and notify the results | ||
responses: | ||
'200': | ||
description: The Workflow object | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/workflows/Workflow.yaml' | ||
'400': | ||
$ref: '../../../v3/responses/400.yaml' | ||
'401': | ||
$ref: '../../../v3/responses/401.yaml' | ||
'403': | ||
$ref: '../../../v3/responses/403.yaml' | ||
'429': | ||
$ref: '../../../v3/responses/429.yaml' | ||
'500': | ||
$ref: '../../../v3/responses/500.yaml' |
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 |
---|---|---|
|
@@ -27,3 +27,128 @@ get: | |
$ref: '../../../v3/responses/429.yaml' | ||
'500': | ||
$ref: '../../../v3/responses/500.yaml' | ||
post: | ||
operationId: createWorkflow | ||
tags: | ||
- Workflows | ||
summary: Create Workflow | ||
description: >- | ||
Create a new workflow with the desired trigger and steps specified in the request body. | ||
security: | ||
- userAuth: [sp:workflow:manage] | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
allOf: | ||
- required: | ||
- name | ||
- $ref: '../../schemas/workflows/WorkflowBody.yaml' | ||
examples: | ||
Event Trigger: | ||
description: Workflow initiated by an event trigger | ||
value: | ||
name: Send Email | ||
owner: | ||
type: IDENTITY | ||
id: 2c91808568c529c60168cca6f90c1313 | ||
name: William Wilson | ||
description: Send an email to the identity who's attributes changed. | ||
definition: | ||
start: Send Email Test | ||
steps: | ||
Send Email: | ||
actionId: sp:send-email | ||
attributes: | ||
body: This is a test | ||
from: [email protected] | ||
recipientId.$: "$.identity.id" | ||
subject: test | ||
nextStep: success | ||
selectResult: | ||
type: action | ||
success: | ||
type: success | ||
enabled: false | ||
trigger: | ||
type: EVENT | ||
attributes: | ||
id: idn:identity-attributes-changed | ||
filter: "$.changes[?(@.attribute == 'manager')]" | ||
Scheduled Trigger: | ||
description: Workflow initiated by a scheduled trigger | ||
value: | ||
name: Send Email | ||
owner: | ||
type: IDENTITY | ||
id: 2c91808568c529c60168cca6f90c1313 | ||
name: William Wilson | ||
description: Send an email to the identity who's attributes changed. | ||
definition: | ||
start: Send Email Test | ||
steps: | ||
Send Email: | ||
actionId: sp:send-email | ||
attributes: | ||
body: This is a test | ||
from: [email protected] | ||
recipientId.$: "$.identity.id" | ||
subject: test | ||
nextStep: success | ||
selectResult: | ||
type: action | ||
success: | ||
type: success | ||
enabled: false | ||
trigger: | ||
type: SCHEDULED | ||
attributes: | ||
cronString: 0 * */3 */5 * | ||
External Trigger: | ||
description: Workflow initiated by an external trigger | ||
value: | ||
name: Send Email | ||
owner: | ||
type: IDENTITY | ||
id: 2c91808568c529c60168cca6f90c1313 | ||
name: William Wilson | ||
description: Send an email to the identity whose attributes changed. | ||
definition: | ||
start: Send Email Test | ||
steps: | ||
Send Email: | ||
actionId: sp:send-email | ||
attributes: | ||
body: This is a test | ||
from: [email protected] | ||
recipientId.$: "$.identity.id" | ||
subject: test | ||
nextStep: success | ||
selectResult: | ||
type: action | ||
success: | ||
type: success | ||
enabled: false | ||
trigger: | ||
type: EXTERNAL | ||
attributes: | ||
name: search-and-notify | ||
description: Run a search and notify the results | ||
responses: | ||
'200': | ||
description: The Workflow object | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/workflows/Workflow.yaml' | ||
'400': | ||
$ref: '../../../v3/responses/400.yaml' | ||
'401': | ||
$ref: '../../../v3/responses/401.yaml' | ||
'403': | ||
$ref: '../../../v3/responses/403.yaml' | ||
'429': | ||
$ref: '../../../v3/responses/429.yaml' | ||
'500': | ||
$ref: '../../../v3/responses/500.yaml' |