openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_GET_ENTRIES:
    post:
      tags:
      - TREX_RFC_QS_ADMIN
      summary: getEntries
      operationId: /rfc/TREX_RFC_GET_ENTRIES
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DOC_STATE:
                  type: integer
                  format: int64
                  description: IndexId
                INDEX_ID:
                  type: string
                  format: byte
                  description: IndexId
                MAX_RESULTS:
                  type: integer
                  format: int64
                  description: IndexId
                QUEUE_ENTRY_CHOICE:
                  type: integer
                  format: int64
                  description: IndexId
                RETRY_COUNT:
                  type: integer
                  format: int64
                  description: IndexId
                DOC_KEY:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_KEY:
                        type: string
                        format: byte
                        description: ''
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                ENTRIES_RETURN:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_KEY:
                        type: string
                        format: byte
                        description: ''
                      DOC_ACTION:
                        type: integer
                        format: int64
                        description: ''
                      DOC_STATE:
                        type: integer
                        format: int64
                        description: ''
                      RETURN_CODE:
                        type: integer
                        format: int64
                        description: ''
                      RETRIES:
                        type: integer
                        format: int64
                        description: ''
                      PREPROCESS_RETRIES:
                        type: integer
                        format: int64
                        description: ''
                      TRANSMIT_RETRIES:
                        type: integer
                        format: int64
                        description: ''
                      SYNC_RETRIES:
                        type: integer
                        format: int64
                        description: ''
                      TIME_STAMP:
                        type: string
                        format: byte
                        description: ''
                      DOC_SIZE:
                        type: integer
                        format: int64
                        description: ''
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                ENTRIES_RETURN_V2:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_KEY:
                        type: string
                        format: byte
                        description: ''
                      DOC_ACTION:
                        type: integer
                        format: int64
                        description: ''
                      DOC_STATE:
                        type: integer
                        format: int64
                        description: ''
                      RETURN_CODE:
                        type: integer
                        format: int64
                        description: ''
                      RETRIES:
                        type: integer
                        format: int64
                        description: ''
                      PREPROCESS_RETRIES:
                        type: integer
                        format: int64
                        description: ''
                      TRANSMIT_RETRIES:
                        type: integer
                        format: int64
                        description: ''
                      SYNC_RETRIES:
                        type: integer
                        format: int64
                        description: ''
                      TIME_STAMP:
                        type: string
                        format: byte
                        description: ''
                      DOC_SIZE:
                        type: integer
                        format: int64
                        description: ''
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      RETURN_TEXT:
                        type: string
                        format: byte
                        description: ''
              required:
              - DOC_STATE
              - INDEX_ID
              - QUEUE_ENTRY_CHOICE
              - RETRY_COUNT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN_CODE:
                    type: integer
                    format: int64
                    description: Return Code
                  RETURN_TEXT:
                    type: string
                    format: byte
                    description: Return Text
                  DOC_KEY:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_KEY:
                          type: string
                          format: byte
                          description: ''
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                  ENTRIES_RETURN:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_KEY:
                          type: string
                          format: byte
                          description: ''
                        DOC_ACTION:
                          type: integer
                          format: int64
                          description: ''
                        DOC_STATE:
                          type: integer
                          format: int64
                          description: ''
                        RETURN_CODE:
                          type: integer
                          format: int64
                          description: ''
                        RETRIES:
                          type: integer
                          format: int64
                          description: ''
                        PREPROCESS_RETRIES:
                          type: integer
                          format: int64
                          description: ''
                        TRANSMIT_RETRIES:
                          type: integer
                          format: int64
                          description: ''
                        SYNC_RETRIES:
                          type: integer
                          format: int64
                          description: ''
                        TIME_STAMP:
                          type: string
                          format: byte
                          description: ''
                        DOC_SIZE:
                          type: integer
                          format: int64
                          description: ''
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                  ENTRIES_RETURN_V2:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_KEY:
                          type: string
                          format: byte
                          description: ''
                        DOC_ACTION:
                          type: integer
                          format: int64
                          description: ''
                        DOC_STATE:
                          type: integer
                          format: int64
                          description: ''
                        RETURN_CODE:
                          type: integer
                          format: int64
                          description: ''
                        RETRIES:
                          type: integer
                          format: int64
                          description: ''
                        PREPROCESS_RETRIES:
                          type: integer
                          format: int64
                          description: ''
                        TRANSMIT_RETRIES:
                          type: integer
                          format: int64
                          description: ''
                        SYNC_RETRIES:
                          type: integer
                          format: int64
                          description: ''
                        TIME_STAMP:
                          type: string
                          format: byte
                          description: ''
                        DOC_SIZE:
                          type: integer
                          format: int64
                          description: ''
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        RETURN_TEXT:
                          type: string
                          format: byte
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
