Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 27 additions & 13 deletions oas_docs/output/kibana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12100,6 +12100,19 @@ paths:
summary: Delete cases
tags:
- cases
x-code-samples:
- label: curl
lang: curl
source: |
curl \
--request DELETE 'https://localhost:5601/api/cases?ids=%5B%22030e6e34-6470-4001-864f-b229511ad188%22%2C%22e662ff34-0493-4538-b9d1-6706ced02ff2%22%5D' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json"
--header "kbn-xsrf: true"
- label: Console
lang: console
source: |
DELETE kbn:/api/cases?ids=["030e6e34-6470-4001-864f-b229511ad188","e662ff34-0493-4538-b9d1-6706ced02ff2"]
x-metaTags:
- content: Kibana
name: product_name
Expand Down Expand Up @@ -89959,9 +89972,10 @@ components:
id: 57af14a0-03b1-11ed-920c-974bfa104448
owner: cases
payload:
comment: A new comment
owner: cases
type: user
comment:
comment: A new comment
owner: cases
type: user
type: comment
version: WzM1ODg4LDFa
- action: add
Expand All @@ -89976,7 +89990,7 @@ components:
owner: cases
payload:
assignees:
uid: u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0
- uid: u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0
type: assignees
version: WzM1ODg4LDFb
Cases_find_case_response:
Expand Down Expand Up @@ -94351,7 +94365,7 @@ components:
- $ref: '#/components/schemas/Cases_string'
- $ref: '#/components/schemas/Cases_string_array'
Cases_case_id:
description: The identifier for the case. To retrieve case IDs, use the find cases API. All non-ASCII characters must be URL encoded.
description: The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded.
in: path
name: caseId
required: true
Expand All @@ -94368,7 +94382,7 @@ components:
- $ref: '#/components/schemas/Cases_case_categories'
Cases_comment_id:
description: |
The identifier for the comment. To retrieve comment IDs, use the get case or find cases APIs.
The identifier for the comment. To retrieve comment IDs, use the get case or search cases (`_find`) APIs.
in: path
name: commentId
required: true
Expand Down Expand Up @@ -94409,14 +94423,13 @@ components:
type: string
Cases_ids:
description: |
The cases that you want to removed. All non-ASCII characters must be URL encoded.
example:
- d4e7abb0-b462-11ec-9a8d-698504725a43
The cases that you want to removed. To get the case identifiers, use the search cases (`_find`) API. In the Dev Console, you can specify the array of cases in the following format: `ids=["e58e77e3-ef8e-4251-926f-efb115f3c4ec"]`. In `curl`, all non-ASCII characters must be URL encoded. For example: `ids=%5B%22e58e77e3-ef8e-4251-926f-efb115f3c4ec%22%5D`
in: query
name: ids
required: true
schema:
items:
example: d4e7abb0-b462-11ec-9a8d-698504725a43
maxItems: 100
minItems: 1
type: string
Expand Down Expand Up @@ -94554,7 +94567,6 @@ components:
type: string
Cases_user_action_types:
description: Determines the types of user actions to return.
example: create_case
in: query
name: types
schema:
Expand All @@ -94575,6 +94587,7 @@ components:
- tags
- title
- user
example: create_case
type: string
type: array
Data_views_field_name:
Expand Down Expand Up @@ -96362,9 +96375,9 @@ components:
status:
$ref: '#/components/schemas/Cases_case_status'
tags:
example:
- tag-1
items:
example:
- tag-1
type: string
type: array
title:
Expand Down Expand Up @@ -96825,7 +96838,8 @@ components:
title:
$ref: '#/components/schemas/Cases_case_title'
version:
description: The current version of the case. To determine this value, use the get case or find cases APIs.
description: |
The current version of the case. To determine this value, use the get case or search cases (`_find`) APIs.
type: string
required:
- id
Expand Down
62 changes: 38 additions & 24 deletions x-pack/platform/plugins/shared/cases/docs/openapi/bundled.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,19 @@
}
}
}
}
},
"x-code-samples": [
{
"label": "curl",
"lang": "curl",
"source": "curl \\\n --request DELETE 'https://localhost:5601/api/cases?ids=%5B%22030e6e34-6470-4001-864f-b229511ad188%22%2C%22e662ff34-0493-4538-b9d1-6706ced02ff2%22%5D' \\\n --header \"Authorization: $API_KEY\" \\\n --header \"Content-Type: application/json\"\n --header \"kbn-xsrf: true\"\n"
},
{
"label": "Console",
"lang": "console",
"source": "DELETE kbn:/api/cases?ids=[\"030e6e34-6470-4001-864f-b229511ad188\",\"e662ff34-0493-4538-b9d1-6706ced02ff2\"]\n"
}
]
},
"patch": {
"summary": "Update cases",
Expand Down Expand Up @@ -1813,20 +1825,18 @@
},
"ids": {
"name": "ids",
"description": "The cases that you want to removed. All non-ASCII characters must be URL encoded.\n",
"in": "query",
"description": "The cases that you want to removed. To get the case identifiers, use the search cases (`_find`) API. In the Dev Console, you can specify the array of cases in the following format: `ids=[\"e58e77e3-ef8e-4251-926f-efb115f3c4ec\"]`. In `curl`, all non-ASCII characters must be URL encoded. For example: `ids=%5B%22e58e77e3-ef8e-4251-926f-efb115f3c4ec%22%5D`\n",
"required": true,
"schema": {
"type": "array",
"items": {
"type": "string",
"minItems": 1,
"maxItems": 100
"maxItems": 100,
"example": "d4e7abb0-b462-11ec-9a8d-698504725a43"
}
},
"example": [
"d4e7abb0-b462-11ec-9a8d-698504725a43"
]
}
},
"assignees_filter": {
"in": "query",
Expand Down Expand Up @@ -2062,7 +2072,7 @@
"case_id": {
"in": "path",
"name": "caseId",
"description": "The identifier for the case. To retrieve case IDs, use the find cases API. All non-ASCII characters must be URL encoded.",
"description": "The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded.",
"required": true,
"schema": {
"type": "string",
Expand All @@ -2082,7 +2092,7 @@
"comment_id": {
"in": "path",
"name": "commentId",
"description": "The identifier for the comment. To retrieve comment IDs, use the get case or find cases APIs.\n",
"description": "The identifier for the comment. To retrieve comment IDs, use the get case or search cases (`_find`) APIs.\n",
"required": true,
"schema": {
"type": "string",
Expand Down Expand Up @@ -2123,10 +2133,10 @@
"tags",
"title",
"user"
]
],
"example": "create_case"
}
},
"example": "create_case"
}
}
},
"schemas": {
Expand Down Expand Up @@ -3425,7 +3435,7 @@
"$ref": "#/components/schemas/case_title"
},
"version": {
"description": "The current version of the case. To determine this value, use the get case or find cases APIs.",
"description": "The current version of the case. To determine this value, use the get case or search cases (`_find`) APIs.\n",
"type": "string"
}
}
Expand Down Expand Up @@ -4366,11 +4376,11 @@
"tags": {
"type": "array",
"items": {
"type": "string",
"example": [
"tag-1"
]
}
"type": "string"
},
"example": [
"tag-1"
]
},
"title": {
"type": "string"
Expand Down Expand Up @@ -5738,9 +5748,11 @@
},
"owner": "cases",
"payload": {
"comment": "A new comment",
"owner": "cases",
"type": "user"
"comment": {
"comment": "A new comment",
"owner": "cases",
"type": "user"
}
},
"version": "WzM1ODg4LDFa",
"type": "comment"
Expand All @@ -5758,9 +5770,11 @@
},
"owner": "cases",
"payload": {
"assignees": {
"uid": "u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0"
}
"assignees": [
{
"uid": "u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0"
}
]
},
"version": "WzM1ODg4LDFb",
"type": "assignees"
Expand Down
42 changes: 28 additions & 14 deletions x-pack/platform/plugins/shared/cases/docs/openapi/bundled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/4xx_response'
x-code-samples:
- label: curl
lang: curl
source: |
curl \
--request DELETE 'https://localhost:5601/api/cases?ids=%5B%22030e6e34-6470-4001-864f-b229511ad188%22%2C%22e662ff34-0493-4538-b9d1-6706ced02ff2%22%5D' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json"
--header "kbn-xsrf: true"
- label: Console
lang: console
source: |
DELETE kbn:/api/cases?ids=["030e6e34-6470-4001-864f-b229511ad188","e662ff34-0493-4538-b9d1-6706ced02ff2"]
patch:
summary: Update cases
operationId: updateCaseDefaultSpace
Expand Down Expand Up @@ -1174,18 +1187,17 @@ components:
required: true
ids:
name: ids
description: |
The cases that you want to removed. All non-ASCII characters must be URL encoded.
in: query
description: |
The cases that you want to removed. To get the case identifiers, use the search cases (`_find`) API. In the Dev Console, you can specify the array of cases in the following format: `ids=["e58e77e3-ef8e-4251-926f-efb115f3c4ec"]`. In `curl`, all non-ASCII characters must be URL encoded. For example: `ids=%5B%22e58e77e3-ef8e-4251-926f-efb115f3c4ec%22%5D`
required: true
schema:
type: array
items:
type: string
minItems: 1
maxItems: 100
example:
- d4e7abb0-b462-11ec-9a8d-698504725a43
example: d4e7abb0-b462-11ec-9a8d-698504725a43
assignees_filter:
in: query
name: assignees
Expand Down Expand Up @@ -1354,7 +1366,7 @@ components:
case_id:
in: path
name: caseId
description: The identifier for the case. To retrieve case IDs, use the find cases API. All non-ASCII characters must be URL encoded.
description: The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded.
required: true
schema:
type: string
Expand All @@ -1371,7 +1383,7 @@ components:
in: path
name: commentId
description: |
The identifier for the comment. To retrieve comment IDs, use the get case or find cases APIs.
The identifier for the comment. To retrieve comment IDs, use the get case or search cases (`_find`) APIs.
required: true
schema:
type: string
Expand Down Expand Up @@ -1408,7 +1420,7 @@ components:
- tags
- title
- user
example: create_case
example: create_case
schemas:
assignees:
type: array
Expand Down Expand Up @@ -2367,7 +2379,8 @@ components:
title:
$ref: '#/components/schemas/case_title'
version:
description: The current version of the case. To determine this value, use the get case or find cases APIs.
description: |
The current version of the case. To determine this value, use the get case or search cases (`_find`) APIs.
type: string
string:
type: string
Expand Down Expand Up @@ -3055,8 +3068,8 @@ components:
type: array
items:
type: string
example:
- tag-1
example:
- tag-1
title:
type: string
payload_delete:
Expand Down Expand Up @@ -4058,9 +4071,10 @@ components:
profile_uid: u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0
owner: cases
payload:
comment: A new comment
owner: cases
type: user
comment:
comment: A new comment
owner: cases
type: user
version: WzM1ODg4LDFa
type: comment
- id: 573c6980-6123-11ed-aa41-81a0a61fe447
Expand All @@ -4075,7 +4089,7 @@ components:
owner: cases
payload:
assignees:
uid: u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0
- uid: u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0
version: WzM1ODg4LDFb
type: assignees
find_connector_response:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ value:
profile_uid: u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0
owner: cases
payload:
comment: A new comment
owner: cases
type: user
comment:
comment: A new comment
owner: cases
type: user
version: WzM1ODg4LDFa
type: comment
- id: 573c6980-6123-11ed-aa41-81a0a61fe447
Expand All @@ -68,6 +69,6 @@ value:
owner: cases
payload:
assignees:
uid: u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0
- uid: u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0
version: WzM1ODg4LDFb
type: assignees
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
in: path
name: caseId
description: The identifier for the case. To retrieve case IDs, use the find cases API. All non-ASCII characters must be URL encoded.
description: The identifier for the case. To retrieve case IDs, use the search cases (`_find)` API. All non-ASCII characters must be URL encoded.
required: true
schema:
type: string
Expand Down
Loading
Loading