openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BDS_DOCUMENT_CREATE:
    post:
      tags:
      - BDS_BAPI
      operationId: /rfc/BDS_DOCUMENT_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLASSNAME:
                  type: string
                  maxLength: 30
                CLASSTYPE:
                  type: string
                  maxLength: 2
                PROPERTIES:
                  type: array
                  items:
                    type: object
                    properties:
                      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:
              - CLASSNAME
              - CLASSTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DOC_ID:
                    type: string
                    maxLength: 42
                  DOC_VAR_ID:
                    type: integer
                    format: int64
                  DOC_VAR_TG:
                    type: string
                    maxLength: 2
                  DOC_VER_NO:
                    type: integer
                    format: int64
                  PROPERTIES:
                    type: array
                    items:
                      type: object
                      properties:
                        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.
