mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[EDR Workflows] OpenApi Missing Content - Response Actions (#212510)
## For reviewers: Only `*.schema.yml` files were edited (excluding `*.bundled.schema.yml`). Rest of the changes comes from auto generation and can be ignored. ## Description Part of DW team effort - elastic/security-team#11804 This PR aligns the property/schema descriptions and examples in AsciiDocs with OpenAPI schemas. The primary goal of this PR was not to extend or enhance the documentation but to migrate from one system to another. Ascii docs - https://www.elastic.co/guide/en/security/8.17/management-api-overview.html OpenApi generated docs - https://www.elastic.co/docs/api/doc/kibana/operation/operation-endpointgetactionslist Changes: Copied missing property descriptions from AsciiDoc to OpenApi properties Copied existing AsciiDoc examples for both requests and responses Fixed falsy query object in some GET requests - in OpenApi it was defined as an object, not as path query params. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com> Co-authored-by: natasha-moore-elastic <137783811+natasha-moore-elastic@users.noreply.github.com>
This commit is contained in:
parent
5c0db3ed0d
commit
2700a2a951
30 changed files with 2938 additions and 557 deletions
|
@ -64,7 +64,6 @@ import { EndpointKillProcessActionRequestBodyInput } from '@kbn/security-solutio
|
|||
import { EndpointScanActionRequestBodyInput } from '@kbn/security-solution-plugin/common/api/endpoint/actions/response_actions/scan/scan.gen';
|
||||
import { EndpointSuspendProcessActionRequestBodyInput } from '@kbn/security-solution-plugin/common/api/endpoint/actions/response_actions/suspend_process/suspend_process.gen';
|
||||
import { EndpointUnisolateActionRequestBodyInput } from '@kbn/security-solution-plugin/common/api/endpoint/actions/response_actions/unisolate/unisolate.gen';
|
||||
import { EndpointUploadActionRequestBodyInput } from '@kbn/security-solution-plugin/common/api/endpoint/actions/response_actions/upload/upload.gen';
|
||||
import {
|
||||
ExportRulesRequestQueryInput,
|
||||
ExportRulesRequestBodyInput,
|
||||
|
@ -716,13 +715,12 @@ If a record already exists for the specified entity, that record is overwritten
|
|||
/**
|
||||
* Upload a file to an endpoint.
|
||||
*/
|
||||
endpointUploadAction(props: EndpointUploadActionProps, kibanaSpace: string = 'default') {
|
||||
endpointUploadAction(kibanaSpace: string = 'default') {
|
||||
return supertest
|
||||
.post(routeWithNamespace('/api/endpoint/action/upload', kibanaSpace))
|
||||
.set('kbn-xsrf', 'true')
|
||||
.set(ELASTIC_HTTP_VERSION_HEADER, '2023-10-31')
|
||||
.set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana')
|
||||
.send(props.body as object);
|
||||
.set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana');
|
||||
},
|
||||
entityStoreGetPrivileges(kibanaSpace: string = 'default') {
|
||||
return supertest
|
||||
|
@ -1751,9 +1749,6 @@ export interface EndpointSuspendProcessActionProps {
|
|||
export interface EndpointUnisolateActionProps {
|
||||
body: EndpointUnisolateActionRequestBodyInput;
|
||||
}
|
||||
export interface EndpointUploadActionProps {
|
||||
body: EndpointUploadActionRequestBodyInput;
|
||||
}
|
||||
export interface ExportRulesProps {
|
||||
query: ExportRulesRequestQueryInput;
|
||||
body: ExportRulesRequestBodyInput;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue