openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SKWF_DOC_FEATURES_GET:
    post:
      tags:
      - SKWF_RETRIEVAL
      operationId: /rfc/SKWF_DOC_FEATURES_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                  description: Client
                CONNECTION_SPACE:
                  type: string
                  maxLength: 30
                  description: 'Model: Entity Name'
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: SAP R/3 System, Current Language
                NUM_FEATURES:
                  type: integer
                  format: int64
                  default: 10
                RESULT_FEATURES:
                  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
                RESULT_LOIOS_PHIOS:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJTYPEP:
                        type: string
                        maxLength: 1
                        description: 'KW Framework: IO type  enumValues: R=Relationship,L=LOIO,P=PHIO,""=Undefined (= all),F=Directory'
                        enum:
                        - R
                        - L
                        - P
                        - ''
                        - F
                      CLASSP:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJIDP:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                      OBJTYPEL:
                        type: string
                        maxLength: 1
                        description: 'KW Framework: IO type  enumValues: R=Relationship,L=LOIO,P=PHIO,""=Undefined (= all),F=Directory'
                        enum:
                        - R
                        - L
                        - P
                        - ''
                        - F
                      CLASSL:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJIDL:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                      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
              required:
              - CONNECTION_SPACE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ERROR:
                    type: object
                    properties:
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      TYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      'NO':
                        type: integer
                        format: int64
                        description: Message Number
                      V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                  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
                  RCODE:
                    type: string
                    maxLength: 4
                    description: Error Number
                  RESULT_FEATURES:
                    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
                  RESULT_LOIOS_PHIOS:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJTYPEP:
                          type: string
                          maxLength: 1
                          description: 'KW Framework: IO type  enumValues: R=Relationship,L=LOIO,P=PHIO,""=Undefined (= all),F=Directory'
                          enum:
                          - R
                          - L
                          - P
                          - ''
                          - F
                        CLASSP:
                          type: string
                          maxLength: 10
                          description: Document class
                        OBJIDP:
                          type: string
                          maxLength: 32
                          description: ID for documents and relations
                        OBJTYPEL:
                          type: string
                          maxLength: 1
                          description: 'KW Framework: IO type  enumValues: R=Relationship,L=LOIO,P=PHIO,""=Undefined (= all),F=Directory'
                          enum:
                          - R
                          - L
                          - P
                          - ''
                          - F
                        CLASSL:
                          type: string
                          maxLength: 10
                          description: Document class
                        OBJIDL:
                          type: string
                          maxLength: 32
                          description: ID for documents and relations
                        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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
