diff --git a/openapi.yml b/openapi.yml index e1a279d..03ab2fe 100644 --- a/openapi.yml +++ b/openapi.yml @@ -502,7 +502,7 @@ paths: application/json: schema: $ref: "#/components/schemas/ApiResponse" - + put: tags: - synonyms @@ -650,7 +650,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SynonymItemSchema" + $ref: "#/components/schemas/SynonymItemUpsertSchema" required: true responses: "200": @@ -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: @@ -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: @@ -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 @@ -4041,7 +4043,7 @@ components: query_counter_events: { type: integer } doc_log_events: { type: integer } doc_counter_events: { type: integer } - + APIStatsResponse: type: object properties: @@ -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 @@ -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: