openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWI_QUERY_WORKITEMS:
    post:
      tags:
      - SWIG
      operationId: /rfc/SWI_QUERY_WORKITEMS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: SAP R/3 System, Current Language
                USER:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: SAP System, User Logon Name
                WI_CREATION_DATE_FILTER:
                  type: array
                  items:
                    type: object
                    properties:
                      SIGN:
                        type: string
                        maxLength: 1
                        description: Type of SIGN component in row type of a Ranges type
                      OPTION:
                        type: string
                        maxLength: 2
                        description: Type of OPTION component in row type of a Ranges type
                      LOW:
                        type: string
                        format: date
                        description: Creation Date of Work Item
                      HIGH:
                        type: string
                        format: date
                        description: Creation Date of Work Item
                WI_STATE_FILTER:
                  type: array
                  items:
                    type: object
                    properties:
                      SIGN:
                        type: string
                        maxLength: 1
                        description: Type of SIGN component in row type of a Ranges type
                      OPTION:
                        type: string
                        maxLength: 2
                        description: Type of OPTION component in row type of a Ranges type
                      LOW:
                        type: string
                        maxLength: 12
                        description: Processing Status of a Work Item
                      HIGH:
                        type: string
                        maxLength: 12
                        description: Processing Status of a Work Item
                WI_TASK_FILTER:
                  type: array
                  items:
                    type: object
                    properties:
                      SIGN:
                        type: string
                        maxLength: 1
                        description: Type of SIGN component in row type of a Ranges type
                      OPTION:
                        type: string
                        maxLength: 2
                        description: Type of OPTION component in row type of a Ranges type
                      LOW:
                        type: string
                        maxLength: 14
                        description: Task ID
                      HIGH:
                        type: string
                        maxLength: 14
                        description: Task ID
                WI_TYPE_FILTER:
                  type: array
                  items:
                    type: object
                    properties:
                      SIGN:
                        type: string
                        maxLength: 1
                        description: Type of SIGN component in row type of a Ranges type
                      OPTION:
                        type: string
                        maxLength: 2
                        description: Type of OPTION component in row type of a Ranges type
                      LOW:
                        type: string
                        maxLength: 1
                        description: Work item type
                      HIGH:
                        type: string
                        maxLength: 1
                        description: Work item type
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  WORKLIST:
                    type: array
                    items:
                      type: object
                      properties:
                        WI_ID:
                          type: integer
                          format: int64
                          description: Work item ID
                        WI_TYPE:
                          type: string
                          maxLength: 1
                          description: Work item type
                        WI_CREATOR:
                          type: string
                          maxLength: 90
                          description: Creator of a work item
                        WI_LANG:
                          type: string
                          maxLength: 1
                          description: Language for Texts of a Work Item
                        WI_TEXT:
                          type: string
                          maxLength: 120
                          description: Work Item Text
                        WI_RHTEXT:
                          type: string
                          maxLength: 40
                          description: Short Text from Task
                        WI_CD:
                          type: string
                          format: date
                          description: Creation Date of Work Item
                        WI_CT:
                          type: string
                          maxLength: 6
                          description: Creation Time of Work Item
                        WI_AAGENT:
                          type: string
                          maxLength: 12
                          description: Actual Agent of Work Item
                        WI_CHCKWI:
                          type: integer
                          format: int64
                          description: Superordinate Work Item
                        WI_RH_TASK:
                          type: string
                          maxLength: 14
                          description: Task ID
                        WI_PRIO:
                          type: integer
                          format: int64
                          description: Priority of a Work Item
                        WI_CONFIRM:
                          type: string
                          maxLength: 1
                          description: Indicator showing that end of processing must be confirmed
                        WI_REJECT:
                          type: string
                          maxLength: 1
                          description: Indicator Denoting that Work Item Can Be Rejected by Agent
                        WI_FORW_BY:
                          type: string
                          maxLength: 12
                          description: (Last) forwarder of work item
                        WI_DISABLE:
                          type: string
                          maxLength: 1
                          description: 'Flag: Work item is currently locked'
                        STATUSTEXT:
                          type: string
                          maxLength: 20
                          description: 'Workflow: Work Item Status'
                        WI_STAT:
                          type: string
                          maxLength: 12
                          description: Processing Status of a Work Item
                        WI_LED:
                          type: string
                          format: date
                          description: Latest End Date for Work Item
                        WI_LET:
                          type: string
                          maxLength: 6
                          description: Latest end time for work item
                        TYPETEXT:
                          type: string
                          maxLength: 20
                          description: Work Item Type
                        TCLASS:
                          type: string
                          maxLength: 12
                          description: Classification of Tasks
                        NOTE_EXIST:
                          type: string
                          maxLength: 1
                          description: Indicator Denoting that At Least One Note Exists for the WI
                        WI_DH_STAT:
                          type: integer
                          format: int64
                          description: Deadline Status of a Work Item
                        DHSTATEXT:
                          type: string
                          maxLength: 20
                          description: 'Workflow: Work Item Status'
                        NO_EXECUTE:
                          type: string
                          maxLength: 1
                          description: Work item may not be executed by user specified
                        WI_RELEASE:
                          type: string
                          maxLength: 4
                          description: Release Status of SAP System
                        WI_CD_FTD:
                          type: string
                          maxLength: 20
                          description: Creation date of work item (formatted)
                        WI_CT_FTD:
                          type: string
                          maxLength: 20
                          description: Creation time of work item (formatted)
                        WI_LED_FTD:
                          type: string
                          maxLength: 20
                          description: Latest end date of a work item (formatted)
                        WI_LET_FTD:
                          type: string
                          maxLength: 20
                          description: Latest End Time of a Work Item (Formatted)
                        WI_AA_NAME:
                          type: string
                          maxLength: 40
                          description: Name of Actual Agent
                        DEF_GUID:
                          type: string
                          maxLength: 40
                          description: 'Workflow: Unique ID of Step Definition (6.1/get)'
                        WI_CRTTS:
                          type: integer
                          format: int64
                          description: 'WAPI: TimeStamp for Creation'
                        NOTE_COUNT:
                          type: integer
                          format: int32
                          description: Number of Attachments
                        WI_COMP_EV:
                          type: string
                          maxLength: 1
                          description: Indicator Denoting That Completion By Event Is Possible
                        PROCCAT:
                          type: string
                          maxLength: 10
                          description: Process Category
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
