openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWK_EXTSRV_TASKS_GET:
    post:
      tags:
      - SWK4
      operationId: /rfc/SWK_EXTSRV_TASKS_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IM_CHILDFLAG:
                  type: string
                  default: X
                  maxLength: 1
                IM_LANGU:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                IM_OBJTYPE:
                  type: string
                  default: EXTSRV
                  maxLength: 10
                MESSAGE_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      CODE:
                        type: integer
                        format: int32
                        description: Error Code
                      TEXT:
                        type: string
                        maxLength: 120
                        description: Language-Dependent Message
                TASK_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      OTYPE:
                        type: string
                        maxLength: 2
                        description: Object Type
                      OBJID:
                        type: string
                        maxLength: 12
                        description: Agent ID in Organizational Management
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_MESSAGE:
                    type: string
                    maxLength: 120
                  E_RETCODE:
                    type: integer
                    format: int32
                  MESSAGE_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        CODE:
                          type: integer
                          format: int32
                          description: Error Code
                        TEXT:
                          type: string
                          maxLength: 120
                          description: Language-Dependent Message
                  TASK_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        OTYPE:
                          type: string
                          maxLength: 2
                          description: Object Type
                        OBJID:
                          type: string
                          maxLength: 12
                          description: Agent ID in Organizational Management
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
