openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SRFC_ADAPTER_SERVICE:
    post:
      tags:
      - RFC_ADAPTER
      operationId: /rfc/SRFC_ADAPTER_SERVICE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CALLS:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        description: ''
                      REQUEST:
                        type: string
                        format: byte
                        description: ''
                CONN:
                  type: object
                  properties:
                    HOST:
                      type: string
                      maxLength: 128
                      description: ''
                    SYSID:
                      type: string
                      maxLength: 8
                      description: Name of the SAP System
                    SYSNR:
                      type: string
                      maxLength: 2
                      description: Service used (TCP service, SAP System number)
                    MANDT:
                      type: string
                      maxLength: 3
                      description: Client ID of Current User
                    DEST:
                      type: string
                      maxLength: 32
                      description: ''
                    USERID:
                      type: string
                      maxLength: 32
                      description: ''
                    PASSWD:
                      type: string
                      maxLength: 32
                      description: ''
                    LANG:
                      type: string
                      maxLength: 32
                      description: ''
                    DEBUG:
                      type: string
                      maxLength: 32
                      description: Debug Flag
                    TRACE:
                      type: string
                      maxLength: 1
                      description: ''
                    ASYNC:
                      type: string
                      maxLength: 1
                      description: ''
                    TID:
                      type: string
                      maxLength: 24
                      description: ''
                    DEBUG_DEST:
                      type: string
                      maxLength: 32
                      description: ''
                CONNSTR:
                  type: string
                  description: RFC Adapter Calls
                SD_URL:
                  type: string
                  description: RFC Adapter Calls
              required:
              - CALLS
              - CONN
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ERROR:
                    type: object
                    properties:
                      CLASS:
                        type: integer
                        format: int32
                        description: Error Class - major error code
                      CODE:
                        type: integer
                        format: int32
                        description: Error Code - minor error code
                      MSG:
                        type: string
                        description: Exception Message
                      EXCPT:
                        type: string
                        description: Exception Name
                  RESPONSE:
                    type: string
                    format: byte
                    description: RFC Adapter Calls
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
