openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWI_SELECT_TG:
    post:
      tags:
      - SWI_TASK_ANALYSIS
      operationId: /rfc/SWI_SELECT_TG
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ALL_TASKS:
                  type: string
                  default: ' '
                  maxLength: 1
                RANGES_TASK:
                  type: array
                  items:
                    type: object
                    properties:
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'ABAP: ID: I/E (include/exclude values)'
                      OPTION:
                        type: string
                        maxLength: 2
                        description: 'ABAP: Selection option (EQ/BT/CP/...)'
                      LOW:
                        type: string
                        maxLength: 12
                        description: Task ID in Workflow
                      HIGH:
                        type: string
                        maxLength: 12
                        description: Task ID in Workflow
                SELECTED_TASKS:
                  type: array
                  items:
                    type: object
                    properties:
                      TASKTYP:
                        type: string
                        maxLength: 2
                        description: Standard Object Type
                      TASK:
                        type: integer
                        format: int64
                        description: Object ID of Standard Object
              required:
              - ALL_TASKS
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RANGES_TASK:
                    type: array
                    items:
                      type: object
                      properties:
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'ABAP: ID: I/E (include/exclude values)'
                        OPTION:
                          type: string
                          maxLength: 2
                          description: 'ABAP: Selection option (EQ/BT/CP/...)'
                        LOW:
                          type: string
                          maxLength: 12
                          description: Task ID in Workflow
                        HIGH:
                          type: string
                          maxLength: 12
                          description: Task ID in Workflow
                  SELECTED_TASKS:
                    type: array
                    items:
                      type: object
                      properties:
                        TASKTYP:
                          type: string
                          maxLength: 2
                          description: Standard Object Type
                        TASK:
                          type: integer
                          format: int64
                          description: Object ID of Standard Object
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
