Browse Source

Add SeekDirection to the GET topic messages request (#519)

Alexander Krivonosov 4 years ago
parent
commit
f2cff5e43c
1 changed files with 10 additions and 0 deletions
  1. 10 0
      kafka-ui-contract/src/main/resources/swagger/kafka-ui-api.yaml

+ 10 - 0
kafka-ui-contract/src/main/resources/swagger/kafka-ui-api.yaml

@@ -323,6 +323,10 @@ paths:
           in: query
           in: query
           schema:
           schema:
             type: string
             type: string
+        - name: seekDirection
+          in: query
+          schema:
+            $ref: "#/components/schemas/SeekDirection"
       responses:
       responses:
         200:
         200:
           description: OK
           description: OK
@@ -1448,6 +1452,12 @@ components:
         - OFFSET
         - OFFSET
         - TIMESTAMP
         - TIMESTAMP
 
 
+    SeekDirection:
+      type: string
+      enum:
+        - FORWARD
+        - BACKWARD
+
     Partition:
     Partition:
       type: object
       type: object
       properties:
       properties: