openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/LWE_CREATE_INSTANCE:
    post:
      tags:
      - LWE_INSTANCE
      operationId: /rfc/LWE_CREATE_INSTANCE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LEADINGPROCESSOR:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: SAP System, User Logon Name
                LWEXMLID:
                  type: string
                  maxLength: 255
                  description: Workflow Container Element for a String
                SINGLEINSTANCE:
                  type: string
                  default: '-'
                  maxLength: 1
                  description: Boolean Variable (X=true, -=false, space=unknown)
                WFDID:
                  type: string
                  maxLength: 14
                  description: Task ID
                INPUT_CONTAINER:
                  type: array
                  items:
                    type: object
                    properties:
                      ELEMENT:
                        type: string
                        maxLength: 32
                        description: Element
                      VALUE:
                        type: string
                        maxLength: 255
                        description: Character value
                MESSAGE_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      MSG_TYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      LINE:
                        type: string
                        maxLength: 273
                        description: Text line for message
              required:
              - LWEXMLID
              - WFDID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN_CODE:
                    type: integer
                    format: int32
                    description: Return Value, Return Value After ABAP Statements
                  WORKITEMID:
                    type: integer
                    format: int64
                    description: Work Item ID
                  INPUT_CONTAINER:
                    type: array
                    items:
                      type: object
                      properties:
                        ELEMENT:
                          type: string
                          maxLength: 32
                          description: Element
                        VALUE:
                          type: string
                          maxLength: 255
                          description: Character value
                  MESSAGE_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        MSG_TYPE:
                          type: string
                          maxLength: 1
                          description: Message Type
                        LINE:
                          type: string
                          maxLength: 273
                          description: Text line for message
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
