openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_GET_DOCUMENTS_IN_QS:
    post:
      tags:
      - TREX_RFC_QS_ADMIN
      summary: get documents that are in queue server
      operationId: /rfc/TREX_RFC_GET_DOCUMENTS_IN_QS
      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_ATTRIBUTE_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      ATTR_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      ATTR_NAME:
                        type: string
                        format: byte
                        description: ''
                      VALUE1:
                        type: string
                        format: byte
                        description: ''
                      ATTR_TYPE:
                        type: string
                        format: byte
                        description: ''
                DOC_CONTENT:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      CONTENT:
                        type: string
                        format: byte
                        description: ''
                DOC_KEY:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_KEY:
                        type: string
                        format: byte
                        description: ''
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                INDEX_DOCUMENT_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_KEY:
                        type: string
                        format: byte
                        description: ''
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      DOC_LANGU:
                        type: string
                        format: byte
                        description: ''
                      DOC_STATUS:
                        type: integer
                        format: int64
                        description: ''
                      CLASS_REL:
                        type: string
                        format: byte
                        description: ''
                      SEARCH_REL:
                        type: string
                        format: byte
                        description: ''
                      MIME_TYPE:
                        type: string
                        format: byte
                        description: ''
                      DOC_TYPE:
                        type: string
                        format: byte
                        description: ''
                      DOC_ACTION:
                        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_ATTRIBUTE_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        ATTR_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        ATTR_NAME:
                          type: string
                          format: byte
                          description: ''
                        VALUE1:
                          type: string
                          format: byte
                          description: ''
                        ATTR_TYPE:
                          type: string
                          format: byte
                          description: ''
                  DOC_CONTENT:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        CONTENT:
                          type: string
                          format: byte
                          description: ''
                  DOC_KEY:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_KEY:
                          type: string
                          format: byte
                          description: ''
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                  INDEX_DOCUMENT_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_KEY:
                          type: string
                          format: byte
                          description: ''
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        DOC_LANGU:
                          type: string
                          format: byte
                          description: ''
                        DOC_STATUS:
                          type: integer
                          format: int64
                          description: ''
                        CLASS_REL:
                          type: string
                          format: byte
                          description: ''
                        SEARCH_REL:
                          type: string
                          format: byte
                          description: ''
                        MIME_TYPE:
                          type: string
                          format: byte
                          description: ''
                        DOC_TYPE:
                          type: string
                          format: byte
                          description: ''
                        DOC_ACTION:
                          type: string
                          format: byte
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
