openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWLWP_SERVICE_GET:
    post:
      tags:
      - SWLWPS
      operationId: /rfc/SWLWP_SERVICE_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IM_LANGU:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: SAP R/3 System, Current Language
                IM_SID:
                  type: string
                  maxLength: 32
                  description: 'Workflow: ID of External Service'
                IM_UNAME:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: SAP System, User Logon Name
              required:
              - IM_SID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_BATCH:
                    type: string
                    maxLength: 1
                  E_SEP_WIN:
                    type: string
                    maxLength: 1
                  E_SERVICE:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      SID:
                        type: string
                        maxLength: 32
                        description: WebFlow Service ID
                      PROTCL:
                        type: string
                        maxLength: 5
                        description: 'Log  enumValues: https=HTTPS,http=HTTP'
                        enum:
                        - https
                        - http
                      SERVER:
                        type: string
                        maxLength: 255
                        description: Server Names
                      PORTNUM:
                        type: integer
                        format: int64
                        description: Port Number
                      PATH:
                        type: string
                        maxLength: 255
                        description: Service path
                      LOGSYS:
                        type: string
                        maxLength: 10
                        description: Logical system
                      CALLMODE:
                        type: string
                        maxLength: 1
                        description: 'Call Mode of an External Service  enumValues: 3=Dialog-Based Service Without Callback (in Frame),4=Dialog-Based Service Without Callback (in Separate Browser),1=Background Service (Synchronous),2=Background Service with Callback (Asynchronous),""=Dialog-Based Service'
                        enum:
                        - '3'
                        - '4'
                        - '1'
                        - '2'
                        - ''
                  E_SYNC:
                    type: string
                    maxLength: 1
                  E_TEXT:
                    type: string
                    maxLength: 132
                    description: 'Workflow: Short Text for External Service'
                  E_URL:
                    type: string
                    description: 'Workflow: URL'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
