forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SecuritySolution] Add OpenAPI schema for the timeline resolve enspoi…
…nt (elastic#186373) ## Summary Adds an OpenAPI schema for the timeline resolve endpoint. (Fixes elastic#183810) Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information
1 parent
7063806
commit 2849829
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
...security_solution/common/api/timeline/resolve_timeline/resolve_timeline_route_schema.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Elastic Security - Timeline - Resolve Timeline API | ||
version: 8.9.0 | ||
servers: | ||
- url: 'http://{kibana_host}:{port}' | ||
variables: | ||
kibana_host: | ||
default: localhost | ||
port: | ||
default: '5601' | ||
paths: | ||
/api/timeline: | ||
get: | ||
operationId: resolveTimeline | ||
summary: Get an existing saved timeline or timeline template. | ||
tags: | ||
- access:securitySolution | ||
parameters: | ||
- in: query | ||
name: template_timeline_id | ||
schema: | ||
type: string | ||
description: The ID of the template timeline to resolve | ||
- in: query | ||
name: id | ||
schema: | ||
type: string | ||
description: The ID of the timeline to resolve | ||
responses: | ||
'200': | ||
description: The (template) timeline has been found | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
data: | ||
type: object | ||
properties: | ||
getOneTimeline: | ||
oneOf: | ||
- $ref: '../model/components.yaml#/components/schemas/TimelineResponse' | ||
- nullable: true | ||
required: | ||
- data | ||
'400': | ||
description: The request is missing parameters | ||
'404': | ||
description: The (template) timeline was not found |