openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_GET_JOB_HEADERS:
    post:
      tags:
      - SFMSS_JOBS
      summary: Function to get job history header information
      operationId: /rfc/MSS_GET_JOB_HEADERS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CCMS_TYPE:
                  type: integer
                  format: int32
                  default: 1
                  description: MS SQL server - Job execution days in the week
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: Logical name for a database connection
                JOBID:
                  type: string
                  format: byte
                  default: ''
                  description: MS SQL server job id
                NUM_OF_DAYS:
                  type: integer
                  format: int32
                  default: 30
                  description: MS SQL server - run time limit for dbcc commands
                SCHEMA:
                  type: string
                  default: ''
                  maxLength: 128
                  description: Schema name
                JOB_HEADER:
                  type: array
                  items:
                    type: object
                    properties:
                      JOBID:
                        type: string
                        format: byte
                        description: MS SQL server job id
                      MSSTEPID:
                        type: integer
                        format: int32
                        description: MS SQL server Start Step ID
                      MSGID:
                        type: integer
                        format: int32
                        description: MS SQL Server message ID
                      SEVERITY:
                        type: integer
                        format: int32
                        description: MS SQL Server severity
                      MESSAGE1:
                        type: string
                        maxLength: 255
                        description: MS SQL Server task execution comments
                      STATUS:
                        type: integer
                        format: int32
                        description: MS SQL Server task run status
                      RUNDATE:
                        type: integer
                        format: int32
                        description: MS SQL Server task run date
                      RUNTIME:
                        type: integer
                        format: int32
                        description: MS SQL Server task runtime
                      RUNDURATE:
                        type: integer
                        format: int32
                        description: MS SQL Server task run duration
                      RETRIES:
                        type: integer
                        format: int32
                        description: MS SQL Server task execution retries
                      ACTSTTIME:
                        type: integer
                        format: int32
                        description: ''
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  JOB_HEADER:
                    type: array
                    items:
                      type: object
                      properties:
                        JOBID:
                          type: string
                          format: byte
                          description: MS SQL server job id
                        MSSTEPID:
                          type: integer
                          format: int32
                          description: MS SQL server Start Step ID
                        MSGID:
                          type: integer
                          format: int32
                          description: MS SQL Server message ID
                        SEVERITY:
                          type: integer
                          format: int32
                          description: MS SQL Server severity
                        MESSAGE1:
                          type: string
                          maxLength: 255
                          description: MS SQL Server task execution comments
                        STATUS:
                          type: integer
                          format: int32
                          description: MS SQL Server task run status
                        RUNDATE:
                          type: integer
                          format: int32
                          description: MS SQL Server task run date
                        RUNTIME:
                          type: integer
                          format: int32
                          description: MS SQL Server task runtime
                        RUNDURATE:
                          type: integer
                          format: int32
                          description: MS SQL Server task run duration
                        RETRIES:
                          type: integer
                          format: int32
                          description: MS SQL Server task execution retries
                        ACTSTTIME:
                          type: integer
                          format: int32
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
