Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Detection Engine][Docs] Added response and request descriptions for API docs #205822

Merged
merged 20 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
3ba70e2
Added response and request descriptions per what was identified as mi…
yctercero Jan 7, 2025
917d27b
[CI] Auto-commit changed files from 'make api-docs'
kibanamachine Jan 7, 2025
658f6a3
Delete packages/kbn-repo-packages/package-map.json - unsure why that …
yctercero Jan 8, 2025
bf44ad1
Merge branch 'main' into update_exception_list_openapi_info
yctercero Jan 8, 2025
f272c1e
removing files from a separate task
yctercero Jan 9, 2025
c2b347c
Merge branch 'main' of github.com:elastic/kibana into update_exceptio…
yctercero Jan 9, 2025
2f7e5f8
removing files from a separate task
yctercero Jan 9, 2025
9ff46ce
[CI] Auto-commit changed files from 'yarn openapi:generate'
kibanamachine Jan 9, 2025
7398176
addressing pr feedback and adding more examples
yctercero Jan 9, 2025
a89b2e9
addressing pr feedback and adding more examples
yctercero Jan 9, 2025
ae32d0f
Merge branch 'update_exception_list_openapi_info' of github.com:ycter…
yctercero Jan 9, 2025
a456111
Merge branch 'main' of github.com:elastic/kibana into update_exceptio…
yctercero Jan 9, 2025
407e4b5
removing unnecessary changes
yctercero Jan 9, 2025
27e756a
[CI] Auto-commit changed files from 'make api-docs'
kibanamachine Jan 9, 2025
0be332d
[CI] Auto-commit changed files from 'yarn openapi:generate'
kibanamachine Jan 9, 2025
f7cd1df
updating examples
yctercero Jan 15, 2025
d3e0a85
Merge branch 'update_exception_list_openapi_info' of github.com:ycter…
yctercero Jan 15, 2025
9a3b405
Merge branch 'main' into update_exception_list_openapi_info
yctercero Jan 15, 2025
8f970eb
[CI] Auto-commit changed files from 'yarn openapi:bundle'
kibanamachine Jan 15, 2025
b4c42e7
[CI] Auto-commit changed files from 'make api-docs'
kibanamachine Jan 15, 2025
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
1,401 changes: 1,333 additions & 68 deletions oas_docs/output/kibana.serverless.yaml

Large diffs are not rendered by default.

1,401 changes: 1,333 additions & 68 deletions oas_docs/output/kibana.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -464,11 +464,17 @@ components:
type: object
properties:
_version:
description: >-
The version id, normally returned by the API when the item was
retrieved. Use it ensure updates are done against the latest
version.
type: string
created_at:
description: Autogenerated date of object creation.
format: date-time
type: string
created_by:
description: Autogenerated value - user that created object.
type: string
description:
$ref: '#/components/schemas/ExceptionListDescription'
Expand All @@ -489,13 +495,18 @@ components:
tags:
$ref: '#/components/schemas/ExceptionListTags'
tie_breaker_id:
description: >-
Field used in search to ensure all containers are sorted and
returned correctly.
type: string
type:
$ref: '#/components/schemas/ExceptionListType'
updated_at:
description: Autogenerated date of last object update.
format: date-time
type: string
updated_by:
description: Autogenerated value - user that last updated object.
type: string
version:
$ref: '#/components/schemas/ExceptionListVersion'
Expand All @@ -514,31 +525,47 @@ components:
- updated_at
- updated_by
ExceptionListDescription:
description: Describes the exception list.
example: This list tracks allowlisted values.
type: string
ExceptionListHumanId:
$ref: '#/components/schemas/NonEmptyString'
description: Human readable string identifier, e.g. `trusted-linux-processes`
description: >-
Exception list's human readable string identifier, e.g.
`trusted-linux-processes`.
example: simple_list
format: nonempty
minLength: 1
type: string
ExceptionListId:
$ref: '#/components/schemas/NonEmptyString'
description: Exception list's identifier.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This allowed me to add in a description.

