openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/LWE_UPDATE_DEFINITION:
    post:
      tags:
      - LWE_DEFINITION
      operationId: /rfc/LWE_UPDATE_DEFINITION
      requestBody:
        content:
          application/json:
            schema:
              properties:
                FORMAT:
                  type: string
                  default: BPML09
                  maxLength: 10
                  description: 'Workflow: Conversion Format'
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: SAP R/3 System, Current Language
                PROCESS_ID:
                  type: string
                  maxLength: 10
                  description: Number of workflow definition
                VERSION:
                  type: string
                  default: ' '
                  maxLength: 4
                  description: Version
                XML_STREAM:
                  type: string
                  format: byte
                  description: XML Description of a Life and Work Event
                MESSAGE_LINES:
                  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:
              - FORMAT
              - LANGUAGE
              - PROCESS_ID
              - VERSION
              - XML_STREAM
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NEW_VERSION:
                    type: string
                    maxLength: 4
                    description: Version
                  RETCODE:
                    type: integer
                    format: int32
                    description: Return Value, Return Value After ABAP Statements
                  MESSAGE_LINES:
                    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.
