Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 20 additions & 11 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/ApiResponse"

put:
tags:
- synonyms
Expand Down Expand Up @@ -650,7 +650,7 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/SynonymItemSchema"
$ref: "#/components/schemas/SynonymItemUpsertSchema"
required: true
responses:
"200":
Expand Down Expand Up @@ -1647,7 +1647,7 @@ paths:
{"log-slow-requests-time-ms": 2000}
responses:
'200':
description: Compacting the on-disk database succeeded.
description: Toggle Slow Request Log database succeeded.
content:
application/json:
schema:
Expand Down Expand Up @@ -3975,8 +3975,7 @@ components:
name:
type: string
type:
type: string
enum: [popular_queries, nohits_queries, counter, log]
$ref: "#/components/schemas/AnalyticsRuleType"
collection:
type: string
event_type:
Expand All @@ -4001,6 +4000,9 @@ components:
type: string
weight:
type: integer
AnalyticsRuleType:
type: string
enum: [popular_queries, nohits_queries, counter, log]
AnalyticsRuleUpdate:
type: object
description: Fields allowed to update on an analytics rule
Expand Down Expand Up @@ -4041,7 +4043,7 @@ components:
query_counter_events: { type: integer }
doc_log_events: { type: integer }
doc_counter_events: { type: integer }

APIStatsResponse:
type: object
properties:
Expand Down Expand Up @@ -4364,15 +4366,11 @@ components:
type: string
description: ID of the deleted NL search model

SynonymItemSchema:
SynonymItemUpsertSchema:
type: object
required:
- id
- synonyms
properties:
id:
type: string
description: Unique identifier for the synonym item
synonyms:
type: array
description: Array of words that should be considered as synonyms
Expand All @@ -4390,6 +4388,17 @@ components:
items:
type: string

SynonymItemSchema:
allOf:
- type: object
required:
- id
properties:
id:
type: string
description: Unique identifier for the synonym item
- $ref: "#/components/schemas/SynonymItemUpsertSchema"

SynonymSetCreateSchema:
type: object
required:
Expand Down