openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SAP_WAPI_GET_DEADLINES:
    post:
      tags:
      - SWRC
      summary: 'Workflow Interfaces: Read Work Item Deadlines'
      operationId: /rfc/SAP_WAPI_GET_DEADLINES
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: SAP System, Current Language
                USER:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: ABAP System, User Logon Name
                WORKITEM_ID:
                  type: integer
                  format: int64
                  description: Work Item ID
                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
              required:
              - WORKITEM_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DESIRED_END:
                    type: object
                    properties:
                      DATE_IN:
                        type: string
                        format: date
                        description: 'WAPI: Date in internal format (YYYYMMDD)'
                      TIME_IN:
                        type: string
                        maxLength: 6
                        description: 'WAPI: Time in internal format (hhmmss)'
                      DATE_EX:
                        type: string
                        maxLength: 10
                        description: 'WAPI: Date in external format'
                      TIME_EX:
                        type: string
                        maxLength: 8
                        description: 'WAPI: Time in external format'
                      TIME_STAMP:
                        type: integer
                        format: int64
                        description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                  DESIRED_START:
                    type: object
                    properties:
                      DATE_IN:
                        type: string
                        format: date
                        description: 'WAPI: Date in internal format (YYYYMMDD)'
                      TIME_IN:
                        type: string
                        maxLength: 6
                        description: 'WAPI: Time in internal format (hhmmss)'
                      DATE_EX:
                        type: string
                        maxLength: 10
                        description: 'WAPI: Date in external format'
                      TIME_EX:
                        type: string
                        maxLength: 8
                        description: 'WAPI: Time in external format'
                      TIME_STAMP:
                        type: integer
                        format: int64
                        description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                  LATEST_END:
                    type: object
                    properties:
                      DATE_IN:
                        type: string
                        format: date
                        description: 'WAPI: Date in internal format (YYYYMMDD)'
                      TIME_IN:
                        type: string
                        maxLength: 6
                        description: 'WAPI: Time in internal format (hhmmss)'
                      DATE_EX:
                        type: string
                        maxLength: 10
                        description: 'WAPI: Date in external format'
                      TIME_EX:
                        type: string
                        maxLength: 8
                        description: 'WAPI: Time in external format'
                      TIME_STAMP:
                        type: integer
                        format: int64
                        description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                  LATEST_START:
                    type: object
                    properties:
                      DATE_IN:
                        type: string
                        format: date
                        description: 'WAPI: Date in internal format (YYYYMMDD)'
                      TIME_IN:
                        type: string
                        maxLength: 6
                        description: 'WAPI: Time in internal format (hhmmss)'
                      DATE_EX:
                        type: string
                        maxLength: 10
                        description: 'WAPI: Date in external format'
                      TIME_EX:
                        type: string
                        maxLength: 8
                        description: 'WAPI: Time in external format'
                      TIME_STAMP:
                        type: integer
                        format: int64
                        description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                  RETURN_CODE:
                    type: integer
                    format: int32
                    description: Return Code (0, 1, 999)
                  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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
