openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/GET_JOB_HIST_MESSAGE:
    post:
      tags:
      - SFMSS_JOBS
      summary: MS SQL server function to get the list of SAP Job History Messages
      operationId: /rfc/GET_JOB_HIST_MESSAGE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: Logical name for a database connection
                LINE_LEN:
                  type: integer
                  format: int32
                  default: 70
                  description: MS SQL server - run time limit for dbcc commands
                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
                TASKLIST:
                  type: array
                  items:
                    type: object
                    properties:
                      JOBID:
                        type: string
                        format: byte
                        description: MS SQL server job id
                      MSSTEPID:
                        type: integer
                        format: int32
                        description: Natural number
                      MSGID:
                        type: integer
                        format: int32
                        description: MS SQL Server message ID
                      LINENUMBER:
                        type: integer
                        format: int32
                        description: Natural number
                      MESSAGE:
                        type: string
                        maxLength: 100
                        description: Comment
                      RUNDATE:
                        type: integer
                        format: int32
                        description: ''
                      RUNTIME:
                        type: integer
                        format: int32
                        description: ''
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  TASKLIST:
                    type: array
                    items:
                      type: object
                      properties:
                        JOBID:
                          type: string
                          format: byte
                          description: MS SQL server job id
                        MSSTEPID:
                          type: integer
                          format: int32
                          description: Natural number
                        MSGID:
                          type: integer
                          format: int32
                          description: MS SQL Server message ID
                        LINENUMBER:
                          type: integer
                          format: int32
                          description: Natural number
                        MESSAGE:
                          type: string
                          maxLength: 100
                          description: Comment
                        RUNDATE:
                          type: integer
                          format: int32
                          description: ''
                        RUNTIME:
                          type: integer
                          format: int32
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
