openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWU_START_WORKFLOW:
    post:
      tags:
      - SWU7
      operationId: /rfc/SWU_START_WORKFLOW
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: Language
                SENDER_ID:
                  type: string
                  maxLength: 17
                  description: Language
                TASK:
                  type: string
                  maxLength: 14
                  description: Task (according to PD org.)
                USER:
                  type: string
                  maxLength: 12
                  description: Language
                ATTACHMENT_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTACH_ID:
                        type: string
                        maxLength: 63
                        description: ID of an attachment for the API
                      ATTACH_TYP:
                        type: string
                        maxLength: 3
                        description: Object type of an attachment
                      ATT_NAME:
                        type: string
                        maxLength: 12
                        description: Name of document, folder or distribution list
                      ATT_DESCR:
                        type: string
                        maxLength: 50
                        description: Short description of contents
                      ATT_SIZE:
                        type: string
                        maxLength: 12
                        description: Size of attachment
                CONTAINER:
                  type: array
                  items:
                    type: object
                    properties:
                      ELEMENT:
                        type: string
                        maxLength: 32
                        description: Element
                      VALUE:
                        type: string
                        maxLength: 255
                        description: Character value
                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:
              - TASK
              - USER
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN_CODE:
                    type: integer
                    format: int32
                    description: Return value (0-5, 999)
                  WORKITEM_ID:
                    type: integer
                    format: int64
                    description: Work item ID
                  ATTACHMENT_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTACH_ID:
                          type: string
                          maxLength: 63
                          description: ID of an attachment for the API
                        ATTACH_TYP:
                          type: string
                          maxLength: 3
                          description: Object type of an attachment
                        ATT_NAME:
                          type: string
                          maxLength: 12
                          description: Name of document, folder or distribution list
                        ATT_DESCR:
                          type: string
                          maxLength: 50
                          description: Short description of contents
                        ATT_SIZE:
                          type: string
                          maxLength: 12
                          description: Size of attachment
                  CONTAINER:
                    type: array
                    items:
                      type: object
                      properties:
                        ELEMENT:
                          type: string
                          maxLength: 32
                          description: Element
                        VALUE:
                          type: string
                          maxLength: 255
                          description: Character value
                  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.
