-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
20 changed files
with
2,866 additions
and
11,706 deletions.
There are no files selected for viewing
3,440 changes: 0 additions & 3,440 deletions
3,440
x-pack/plugins/cases/docs/openapi/bundled-min.json
This file was deleted.
Oops, something went wrong.
2,389 changes: 0 additions & 2,389 deletions
2,389
x-pack/plugins/cases/docs/openapi/bundled-min.yaml
This file was deleted.
Oops, something went wrong.
4,350 changes: 1,516 additions & 2,834 deletions
4,350
x-pack/plugins/cases/docs/openapi/bundled.json
Large diffs are not rendered by default.
Oops, something went wrong.
4,111 changes: 1,234 additions & 2,877 deletions
4,111
x-pack/plugins/cases/docs/openapi/bundled.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
107 changes: 71 additions & 36 deletions
107
x-pack/plugins/cases/docs/openapi/components/examples/get_case_activity_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 |
---|---|---|
@@ -1,37 +1,72 @@ | ||
summary: Retrieves all activity for a case | ||
value: | ||
[ | ||
{ | ||
"created_at":"2022-07-14T20:11:24.947Z", | ||
"created_by":{"username":"elastic","email":null,"full_name":null}, | ||
"owner":"cases", | ||
"action":"create", | ||
"payload":{ | ||
"description":"A case description", | ||
"title":"Case title 1", | ||
"tags":["tag 1"], | ||
"connector":{"name":"none","type":".none","fields":null,"id":"none"}, | ||
"settings":{"syncAlerts":true}, | ||
"owner":"cases", | ||
"severity":"low", | ||
"status":"open" | ||
}, | ||
"type":"create_case", | ||
"action_id":"22fd3e30-03b1-11ed-920c-974bfa104448", | ||
"case_id":"22df07d0-03b1-11ed-920c-974bfa104448", | ||
"comment_id":null | ||
}, | ||
{ | ||
"created_at":"2022-07-14T20:12:53.354Z", | ||
"created_by":{"username":"elastic","email":null,"full_name":null}, | ||
"owner":"cases", | ||
"action":"create", | ||
"payload":{ | ||
"comment":{"type":"user","owner":"cases","comment":"A new comment"} | ||
}, | ||
"type":"comment", | ||
"action_id":"57af14a0-03b1-11ed-920c-974bfa104448", | ||
"case_id":"22df07d0-03b1-11ed-920c-974bfa104448", | ||
"comment_id":"578608d0-03b1-11ed-920c-974bfa104448" | ||
} | ||
] | ||
value: | ||
- action_id: b4cd0770-07c9-11ed-a5fd-47154cb8767e | ||
action: create | ||
case_id: 22df07d0-03b1-11ed-920c-974bfa104448 | ||
comment_id: 578608d0-03b1-11ed-920c-974bfa104448 | ||
created_at: 2022-07-20T01:17:22.150Z | ||
created_by: | ||
username: elastic | ||
email: null | ||
full_name: null | ||
owner: cases | ||
payload: | ||
assignees: | ||
connector: | ||
name: none | ||
type: .none | ||
fields: null | ||
id: none | ||
description: test | ||
tags: | ||
- mine | ||
title: test-case | ||
owner: cases | ||
settings: | ||
syncAlerts: false | ||
severity: low | ||
status: open | ||
type: create_case | ||
type: comment | ||
- action_id: 57af14a0-03b1-11ed-920c-974bfa104448 | ||
action: create | ||
case_id: 22df07d0-03b1-11ed-920c-974bfa104448 | ||
comment_id: 578608d0-03b1-11ed-920c-974bfa104448 | ||
created_at: 2022-07-14T20:12:53.354Z | ||
created_by: | ||
username: elastic | ||
email: null | ||
full_name: null | ||
owner: cases | ||
payload: | ||
comment: A new comment | ||
owner: cases | ||
type: user | ||
type: comment | ||
- action_id: 573c6980-6123-11ed-aa41-81a0a61fe447 | ||
action: add | ||
case_id: 22df07d0-03b1-11ed-920c-974bfa104448 | ||
comment_id: null | ||
created_at: 2022-07-20T01:10:28.238Z | ||
created_by: | ||
username: elastic | ||
email: null | ||
full_name: null | ||
profile_uid: u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0 | ||
owner: cases | ||
payload: | ||
assignees: | ||
uid: u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0 | ||
type: assignees | ||
- action_id: fff460e0-07c9-11ed-a5fd-47154cb8767e | ||
action: delete | ||
case_id: 22df07d0-03b1-11ed-920c-974bfa104448 | ||
comment_id: null | ||
created_at: 2022-07-20T01:19:28.238Z | ||
created_by: | ||
username: elastic | ||
email: null | ||
full_name: null | ||
owner: cases | ||
payload: | ||
type: delete_case |
12 changes: 12 additions & 0 deletions
12
x-pack/plugins/cases/docs/openapi/components/schemas/assignees.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,12 @@ | ||
type: array | ||
description: An array containing users that are assigned to the case. | ||
nullable: true | ||
items: | ||
type: object | ||
required: | ||
- uid | ||
properties: | ||
uid: | ||
type: string | ||
description: A unique identifier for the user profile. These identifiers can be found by using the suggest user profile API. | ||
example: u_0wpfV1MqYDaXzLtRVY-gLMrddKDEmfz51Fszhj7hWC8_0 |
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
7 changes: 1 addition & 6 deletions
7
x-pack/plugins/cases/docs/openapi/components/schemas/payload_assignees.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 |
---|---|---|
@@ -1,9 +1,4 @@ | ||
type: object | ||
properties: | ||
assignees: | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
uid: | ||
type: string | ||
$ref: 'assignees.yaml' |
2 changes: 2 additions & 0 deletions
2
x-pack/plugins/cases/docs/openapi/components/schemas/payload_create_case.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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
type: object | ||
properties: | ||
assignees: | ||
$ref: 'assignees.yaml' | ||
connector: | ||
type: object | ||
properties: | ||
|
3 changes: 3 additions & 0 deletions
3
x-pack/plugins/cases/docs/openapi/components/schemas/payload_delete.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,3 @@ | ||
type: object | ||
description: If the `action` is `delete` and the `type` is `delete_case`, the payload is nullable. | ||
nullable: true |
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ properties: | |
type: | ||
type: string | ||
enum: | ||
- user | ||
- user |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.