[Security Solution] Migrate legacy API docs owned by the Rule Management team #211808
Labels
8.18 candidate
APIDocs
documentation
Team:Detection Rule Management
Security Detection Rule Management Team
Team:Detections and Resp
Security Detection Response Team
Team: SecuritySolution
Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.
Epics: #200310, https://github.com/elastic/security-docs-internal/issues/57 (internal)
Related to: https://github.com/elastic/security-docs-internal/issues/60 (internal)
Summary
Historically, Security Solution APIs have been documented on the now-legacy docs site under Elastic Security APIs. These are pages that were written manually using the asciidoc syntax here. For example, source files for the Detections API docs can be found here.
Last year, as part of https://github.com/elastic/security-team/issues/8058 and https://github.com/elastic/security-team/issues/9400, we built a system that auto-generates API docs from the OpenAPI schemas that we have in the code. The new API docs pages are hosted on the bump.sh service and are available at:
While we have defined OpenAPI specs for all our public API endpoints, and added some descriptions in some cases, some of the content hasn't been migrated from the legacy API docs website to OpenAPI specs.
We should migrate the missing content by March 17th (internal). After this date the legacy API docs will be retired and become unavailable.
Details
Additional context from the Docs team: https://github.com/elastic/security-docs-internal/issues/57 (internal).
Our API docs on the legacy website:
Our API docs on the new website:
Work done by Yara for migrating legacy API docs owned by the Detection Engine team: https://github.com/elastic/security-docs-internal/issues/60 (internal).
Todo
Migrate pages content
Some of the legacy content is located on pages and doesn't apply to any particular API endpoint, or applies to multiple endpoints. We should try to find a place for it in the new docs.
Migrate endpoints content
Some of the legacy content, such as descriptions of API requests and responses and examples of API calls, applies to a single endpoint or a small group of endpoints. We should migrate this content to our OpenAPI specs.
We're also missing a lot of content in the legacy docs. We should:
Rules CRUD:
POST /api/detection_engine/rules
: old, new, new svlGET /api/detection_engine/rules
: old, new, new svlrule_id
.id
andrule_id
.PUT /api/detection_engine/rules
: old, new, new svlPATCH /api/detection_engine/rules
: old, new, new svlPUT /api/detection_engine/rules
DELETE /api/detection_engine/rules
: old, new, new svlrule_id
.id
andrule_id
.Rules bulk CRUD. These endpoints have been disabled and removed from Kibana 9.0. We should understand how to reflect this in the docs: remove them from Kibana 9.0 API docs, and maybe update the pre-9.0 API docs to mention that they are removed in 9.0.
POST /api/detection_engine/rules/_bulk_create
: old, newPUT /api/detection_engine/rules/_bulk_update
: old, newPATCH /api/detection_engine/rules/_bulk_update
: old, newPOST /api/detection_engine/rules/_bulk_delete
: old, newDELETE /api/detection_engine/rules/_bulk_delete
: old, newRules bulk actions:
POST /api/detection_engine/rules/_bulk_action
: old, new, new svlRules export and import:
POST /api/detection_engine/rules/_export
: old, new, new svlPOST /api/detection_engine/rules/_import
: old, new, new svlRules searching and filtering:
GET /api/detection_engine/rules/_find
: old, new, new svlGET /api/detection_engine/tags
: old, new, new svlPrebuilt rules:
GET /api/detection_engine/rules/prepackaged/_status
: old, newPUT /api/detection_engine/rules/prepackaged
: old, newThe text was updated successfully, but these errors were encountered: