openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/INST_RFC_URL:
    post:
      tags:
      - SAIO
      summary: LS and RFC destination definition for URL generation
      operationId: /rfc/INST_RFC_URL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_CLIENT:
                  type: string
                  maxLength: 3
                  description: Explicit logon client
                I_HOST:
                  type: string
                  maxLength: 100
                  description: Name of target host
                I_LANGUAGE:
                  type: string
                  maxLength: 1
                  description: Explicit language
                I_LOADBALANCED:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: RFC via load distribution procedure (Load Balancing)
                I_LOGON_GROUP:
                  type: string
                  maxLength: 20
                  description: R/3 logon group name
                I_PASSWORD:
                  type: string
                  maxLength: 40
                  description: Explicit password
                I_SID:
                  type: string
                  maxLength: 3
                  description: System ID
                I_SYSTEM_NUMBER:
                  type: string
                  maxLength: 2
                  description: Service used (TCP service, SAP System number)
                I_TEXT:
                  type: string
                  maxLength: 72
                  description: Description of RFC connection
                I_USER:
                  type: string
                  maxLength: 12
                  description: Explicit user ID
              required:
              - I_CLIENT
              - I_HOST
              - I_LANGUAGE
              - I_PASSWORD
              - I_TEXT
              - I_USER
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RESULT_RC:
                    type: string
                    maxLength: 1
                    description: 'SAP Installation: Result Value'
                  RESULT_TEXT:
                    type: string
                    maxLength: 128
                    description: 'SAP Installation: Result Text'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
