openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SDOK_INDEX_COMBINED_SEARCH_XML:
    post:
      tags:
      - SDCE
      operationId: /rfc/SDOK_INDEX_COMBINED_SEARCH_XML
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACCESS_CHECK_EXIT:
                  type: string
                  maxLength: 30
                CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                  description: Client
                DOCUSPACE:
                  type: string
                  maxLength: 10
                  description: Document Area
                LAISO:
                  type: string
                  maxLength: 2
                NUMBERFE:
                  type: integer
                  format: int64
                  default: 10
                RESULT_FROM:
                  type: integer
                  format: int64
                  default: 1
                RESULT_TO:
                  type: integer
                  format: int64
                  default: 100
                X_FEATURE:
                  type: string
                  default: ' '
                  maxLength: 1
                CATATTRIBUTTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTRNAME:
                        type: string
                        maxLength: 25
                        description: Category attribute name
                      ATTRVAL:
                        type: string
                        maxLength: 64
                        description: Category attribute value
                PHIO_QUERY:
                  type: array
                  items:
                    type: object
                    properties:
                      PROP_NAME:
                        type: string
                        maxLength: 25
                        description: Attribute of a document or a relationship
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'Include-exclude attribute in search query  enumValues: E=Exclusive no.,I=Inclusive no.'
                        enum:
                        - E
                        - I
                      OPTION:
                        type: string
                        maxLength: 2
                        description: 'Relational operator in search query  enumValues: NE=Not equal to,CP=Contains template ...,LT=Less than,GT=Greater than,LE=Less than or equal to,EQ=Equal to,BT=Between ... and ...,NP=Contains no template ...,GE=Greater than or equal to,NB=Not between ... and ...'
                        enum:
                        - NE
                        - CP
                        - LT
                        - GT
                        - LE
                        - EQ
                        - BT
                        - NP
                        - GE
                        - NB
                      LOW:
                        type: string
                        maxLength: 64
                        description: Lower interval limit for search query
                      HIGH:
                        type: string
                        maxLength: 64
                        description: Upper interval limit for search query
                PH_CLASS:
                  type: array
                  items:
                    type: object
                    properties:
                      CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                REQUESTED_PROPS:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 25
                        description: Attribute of a document or a relationship
                RESULTATTRTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJID:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                      NAME:
                        type: string
                        maxLength: 25
                        description: Attribute of a document or a relationship
                      VALUE:
                        type: string
                        maxLength: 64
                        description: Attribute Value
                RESULTDOCTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      PHIO_ID:
                        type: string
                        maxLength: 32
                        description: Physical document
                      PH_CLASS:
                        type: string
                        maxLength: 10
                        description: Physical document class
                      LOIO_ID:
                        type: string
                        maxLength: 32
                        description: Logical document
                      LO_CLASS:
                        type: string
                        maxLength: 10
                        description: Class of logical document
                      RANKV:
                        type: integer
                        format: int64
                        description: Rank in the hit list
                      DOCREFER:
                        type: integer
                        format: int64
                        description: Reference of a Document Attribute to a Document
                RESULTFEATTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      PH_CLASS:
                        type: string
                        maxLength: 10
                        description: Physical document class
                      PHIO_ID:
                        type: string
                        maxLength: 32
                        description: Physical document
                      FEATURE:
                        type: string
                        maxLength: 1022
                        description: Text data stream (line)
                      MULTICNT:
                        type: integer
                        format: int64
                        description: Multi-document Attribute 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:
              - DOCUSPACE
              - LAISO
      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
                  KIND_OF_SEARCH:
                    type: string
                    maxLength: 1
                    description: Type of search
                  LAST_SEARCH_LIMIT:
                    type: integer
                    format: int64
                  NUMOFHITS:
                    type: integer
                    format: int64
                    description: No. documents found
                  RCODE:
                    type: string
                    maxLength: 4
                  CATATTRIBUTTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTRNAME:
                          type: string
                          maxLength: 25
                          description: Category attribute name
                        ATTRVAL:
                          type: string
                          maxLength: 64
                          description: Category attribute value
                  PHIO_QUERY:
                    type: array
                    items:
                      type: object
                      properties:
                        PROP_NAME:
                          type: string
                          maxLength: 25
                          description: Attribute of a document or a relationship
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'Include-exclude attribute in search query  enumValues: E=Exclusive no.,I=Inclusive no.'
                          enum:
                          - E
                          - I
                        OPTION:
                          type: string
                          maxLength: 2
                          description: 'Relational operator in search query  enumValues: NE=Not equal to,CP=Contains template ...,LT=Less than,GT=Greater than,LE=Less than or equal to,EQ=Equal to,BT=Between ... and ...,NP=Contains no template ...,GE=Greater than or equal to,NB=Not between ... and ...'
                          enum:
                          - NE
                          - CP
                          - LT
                          - GT
                          - LE
                          - EQ
                          - BT
                          - NP
                          - GE
                          - NB
                        LOW:
                          type: string
                          maxLength: 64
                          description: Lower interval limit for search query
                        HIGH:
                          type: string
                          maxLength: 64
                          description: Upper interval limit for search query
                  PH_CLASS:
                    type: array
                    items:
                      type: object
                      properties:
                        CLASS:
                          type: string
                          maxLength: 10
                          description: Document class
                  REQUESTED_PROPS:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 25
                          description: Attribute of a document or a relationship
                  RESULTATTRTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        CLASS:
                          type: string
                          maxLength: 10
                          description: Document class
                        OBJID:
                          type: string
                          maxLength: 32
                          description: ID for documents and relations
                        NAME:
                          type: string
                          maxLength: 25
                          description: Attribute of a document or a relationship
                        VALUE:
                          type: string
                          maxLength: 64
                          description: Attribute Value
                  RESULTDOCTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        PHIO_ID:
                          type: string
                          maxLength: 32
                          description: Physical document
                        PH_CLASS:
                          type: string
                          maxLength: 10
                          description: Physical document class
                        LOIO_ID:
                          type: string
                          maxLength: 32
                          description: Logical document
                        LO_CLASS:
                          type: string
                          maxLength: 10
                          description: Class of logical document
                        RANKV:
                          type: integer
                          format: int64
                          description: Rank in the hit list
                        DOCREFER:
                          type: integer
                          format: int64
                          description: Reference of a Document Attribute to a Document
                  RESULTFEATTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        PH_CLASS:
                          type: string
                          maxLength: 10
                          description: Physical document class
                        PHIO_ID:
                          type: string
                          maxLength: 32
                          description: Physical document
                        FEATURE:
                          type: string
                          maxLength: 1022
                          description: Text data stream (line)
                        MULTICNT:
                          type: integer
                          format: int64
                          description: Multi-document Attribute 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.
