openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SKWF_DOC_CLASSIFY:
    post:
      tags:
      - SKWF_RETRIEVAL
      operationId: /rfc/SKWF_DOC_CLASSIFY
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLASSIFICATION_METHOD:
                  type: string
                  maxLength: 12
                CONNECTION_SPACE:
                  type: string
                  maxLength: 30
                  description: Class connection space
                MAX_CLASSES:
                  type: integer
                  format: int64
                  default: 10
                  description: Number of Classes at Classification
                PHIO:
                  type: object
                  properties:
                    OBJTYPE:
                      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
                    CLASS:
                      type: string
                      maxLength: 10
                      description: Document class
                    OBJID:
                      type: string
                      maxLength: 32
                      description: ID for documents and relations
                TAXONOMY:
                  type: string
                  maxLength: 25
                THRESHOLD:
                  type: integer
                  format: int64
                CLASS_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      CLASSNAME:
                        type: string
                        maxLength: 64
                        description: Class Name
                      RANKVAL:
                        type: integer
                        format: int64
                        description: Rank in the hit list
                      CATID:
                        type: string
                        maxLength: 32
                        description: Index category identification
                      LAISO:
                        type: string
                        maxLength: 2
                        description: Language According to ISO 639 (2 Character)
              required:
              - CONNECTION_SPACE
              - PHIO
              - TAXONOMY
              - THRESHOLD
      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
                  NUMBER_OF_CLASSES:
                    type: integer
                    format: int64
                  RCODE:
                    type: string
                    maxLength: 4
                  CLASS_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        CLASSNAME:
                          type: string
                          maxLength: 64
                          description: Class Name
                        RANKVAL:
                          type: integer
                          format: int64
                          description: Rank in the hit list
                        CATID:
                          type: string
                          maxLength: 32
                          description: Index category identification
                        LAISO:
                          type: string
                          maxLength: 2
                          description: Language According to ISO 639 (2 Character)
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