example: 9e5fc75a-a3da-46c5-96e3-a2ec59c6bb85
format: nonempty
minLength: 1
type: string
ExceptionListItem:
type: object
properties:
_version:
description: >-
The version id, normally returned by the API when the item was
retrieved. Use it ensure updates are done against the latest
version.
type: string
comments:
$ref: '#/components/schemas/ExceptionListItemCommentArray'
created_at:
description: Autogenerated date of object creation.
format: date-time
type: string
created_by:
description: Autogenerated value - user that created object.
type: string
description:
$ref: '#/components/schemas/ExceptionListItemDescription'
entries:
$ref: '#/components/schemas/ExceptionListItemEntryArray'
expire_time:
format: date-time
type: string
$ref: '#/components/schemas/ExceptionListItemExpireTime'
id:
$ref: '#/components/schemas/ExceptionListItemId'
item_id:
Expand All @@ -556,13 +583,18 @@ components:
tags:
$ref: '#/components/schemas/ExceptionListItemTags'
tie_breaker_id:
description: >-
Field used in search to ensure all containers are sorted and
returned correctly.
type: string
type:
$ref: '#/components/schemas/ExceptionListItemType'
updated_at:
description: Autogenerated date of last object update.
format: date-time
type: string
updated_by:
description: Autogenerated value - user that last updated object.
type: string
required:
- id
Expand All @@ -585,13 +617,15 @@ components:
comment:
$ref: '#/components/schemas/NonEmptyString'
created_at:
description: Autogenerated date of object creation.
format: date-time
type: string
created_by:
$ref: '#/components/schemas/NonEmptyString'
id:
$ref: '#/components/schemas/NonEmptyString'
updated_at:
description: Autogenerated date of last object update.
format: date-time
type: string
updated_by:
Expand All @@ -602,10 +636,15 @@ components:
- created_at
- created_by
ExceptionListItemCommentArray:
description: |
Array of comment fields:

- comment (string): Comments about the exception item.
items:
$ref: '#/components/schemas/ExceptionListItemComment'
type: array
ExceptionListItemDescription:
description: Describes the exception list.
type: string
ExceptionListItemEntry:
anyOf:
Expand Down Expand Up @@ -747,47 +786,80 @@ components:
- excluded
- included
type: string
ExceptionListItemExpireTime:
description: >-
The exception item’s expiration date, in ISO format. This field is only
available for regular exception items, not endpoint exceptions.
format: date-time
type: string
ExceptionListItemHumanId:
$ref: '#/components/schemas/NonEmptyString'
description: Human readable string identifier, e.g. `trusted-linux-processes`
example: simple_list_item
format: nonempty
minLength: 1
type: string
ExceptionListItemId:
$ref: '#/components/schemas/NonEmptyString'
description: Exception's identifier.
example: 71a9f4b2-c85c-49b4-866f-c71eb9e67da2
format: nonempty
minLength: 1
type: string
ExceptionListItemMeta:
additionalProperties: true
type: object
ExceptionListItemName:
$ref: '#/components/schemas/NonEmptyString'
description: Exception list name.
format: nonempty
minLength: 1
type: string
ExceptionListItemOsTypeArray:
items:
$ref: '#/components/schemas/ExceptionListOsType'
type: array
ExceptionListItemTags:
items:
$ref: '#/components/schemas/NonEmptyString'
description: >-
String array containing words and phrases to help categorize exception
items.
format: nonempty
minLength: 1
type: string
type: array
ExceptionListItemType:
enum:
- simple
type: string
ExceptionListMeta:
additionalProperties: true
description: Placeholder for metadata about the list container.
type: object
ExceptionListName:
description: The name of the exception list.
example: My exception list
type: string
ExceptionListOsType:
description: Use this field to specify the operating system.
enum:
- linux
- macos
- windows
type: string
ExceptionListOsTypeArray:
description: Use this field to specify the operating system. Only enter one value.
items:
$ref: '#/components/schemas/ExceptionListOsType'
type: array
ExceptionListTags:
description: >-
String array containing words and phrases to help categorize exception
containers.
items:
type: string
type: array
ExceptionListType:
description: >-
The type of exception list to be created. Different list types may
denote where they can be utilized.
enum:
- detection
- rule_default
Expand All @@ -798,6 +870,7 @@ components:
- endpoint_blocklists
type: string
ExceptionListVersion:
description: The document version, automatically increasd on updates.
minimum: 1
type: integer
ExceptionNamespaceType:
Expand Down
Loading
Loading