openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MPGXGATE:
    post:
      tags:
      - MAPPING_SERVICE
      operationId: /rfc/MPGXGATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                HEADER:
                  type: object
                  properties:
                    FROM_NAME:
                      type: string
                      maxLength: 120
                      description: 'Proxy Generation: Interface ID'
                    FROM_NAMESPACE:
                      type: string
                      maxLength: 255
                      description: 'Proxy Generation: Namespace in the Integration Builder'
                    FROM_SYSTEM:
                      type: string
                      maxLength: 60
                      description: XI Service
                    TO_NAME:
                      type: string
                      maxLength: 120
                      description: 'Proxy Generation: Interface ID'
                    TO_NAMESPACE:
                      type: string
                      maxLength: 255
                      description: 'Proxy Generation: Namespace in the Integration Builder'
                    TO_SYSTEM:
                      type: string
                      maxLength: 60
                      description: XI Service
                    DIRECTION:
                      type: integer
                      format: int32
                      description: Natural number
                    FAULT_NAME:
                      type: string
                      maxLength: 120
                      description: 'Proxy Generation: Interface ID'
                    FAULT_NAMESPACE:
                      type: string
                      maxLength: 255
                      description: 'Proxy Generation: Namespace in the Integration Builder'
                SOURCE:
                  type: string
                  format: byte
                  description: Source Document
              required:
              - HEADER
              - SOURCE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  FAULT:
                    type: object
                    properties:
                      NAMESPACE:
                        type: string
                        maxLength: 255
                        description: 'Proxy Generation: Namespace in the Integration Builder'
                      NAME:
                        type: string
                        maxLength: 120
                        description: 'Proxy Generation: Interface ID'
                  RESULT:
                    type: string
                    format: byte
                    description: Transformed Document
                  RETURNCODE:
                    type: string
                    description: Transformed Document
                  RETURNTEXT:
                    type: string
                    description: Transformed Document
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
