Skip to content

Commit

Permalink
[Security Solution] Auto-bundle Exceptions API OpenAPI specs (#188408)
Browse files Browse the repository at this point in the history
**Addresses**: #184428

## Summary

This PR adds scripts for automatic bundling of Exceptions API OpenAPI specs as a part of PR pipeline. Corresponding resulting bundles are automatically committed in the Lists common package `kbn-securitysolution-exceptions-common` in the `docs/openapi/ess/` and `docs/openapi/serverless` folders (similar to #186384).
  • Loading branch information
maximpn authored Jul 18, 2024
1 parent edad80c commit 179b78b
Show file tree
Hide file tree
Showing 11 changed files with 3,769 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ echo --- Security Solution OpenAPI Bundling
check_for_changed_files "yarn openapi:bundle" true

(cd packages/kbn-securitysolution-lists-common && yarn openapi:bundle)
check_for_changed_files "yarn openapi:bundle" true

(cd packages/kbn-securitysolution-exceptions-common && yarn openapi:bundle)
check_for_changed_files "yarn openapi:bundle" true
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ info:
paths:
/api/exception_lists/_duplicate:
post:
x-labels: [serverless, ess]
operationId: DuplicateExceptionList
x-codegen-enabled: true
summary: Duplicates an exception list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ info:
paths:
/api/exception_lists/_export:
post:
x-labels: [serverless, ess]
operationId: ExportExceptionList
x-codegen-enabled: true
summary: Exports an exception list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ info:
title: Find exception lists API endpoint
version: '2023-10-31'
paths:
/api/exception_lists/items/_find:
/api/exception_lists/_find:
get:
x-labels: [serverless, ess]
operationId: FindExceptionLists
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ info:
paths:
/api/exception_lists/_import:
post:
x-labels: [serverless, ess]
operationId: ImportExceptionList
x-codegen-enabled: true
summary: Imports an exception list
Expand Down
Loading

0 comments on commit 179b78b

Please sign in to comment.