openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/ARCHIV_GET_CONNECTIONS:
    post:
      tags:
      - OPTB
      operationId: /rfc/ARCHIV_GET_CONNECTIONS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ARCHIV_ID:
                  type: string
                  maxLength: 2
                  description: Optical archive ID
                ARC_DOC_ID:
                  type: string
                  maxLength: 40
                  description: Archive document ID
                CLIENT:
                  type: string
                  maxLength: 3
                  description: Client
                DEL_DATE:
                  type: string
                  format: date
                  description: Technical document class
                DOCUMENTCLASS:
                  type: string
                  maxLength: 20
                  description: Technical document class
                DOCUMENTTYPE:
                  type: string
                  maxLength: 10
                  description: ArchiveLink document type
                FROM_AR_DATE:
                  type: string
                  format: date
                  description: Start date for search
                LIMIT:
                  type: integer
                  format: int64
                  description: SAP ArchiveLink Number of Documents
                LIMITED:
                  type: string
                  maxLength: 1
                OBJECTTYPE:
                  type: string
                  maxLength: 10
                  description: Business object type
                OBJECT_ID:
                  type: string
                  maxLength: 50
                  description: Business object type ID
                UNTIL_AR_DATE:
                  type: string
                  format: date
                  default: SY-DATUM
                  description: End date for search
                CONNECTIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client
                      SAP_OBJECT:
                        type: string
                        maxLength: 10
                        description: 'SAP ArchiveLink: Object type of business object'
                      OBJECT_ID:
                        type: string
                        maxLength: 50
                        description: 'SAP ArchiveLink: Object ID (object identifier)'
                      ARCHIV_ID:
                        type: string
                        maxLength: 2
                        description: Content Repository Identification
                      ARC_DOC_ID:
                        type: string
                        maxLength: 40
                        description: 'SAP ArchiveLink: Document ID'
                      AR_OBJECT:
                        type: string
                        maxLength: 10
                        description: Document type
                      AR_DATE:
                        type: string
                        format: date
                        description: 'SAP ArchiveLink: Storage date'
                      DEL_DATE:
                        type: string
                        format: date
                        description: Expiry Date
                      RESERVE:
                        type: string
                        maxLength: 27
                        description: 'SAP ArchiveLink: Reserved for future application'
                PARAMETER:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 64
                        description: 'SAP ArchiveLink: Name of Document Attribute'
                      DSIGN:
                        type: string
                        maxLength: 1
                        description: 'Include-exclude attribute in search query  enumValues: E=Exclusive no.,I=Inclusive no.'
                        enum:
                        - E
                        - I
                      DOPTION:
                        type: string
                        maxLength: 2
                        description: 'Relational operator in search query  enumValues: NE=Not equal to,CP=Contains template ...,LT=Less than,GT=Greater than,LE=Less than or equal to,EQ=Equal to,BT=Between ... and ...,NP=Contains no template ...,GE=Greater than or equal to,NB=Not between ... and ...'
                        enum:
                        - NE
                        - CP
                        - LT
                        - GT
                        - LE
                        - EQ
                        - BT
                        - NP
                        - GE
                        - NB
                      DLOW:
                        type: string
                        maxLength: 64
                        description: Lower interval limit for search query
                      DHIGH:
                        type: string
                        maxLength: 64
                        description: Upper interval limit for search query
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  COUNT:
                    type: integer
                    format: int32
                    description: Number of connections found
                  REDUCEDBYAUTHORITY:
                    type: string
                    maxLength: 1
                  REDUCEDBYLIMIT:
                    type: string
                    maxLength: 1
                  CONNECTIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        SAP_OBJECT:
                          type: string
                          maxLength: 10
                          description: 'SAP ArchiveLink: Object type of business object'
                        OBJECT_ID:
                          type: string
                          maxLength: 50
                          description: 'SAP ArchiveLink: Object ID (object identifier)'
                        ARCHIV_ID:
                          type: string
                          maxLength: 2
                          description: Content Repository Identification
                        ARC_DOC_ID:
                          type: string
                          maxLength: 40
                          description: 'SAP ArchiveLink: Document ID'
                        AR_OBJECT:
                          type: string
                          maxLength: 10
                          description: Document type
                        AR_DATE:
                          type: string
                          format: date
                          description: 'SAP ArchiveLink: Storage date'
                        DEL_DATE:
                          type: string
                          format: date
                          description: Expiry Date
                        RESERVE:
                          type: string
                          maxLength: 27
                          description: 'SAP ArchiveLink: Reserved for future application'
                  PARAMETER:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 64
                          description: 'SAP ArchiveLink: Name of Document Attribute'
                        DSIGN:
                          type: string
                          maxLength: 1
                          description: 'Include-exclude attribute in search query  enumValues: E=Exclusive no.,I=Inclusive no.'
                          enum:
                          - E
                          - I
                        DOPTION:
                          type: string
                          maxLength: 2
                          description: 'Relational operator in search query  enumValues: NE=Not equal to,CP=Contains template ...,LT=Less than,GT=Greater than,LE=Less than or equal to,EQ=Equal to,BT=Between ... and ...,NP=Contains no template ...,GE=Greater than or equal to,NB=Not between ... and ...'
                          enum:
                          - NE
                          - CP
                          - LT
                          - GT
                          - LE
                          - EQ
                          - BT
                          - NP
                          - GE
                          - NB
                        DLOW:
                          type: string
                          maxLength: 64
                          description: Lower interval limit for search query
                        DHIGH:
                          type: string
                          maxLength: 64
                          description: Upper interval limit for search query
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
