openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SDOK_CLASSIFY_DOCS:
    post:
      tags:
      - SDCE
      operationId: /rfc/SDOK_CLASSIFY_DOCS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLASSHIERARCHY:
                  type: string
                  maxLength: 25
                CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                  description: R/3 System, Client Number from Logon
                DOCUSPACE:
                  type: string
                  maxLength: 10
                  description: Document Area
                MAXCLASS:
                  type: integer
                  format: int64
                  default: 10
                  description: Number of Classes at Classification
                METHOD:
                  type: string
                  maxLength: 12
                PHIO:
                  type: object
                  properties:
                    CLASS:
                      type: string
                      maxLength: 10
                      description: Document class
                    OBJID:
                      type: string
                      maxLength: 32
                      description: ID for documents and relations
                THRESHOLD:
                  type: integer
                  format: int64
                  description: Error threshhold
                CLASSLIST:
                  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:
              - CLASSHIERARCHY
              - CLIENT
              - DOCUSPACE
              - MAXCLASS
              - METHOD
              - PHIO
              - THRESHOLD
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NUMOFCLASSES:
                    type: integer
                    format: int64
                  RCODE:
                    type: string
                    maxLength: 4
                  CLASSLIST:
                    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.
