Skip to content

Commit

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

## Summary

This PR adds scripts for automatic bundling of Lists API OpenAPI specs as a part of PR pipeline. Corresponding resulting bundles are automatically committed in the Lists common package `kbn-securitysolution-lists-common` in the `docs/openapi/ess/` and `docs/openapi/serverless` folders (similar to #186384).
  • Loading branch information
maximpn committed Jul 18, 2024
1 parent 9d4c061 commit c76f68e
Show file tree
Hide file tree
Showing 10 changed files with 3,102 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ echo --- Security Solution OpenAPI Bundling

(cd x-pack/plugins/security_solution && yarn openapi:bundle)
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ info:
paths:
/api/lists/items/_export:
post:
x-labels: [serverless, ess]
operationId: ExportListItems
x-codegen-enabled: true
summary: Exports list items
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ info:
title: Find list items API endpoint
version: '2023-10-31'
paths:
/api/lists/_find:
/api/lists/items/_find:
get:
x-labels: [serverless, ess]
operationId: FindListItems
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ info:
paths:
/api/lists/items/_import:
post:
x-labels: [serverless, ess]
operationId: ImportListItems
x-codegen-enabled: true
summary: Imports list items
Expand Down
Loading

0 comments on commit c76f68e

Please sign in to comment.