openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SRET_DOCUMENTS_SEARCH_XML:
    post:
      tags:
      - SRQU
      operationId: /rfc/SRET_DOCUMENTS_SEARCH_XML
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ALLATTRBACK:
                  type: string
                  default: X
                  maxLength: 1
                CATID:
                  type: string
                  maxLength: 32
                DOCUSPACE:
                  type: string
                  maxLength: 10
                STRICTCHECK:
                  type: string
                  maxLength: 1
                DOCATTRTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTRNAME:
                        type: string
                        maxLength: 25
                        description: Document attribute name of an index category
                      ATTRTYPE:
                        type: string
                        maxLength: 1
                        description: Document Attribute Type
                      CLASSREL:
                        type: string
                        maxLength: 1
                        description: 'Indicates whether Document Attribute is Class Hierarchy  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                LANGUAGETAB:
                  type: array
                  items:
                    type: object
                    properties:
                      LAISO:
                        type: string
                        maxLength: 2
                        description: Language According to ISO 639 (2 Character)
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                QUERYPARAMTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 25
                        description: Attribute Name
                      VALUE1:
                        type: string
                        maxLength: 25
                        description: Attribute Value
                      VALUE2:
                        type: string
                        maxLength: 25
                        description: Attribute Value
                      OPERATOR:
                        type: string
                        maxLength: 5
                        description: Operator
                RESULTATTRTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTRNAME:
                        type: string
                        maxLength: 25
                        description: Document attribute name of an index category
                      MULTATRCNT:
                        type: integer
                        format: int64
                        description: Multi-document Attribute Counter
                      ATTRTYPE:
                        type: string
                        maxLength: 1
                        description: Document Attribute Type
                      VALUE1:
                        type: string
                        maxLength: 64
                        description: Value of a Document Attribute
                      VALUE2:
                        type: string
                        maxLength: 64
                        description: Value of a Document Attribute
                      OPERATOR:
                        type: string
                        maxLength: 5
                        description: Operator
                      DOCREFER:
                        type: integer
                        format: int64
                        description: Reference of a Document Attribute to a Document
                RESULTDOCTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      DOCID:
                        type: string
                        maxLength: 64
                        description: Document ID
                      RANKV:
                        type: integer
                        format: int64
                        description: Rank in the hit list
                      CATID:
                        type: string
                        maxLength: 32
                        description: Index category identification
                      LANGU:
                        type: string
                        maxLength: 2
                        description: Language According to ISO 639 (2 Character)
                      COUNTER:
                        type: integer
                        format: int64
                        description: Document counter
                XMLQUERYTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      XMLQUERY:
                        type: string
                        maxLength: 255
                        description: Value of an attribute, term or operator in the search
              required:
              - CATID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ES_ERRORCODE:
                    type: object
                    properties:
                      ERROCODE:
                        type: integer
                        format: int64
                        description: Search Engine Error Code
                      APPERRORCATEGORY:
                        type: string
                        maxLength: 2
                        description: 'Error Code: Significance of Error for Application  enumValues: PI=Process: Information,PW=Process: Warning,AI=General: Information,AA=General: Error, Cancel,PA=Process: Error, Cancel,AW=General: Warning'
                        enum:
                        - PI
                        - PW
                        - AI
                        - AA
                        - PA
                        - AW
                      MESSAGEID:
                        type: string
                        maxLength: 20
                        description: Application Area
                      MESSAGENO:
                        type: string
                        maxLength: 3
                        description: Message Number
                  NUMOFHITS:
                    type: integer
                    format: int64
                  RCODE:
                    type: string
                    maxLength: 4
                  DOCATTRTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTRNAME:
                          type: string
                          maxLength: 25
                          description: Document attribute name of an index category
                        ATTRTYPE:
                          type: string
                          maxLength: 1
                          description: Document Attribute Type
                        CLASSREL:
                          type: string
                          maxLength: 1
                          description: 'Indicates whether Document Attribute is Class Hierarchy  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                  LANGUAGETAB:
                    type: array
                    items:
                      type: object
                      properties:
                        LAISO:
                          type: string
                          maxLength: 2
                          description: Language According to ISO 639 (2 Character)
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                  QUERYPARAMTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 25
                          description: Attribute Name
                        VALUE1:
                          type: string
                          maxLength: 25
                          description: Attribute Value
                        VALUE2:
                          type: string
                          maxLength: 25
                          description: Attribute Value
                        OPERATOR:
                          type: string
                          maxLength: 5
                          description: Operator
                  RESULTATTRTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTRNAME:
                          type: string
                          maxLength: 25
                          description: Document attribute name of an index category
                        MULTATRCNT:
                          type: integer
                          format: int64
                          description: Multi-document Attribute Counter
                        ATTRTYPE:
                          type: string
                          maxLength: 1
                          description: Document Attribute Type
                        VALUE1:
                          type: string
                          maxLength: 64
                          description: Value of a Document Attribute
                        VALUE2:
                          type: string
                          maxLength: 64
                          description: Value of a Document Attribute
                        OPERATOR:
                          type: string
                          maxLength: 5
                          description: Operator
                        DOCREFER:
                          type: integer
                          format: int64
                          description: Reference of a Document Attribute to a Document
                  RESULTDOCTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        DOCID:
                          type: string
                          maxLength: 64
                          description: Document ID
                        RANKV:
                          type: integer
                          format: int64
                          description: Rank in the hit list
                        CATID:
                          type: string
                          maxLength: 32
                          description: Index category identification
                        LANGU:
                          type: string
                          maxLength: 2
                          description: Language According to ISO 639 (2 Character)
                        COUNTER:
                          type: integer
                          format: int64
                          description: Document counter
                  XMLQUERYTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        XMLQUERY:
                          type: string
                          maxLength: 255
                          description: Value of an attribute, term or operator in the search
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
