openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_GET_BACKUP_HIST:
    post:
      tags:
      - SFMSS_JOBS
      summary: Function to get backup history overview
      operationId: /rfc/MSS_GET_BACKUP_HIST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                BKPERIOD:
                  type: integer
                  format: int32
                  description: MS SQL server - value indicating job execution days
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: Logical name for a database connection
                DCODE:
                  type: integer
                  format: int32
                  description: MS SQL server - value indicating job execution days
                SCHEMA:
                  type: string
                  default: ''
                  maxLength: 128
                  description: Schema name
                BACKUP_HIST:
                  type: array
                  items:
                    type: object
                    properties:
                      DBNAME:
                        type: string
                        maxLength: 128
                        description: Database name
                      BKUPTYPE:
                        type: string
                        maxLength: 30
                        description: MS SQL server - Backup Type description
                      BACKSTART:
                        type: string
                        maxLength: 20
                        description: MS SQL server backup finish date
                      BACKDEVNAM:
                        type: string
                        maxLength: 128
                        description: MS SQL server backup device name
                      VOLUMENAME:
                        type: string
                        maxLength: 128
                        description: MS sql server desciption of the nedia name.
                      BACKUPID:
                        type: integer
                        format: int32
                        description: MS SQL server backup id for the backup task
                      BKUPNAME:
                        type: string
                        maxLength: 128
                        description: Name of the backup set
                      BKUPDESC:
                        type: string
                        maxLength: 255
                        description: Description of the backup set
                      BACKDBSIZE:
                        type: integer
                        format: int64
                        description: MS SQL server DB size
                      BKUPDURA:
                        type: string
                        maxLength: 8
                        description: Backup job run duration
              required:
              - BKPERIOD
              - DCODE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  BACKUP_HIST:
                    type: array
                    items:
                      type: object
                      properties:
                        DBNAME:
                          type: string
                          maxLength: 128
                          description: Database name
                        BKUPTYPE:
                          type: string
                          maxLength: 30
                          description: MS SQL server - Backup Type description
                        BACKSTART:
                          type: string
                          maxLength: 20
                          description: MS SQL server backup finish date
                        BACKDEVNAM:
                          type: string
                          maxLength: 128
                          description: MS SQL server backup device name
                        VOLUMENAME:
                          type: string
                          maxLength: 128
                          description: MS sql server desciption of the nedia name.
                        BACKUPID:
                          type: integer
                          format: int32
                          description: MS SQL server backup id for the backup task
                        BKUPNAME:
                          type: string
                          maxLength: 128
                          description: Name of the backup set
                        BKUPDESC:
                          type: string
                          maxLength: 255
                          description: Description of the backup set
                        BACKDBSIZE:
                          type: integer
                          format: int64
                          description: MS SQL server DB size
                        BKUPDURA:
                          type: string
                          maxLength: 8
                          description: Backup job run duration
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
