openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BDS_DOCUMENT_GET_INFO:
    post:
      tags:
      - BDS_BAPI
      operationId: /rfc/BDS_DOCUMENT_GET_INFO
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                DOC_ID:
                  type: string
                  maxLength: 42
                COMPONENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_COUNT:
                        type: integer
                        format: int64
                        description: 'Business Document Service: Document counter'
                      COMP_COUNT:
                        type: integer
                        format: int64
                        description: 'Business Document Service: Component counter'
                      COMP_ID:
                        type: string
                        maxLength: 255
                        description: 'Business Document Service: Component ID'
                      MIMETYPE:
                        type: string
                        maxLength: 128
                        description: 'Business Document Service: MIME type'
                      COMP_SIZE:
                        type: integer
                        format: int64
                        description: 'Business Document Service: Component size'
                CONNECTIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      CLASSNAME:
                        type: string
                        maxLength: 30
                        description: 'Business Document Service: Class name'
                      CLASSTYPE:
                        type: string
                        maxLength: 2
                        description: 'Business Document Service: Class type  enumValues: BO=Business Object Repository object,CL=Object from class library,OT=Other objects'
                        enum:
                        - BO
                        - CL
                        - OT
                      OBJECT_KEY:
                        type: string
                        maxLength: 70
                        description: 'Business Document Service: Object key'
                      DOC_ID:
                        type: string
                        maxLength: 42
                        description: 'Business Document Service: Document ID'
                SIGNATURE:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_COUNT:
                        type: integer
                        format: int64
                        description: 'Business Document Service: Document counter'
                      DOC_ID:
                        type: string
                        maxLength: 42
                        description: 'Business Document Service: Document ID'
                      DOC_VER_NO:
                        type: integer
                        format: int64
                        description: 'Business Document Service: Document version number'
                      DOC_VAR_ID:
                        type: integer
                        format: int64
                        description: 'Business Document Service: Document variant ID'
                      DOC_VAR_TG:
                        type: string
                        maxLength: 2
                        description: 'Business Document Service: Document Variant Tag'
                      COMP_COUNT:
                        type: integer
                        format: int64
                        description: 'Business Document Service: Number of components'
                      PROP_NAME:
                        type: string
                        maxLength: 25
                        description: 'Business Document Service: Attribute Name'
                      PROP_VALUE:
                        type: string
                        maxLength: 64
                        description: 'Business Document Service: Attribute value'
              required:
              - DOC_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  COMPONENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_COUNT:
                          type: integer
                          format: int64
                          description: 'Business Document Service: Document counter'
                        COMP_COUNT:
                          type: integer
                          format: int64
                          description: 'Business Document Service: Component counter'
                        COMP_ID:
                          type: string
                          maxLength: 255
                          description: 'Business Document Service: Component ID'
                        MIMETYPE:
                          type: string
                          maxLength: 128
                          description: 'Business Document Service: MIME type'
                        COMP_SIZE:
                          type: integer
                          format: int64
                          description: 'Business Document Service: Component size'
                  CONNECTIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        CLASSNAME:
                          type: string
                          maxLength: 30
                          description: 'Business Document Service: Class name'
                        CLASSTYPE:
                          type: string
                          maxLength: 2
                          description: 'Business Document Service: Class type  enumValues: BO=Business Object Repository object,CL=Object from class library,OT=Other objects'
                          enum:
                          - BO
                          - CL
                          - OT
                        OBJECT_KEY:
                          type: string
                          maxLength: 70
                          description: 'Business Document Service: Object key'
                        DOC_ID:
                          type: string
                          maxLength: 42
                          description: 'Business Document Service: Document ID'
                  SIGNATURE:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_COUNT:
                          type: integer
                          format: int64
                          description: 'Business Document Service: Document counter'
                        DOC_ID:
                          type: string
                          maxLength: 42
                          description: 'Business Document Service: Document ID'
                        DOC_VER_NO:
                          type: integer
                          format: int64
                          description: 'Business Document Service: Document version number'
                        DOC_VAR_ID:
                          type: integer
                          format: int64
                          description: 'Business Document Service: Document variant ID'
                        DOC_VAR_TG:
                          type: string
                          maxLength: 2
                          description: 'Business Document Service: Document Variant Tag'
                        COMP_COUNT:
                          type: integer
                          format: int64
                          description: 'Business Document Service: Number of components'
                        PROP_NAME:
                          type: string
                          maxLength: 25
                          description: 'Business Document Service: Attribute Name'
                        PROP_VALUE:
                          type: string
                          maxLength: 64
                          description: 'Business Document Service: Attribute value'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
