openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SDOK_SEARCH_SIMILAR_DOCS:
    post:
      tags:
      - SDCE
      operationId: /rfc/SDOK_SEARCH_SIMILAR_DOCS
      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
                FROM:
                  type: integer
                  format: int64
                  default: 1
                LAISO:
                  type: string
                  maxLength: 2
                  description: Language According to ISO 639
                TO:
                  type: integer
                  format: int64
                  default: 10
                PHIOTAB:
                  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
                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
              required:
              - DOCUSPACE
              - FROM
              - LAISO
              - TO
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  LAST_SEARCH_LIMIT:
                    type: integer
                    format: int64
                  NUMOFSIMDOCS:
                    type: integer
                    format: int64
                  RCODE:
                    type: string
                    maxLength: 4
                  PHIOTAB:
                    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
                  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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
