-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
2,415 additions
and
877 deletions.
There are no files selected for viewing
1,701 changes: 1,215 additions & 486 deletions
1,701
x-pack/plugins/cases/common/openapi/bundled.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
x-pack/plugins/cases/common/openapi/components/examples/create_case_request.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
summary: Create a security case that uses a Jira connector. | ||
value: | ||
{ | ||
"description": "James Bond clicked on a highly suspicious email banner advertising cheap holidays for underpaid civil servants.", | ||
"title": "This case will self-destruct in 5 seconds", | ||
"tags": [ "phishing","social engineering"], | ||
"connector": { | ||
"id": "131d4448-abe0-4789-939d-8ef60680b498", | ||
"name": "My connector", | ||
"type": ".jira", | ||
"fields": { | ||
"issueType": "10006", | ||
"priority": "High", | ||
"parent": null | ||
} | ||
}, | ||
"settings": { | ||
"syncAlerts": true | ||
}, | ||
"owner": "securitySolution" | ||
} |
42 changes: 42 additions & 0 deletions
42
x-pack/plugins/cases/common/openapi/components/examples/create_case_response.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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
summary: The create case API returns a JSON object that includes the user who created the case and the case identifier, version, and creation time. | ||
value: | ||
{ | ||
"id": "66b9aa00-94fa-11ea-9f74-e7e108796192", | ||
"version": "WzUzMiwxXQ==", | ||
"comments": [], | ||
"totalComment": 0, | ||
"totalAlerts": 0, | ||
"title": "This case will self-destruct in 5 seconds", | ||
"tags": [ | ||
"phishing", | ||
"social engineering", | ||
"bubblegum" | ||
], | ||
"settings": { | ||
"syncAlerts": true | ||
}, | ||
"owner": "securitySolution", | ||
"description": "James Bond clicked on a highly suspicious email banner advertising cheap holidays for underpaid civil servants. Operation bubblegum is active. Repeat - operation bubblegum is now active", | ||
"closed_at": null, | ||
"closed_by": null, | ||
"created_at": "2022-05-13T09:16:17.416Z", | ||
"created_by": { | ||
"email": "ahunley@imf.usa.gov", | ||
"full_name": "Alan Hunley", | ||
"username": "ahunley" | ||
}, | ||
"status": "open", | ||
"updated_at": null, | ||
"updated_by": null, | ||
"connector": { | ||
"id": "131d4448-abe0-4789-939d-8ef60680b498", | ||
"name": "My connector", | ||
"type": ".jira", | ||
"fields": { | ||
"issueType": "10006", | ||
"parent": null, | ||
"priority": "High" | ||
} | ||
}, | ||
"external_service": null | ||
} |
29 changes: 29 additions & 0 deletions
29
x-pack/plugins/cases/common/openapi/components/examples/update_case_request.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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
summary: Update the description, tags, and connector of case ID `a18b38a0-71b0-11ea-a0b2-c51ea50a58e2``. | ||
value: | ||
{ | ||
"cases": [ | ||
{ | ||
"id": "a18b38a0-71b0-11ea-a0b2-c51ea50a58e2", | ||
"version": "WzIzLDFd", | ||
"connector": { | ||
"id": "131d4448-abe0-4789-939d-8ef60680b498", | ||
"name": "My connector", | ||
"type": ".jira", | ||
"fields": { | ||
"issueType": "10006", | ||
"priority": null, | ||
"parent": null | ||
} | ||
}, | ||
"description": "James Bond clicked on a highly suspicious email banner advertising cheap holidays for underpaid civil servants. Operation bubblegum is active. Repeat - operation bubblegum is now active!", | ||
"tags": [ | ||
"phishing", | ||
"social engineering", | ||
"bubblegum" | ||
], | ||
"settings": { | ||
"syncAlerts": true | ||
} | ||
} | ||
] | ||
} |
60 changes: 60 additions & 0 deletions
60
x-pack/plugins/cases/common/openapi/components/examples/update_case_response.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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
summary: This is an example response when the description, tags, and connector were updated for case ID `a18b38a0-71b0-11ea-a0b2-c51ea50a58e2`. | ||
value: | ||
[ | ||
{ | ||
"id": "66b9aa00-94fa-11ea-9f74-e7e108796192", | ||
"version": "WzU0OCwxXQ==", | ||
"comments": [], | ||
"totalComment": 0, | ||
"totalAlerts": 0, | ||
"title": "This case will self-destruct in 5 seconds", | ||
"tags": [ | ||
"phishing", | ||
"social engineering", | ||
"bubblegum" | ||
], | ||
"settings": { | ||
"syncAlerts": true | ||
}, | ||
"owner": "securitySolution", | ||
"description": "James Bond clicked on a highly suspicious email banner advertising cheap holidays for underpaid civil servants. Operation bubblegum is active. Repeat - operation bubblegum is now active!", | ||
"closed_at": null, | ||
"closed_by": null, | ||
"created_at": "2022-05-13T09:16:17.416Z", | ||
"created_by": { | ||
"email": "ahunley@imf.usa.gov", | ||
"full_name": "Alan Hunley", | ||
"username": "ahunley" | ||
}, | ||
"status": "open", | ||
"updated_at": "2022-05-13T09:48:33.043Z", | ||
"updated_by": { | ||
"email": "classified@hms.oo.gov.uk", | ||
"full_name": "Classified", | ||
"username": "M" | ||
}, | ||
"connector": { | ||
"id": "131d4448-abe0-4789-939d-8ef60680b498", | ||
"name": "My connector", | ||
"type": ".jira", | ||
"fields": { | ||
"issueType": "10006", | ||
"parent": null, | ||
"priority": null, | ||
} | ||
}, | ||
"external_service": { | ||
"external_title": "IS-4", | ||
"pushed_by": { | ||
"full_name": "Classified", | ||
"email": "classified@hms.oo.gov.uk", | ||
"username": "M" | ||
}, | ||
"external_url": "https://hms.atlassian.net/browse/IS-4", | ||
"pushed_at": "2022-05-13T09:20:40.672Z", | ||
"connector_id": "05da469f-1fde-4058-99a3-91e4807e2de8", | ||
"external_id": "10003", | ||
"connector_name": "Jira" | ||
} | ||
} | ||
] |
File renamed without changes.
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