openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/OXT_TASK_READ:
    post:
      tags:
      - OXT_TASK_API
      operationId: /rfc/OXT_TASK_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_TASKGUID:
                  type: string
                  maxLength: 32
                  description: ID of OXT Task
                CT_RETURN:
                  type: array
                  items:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      NUMBER:
                        type: integer
                        format: int64
                        description: Message Number
                      MESSAGE:
                        type: string
                        maxLength: 220
                        description: Message Text
                      LOG_NO:
                        type: string
                        maxLength: 20
                        description: 'Application log: log number'
                      LOG_MSG_NO:
                        type: integer
                        format: int64
                        description: 'Application log: Internal message serial number'
                      MESSAGE_V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      PARAMETER:
                        type: string
                        maxLength: 32
                        description: Parameter Name
                      ROW:
                        type: integer
                        format: int32
                        description: Lines in parameter
                      FIELD:
                        type: string
                        maxLength: 30
                        description: Field in parameter
                      SYSTEM:
                        type: string
                        maxLength: 10
                        description: Logical system from which message originates
                ET_GENOBJ:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      OBJECT_NAME:
                        type: string
                        maxLength: 32
                        description: Character field, length 32
                      AS4POS:
                        type: integer
                        format: int64
                        description: 'Dictionary: Line item'
                      PGMID:
                        type: string
                        maxLength: 4
                        description: Program ID in Requests and Tasks
                      OBJECT:
                        type: string
                        maxLength: 4
                        description: Object Type
                      OBJ_NAME:
                        type: string
                        maxLength: 120
                        description: Object Name in Object List
                      TRKORR:
                        type: string
                        maxLength: 20
                        description: Request/Task
                      DEL_FLAG:
                        type: string
                        maxLength: 1
                        description: 'Boolean Variable (X=True, -=False, Space=Unknown)  enumValues: X=true,-=false,""=unknown'
                        enum:
                        - X
                        - '-'
                        - ''
                      META_TYPE:
                        type: string
                        maxLength: 30
                        description: GOX Object Type
                      META_NAME:
                        type: string
                        maxLength: 120
                        description: Object Name for Generic Object Extension (OXT)
                ET_GENOBJKEY:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      OBJECT_NAME:
                        type: string
                        maxLength: 32
                        description: Character field, length 32
                      PGMID:
                        type: string
                        maxLength: 4
                        description: Program ID in Requests and Tasks
                      OBJECT:
                        type: string
                        maxLength: 4
                        description: Object Type
                      OBJ_NAME:
                        type: string
                        maxLength: 30
                        description: Table Name
                      AS4POS:
                        type: integer
                        format: int64
                        description: 'Dictionary: Line item'
                      TABLE_KEY:
                        type: string
                        maxLength: 120
                        description: Object Name in Object List
                      DEL_FLAG:
                        type: string
                        maxLength: 1
                        description: 'Boolean Variable (X=True, -=False, Space=Unknown)  enumValues: X=true,-=false,""=unknown'
                        enum:
                        - X
                        - '-'
                        - ''
                      MASTERTYPE:
                        type: string
                        maxLength: 4
                        description: Object Type
                      MASTERNAME:
                        type: string
                        maxLength: 40
                        description: Object Name in Object Directory
                      VIEWNAME:
                        type: string
                        maxLength: 30
                        description: Name of SAP table view
              required:
              - IV_TASKGUID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EV_LOG_HANDLE:
                    type: string
                    maxLength: 22
                    description: OXT Object GUID22
                  EV_SETTYPENAME:
                    type: string
                    maxLength: 32
                    description: Character field, length 32
                  EV_SYSTEMNAME:
                    type: string
                    maxLength: 30
                    description: System
                  EV_TASKORDER:
                    type: integer
                    format: int64
                    description: Sequence for OXT objects
                  EV_TASKSTATUS:
                    type: string
                    maxLength: 1
                    description: Task Status
                  EV_TASKTYP:
                    type: string
                    maxLength: 30
                    description: OXT Task Type
                  CT_RETURN:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                        ID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        NUMBER:
                          type: integer
                          format: int64
                          description: Message Number
                        MESSAGE:
                          type: string
                          maxLength: 220
                          description: Message Text
                        LOG_NO:
                          type: string
                          maxLength: 20
                          description: 'Application log: log number'
                        LOG_MSG_NO:
                          type: integer
                          format: int64
                          description: 'Application log: Internal message serial number'
                        MESSAGE_V1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        PARAMETER:
                          type: string
                          maxLength: 32
                          description: Parameter Name
                        ROW:
                          type: integer
                          format: int32
                          description: Lines in parameter
                        FIELD:
                          type: string
                          maxLength: 30
                          description: Field in parameter
                        SYSTEM:
                          type: string
                          maxLength: 10
                          description: Logical system from which message originates
                  ET_GENOBJ:
                    type: array
                    items:
                      type: object
                      properties:
                        CLIENT:
                          type: string
                          maxLength: 3
                          description: Client
                        OBJECT_NAME:
                          type: string
                          maxLength: 32
                          description: Character field, length 32
                        AS4POS:
                          type: integer
                          format: int64
                          description: 'Dictionary: Line item'
                        PGMID:
                          type: string
                          maxLength: 4
                          description: Program ID in Requests and Tasks
                        OBJECT:
                          type: string
                          maxLength: 4
                          description: Object Type
                        OBJ_NAME:
                          type: string
                          maxLength: 120
                          description: Object Name in Object List
                        TRKORR:
                          type: string
                          maxLength: 20
                          description: Request/Task
                        DEL_FLAG:
                          type: string
                          maxLength: 1
                          description: 'Boolean Variable (X=True, -=False, Space=Unknown)  enumValues: X=true,-=false,""=unknown'
                          enum:
                          - X
                          - '-'
                          - ''
                        META_TYPE:
                          type: string
                          maxLength: 30
                          description: GOX Object Type
                        META_NAME:
                          type: string
                          maxLength: 120
                          description: Object Name for Generic Object Extension (OXT)
                  ET_GENOBJKEY:
                    type: array
                    items:
                      type: object
                      properties:
                        CLIENT:
                          type: string
                          maxLength: 3
                          description: Client
                        OBJECT_NAME:
                          type: string
                          maxLength: 32
                          description: Character field, length 32
                        PGMID:
                          type: string
                          maxLength: 4
                          description: Program ID in Requests and Tasks
                        OBJECT:
                          type: string
                          maxLength: 4
                          description: Object Type
                        OBJ_NAME:
                          type: string
                          maxLength: 30
                          description: Table Name
                        AS4POS:
                          type: integer
                          format: int64
                          description: 'Dictionary: Line item'
                        TABLE_KEY:
                          type: string
                          maxLength: 120
                          description: Object Name in Object List
                        DEL_FLAG:
                          type: string
                          maxLength: 1
                          description: 'Boolean Variable (X=True, -=False, Space=Unknown)  enumValues: X=true,-=false,""=unknown'
                          enum:
                          - X
                          - '-'
                          - ''
                        MASTERTYPE:
                          type: string
                          maxLength: 4
                          description: Object Type
                        MASTERNAME:
                          type: string
                          maxLength: 40
                          description: Object Name in Object Directory
                        VIEWNAME:
                          type: string
                          maxLength: 30
                          description: Name of SAP table view
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
