openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SIW_SEARCH_SIMILAR_OBJECTS:
    post:
      tags:
      - SKWRET01
      operationId: /rfc/SIW_SEARCH_SIMILAR_OBJECTS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                AREA:
                  type: string
                  maxLength: 10
                  description: Area
                FROM_HIT:
                  type: integer
                  format: int64
                  description: Document attribute reference to a document
                GET_FEATURES:
                  type: string
                  maxLength: 1
                  description: Single-Character Flag
                LANGUAGE:
                  type: string
                  maxLength: 2
                  description: Language According to ISO 639
                NO_OF_HITS:
                  type: integer
                  format: int64
                  description: Document attribute reference to a document
                CONTEXT:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 25
                        description: Attribute of a document or a relationship
                      VALUE:
                        type: string
                        maxLength: 64
                        description: Attribute Value
                ERROR_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 1022
                        description: Line for text document contents, length as during upload
                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
                HYPERLINKS:
                  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
                      URL:
                        type: string
                        maxLength: 4096
                        description: 'SAP ArchiveLink: Data Element for Absolute URI'
                PHIO_TAB:
                  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
                PROPERTIES:
                  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
                PROP_INFO:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 25
                        description: Attribute of a document or a relationship
                      DESCRIPT:
                        type: string
                        maxLength: 64
                        description: Title of a document
                      LINK:
                        type: string
                        maxLength: 1
                        description: 'New Input Values  enumValues: ""=Blank,X=Selection,.=Radio button'
                        enum:
                        - ''
                        - X
                        - .
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'New Input Values  enumValues: ""=Blank,X=Selection,.=Radio button'
                        enum:
                        - ''
                        - X
                        - .
              required:
              - AREA
              - FROM_HIT
              - LANGUAGE
              - NO_OF_HITS
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  LAST_HIT:
                    type: integer
                    format: int64
                    description: Document attribute reference to a document
                  CONTEXT:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 25
                          description: Attribute of a document or a relationship
                        VALUE:
                          type: string
                          maxLength: 64
                          description: Attribute Value
                  ERROR_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 1022
                          description: Line for text document contents, length as during upload
                  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
                  HYPERLINKS:
                    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
                        URL:
                          type: string
                          maxLength: 4096
                          description: 'SAP ArchiveLink: Data Element for Absolute URI'
                  PHIO_TAB:
                    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
                  PROPERTIES:
                    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
                  PROP_INFO:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 25
                          description: Attribute of a document or a relationship
                        DESCRIPT:
                          type: string
                          maxLength: 64
                          description: Title of a document
                        LINK:
                          type: string
                          maxLength: 1
                          description: 'New Input Values  enumValues: ""=Blank,X=Selection,.=Radio button'
                          enum:
                          - ''
                          - X
                          - .
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'New Input Values  enumValues: ""=Blank,X=Selection,.=Radio button'
                          enum:
                          - ''
                          - X
                          - .
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
