openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CURRENCY_CONVERSION_MINIAPP:
    post:
      tags:
      - SCUW
      operationId: /rfc/CURRENCY_CONVERSION_MINIAPP
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_AMOUNT_1:
                  type: string
                  maxLength: 30
                  description: Amount in Foreign Currency
                I_AMOUNT_2:
                  type: string
                  maxLength: 30
                  description: Amount in Local Currency
                I_CURRENCY_1:
                  type: string
                  maxLength: 5
                  description: Foreign currency
                I_CURRENCY_2:
                  type: string
                  maxLength: 5
                  description: Local Currency
                I_DATE:
                  type: string
                  maxLength: 10
                  description: Currency translation date
              required:
              - I_AMOUNT_1
              - I_AMOUNT_2
              - I_CURRENCY_1
              - I_CURRENCY_2
              - I_DATE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_AMOUNT_1:
                    type: string
                    maxLength: 30
                  E_AMOUNT_2:
                    type: string
                    maxLength: 30
                  E_DATE:
                    type: string
                    maxLength: 10
                    description: Currency translation date
                  RETURN:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                      CODE:
                        type: string
                        maxLength: 5
                        description: Message code
                      MESSAGE:
                        type: string
                        maxLength: 220
                        description: Message Text
                      LOG_NO:
                        type: string
                        maxLength: 20
                        description: 'Application log: log number'
                      LOG_MSG_NO:
                        type: integer
                        format: int64
                        description: 'Application log: Internal message serial number'
                      MESSAGE_V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
