openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SAP_WAPI_WORKITEM_DESCRIPTION:
    post:
      tags:
      - SWRC
      summary: 'Workflow Interfaces: Read Work Item Description'
      operationId: /rfc/SAP_WAPI_WORKITEM_DESCRIPTION
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: SAP System, Current Language
                LINE_WIDTH:
                  type: integer
                  format: int64
                  default: 75
                  description: Line width for text (1 - 132)
                USER:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: SAP System, User Logon Name
                WORKITEM_ID:
                  type: integer
                  format: int64
                  description: Work Item ID
                HTML_TEXT_LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      TEXTLINE:
                        type: string
                        maxLength: 255
                        description: 'Workflow interfaces: Text line'
                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
                MESSAGE_STRUCT:
                  type: array
                  items:
                    type: object
                    properties:
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                STREAM_TEXT_LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      TEXTLINE:
                        type: string
                        maxLength: 255
                        description: 'Workflow interfaces: Text line'
                TEXT_LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      TEXTLINE:
                        type: string
                        maxLength: 255
                        description: 'Workflow interfaces: Text line'
              required:
              - WORKITEM_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN_CODE:
                    type: integer
                    format: int32
                    description: Return code (0, 1, 2, 3, 999)
                  HTML_TEXT_LINES:
                    type: array
                    items:
                      type: object
                      properties:
                        TEXTLINE:
                          type: string
                          maxLength: 255
                          description: 'Workflow interfaces: Text line'
                  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
                  MESSAGE_STRUCT:
                    type: array
                    items:
                      type: object
                      properties:
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGNO:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                  STREAM_TEXT_LINES:
                    type: array
                    items:
                      type: object
                      properties:
                        TEXTLINE:
                          type: string
                          maxLength: 255
                          description: 'Workflow interfaces: Text line'
                  TEXT_LINES:
                    type: array
                    items:
                      type: object
                      properties:
                        TEXTLINE:
                          type: string
                          maxLength: 255
                          description: 'Workflow interfaces: Text line'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
