openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB4_BACKUP_INFO:
    post:
      tags:
      - STU4_DB12
      summary: 'DB2/400: Get Information about Backup and Recovery.'
      operationId: /rfc/DB4_BACKUP_INFO
      requestBody:
        content:
          application/json:
            schema:
              properties:
                SCHEMANAME:
                  type: string
                  maxLength: 10
                  description: System name of mySAP ERP
                SYSID:
                  type: string
                  maxLength: 8
                  description: System name of mySAP ERP
                BACKUP:
                  type: array
                  items:
                    type: object
                    properties:
                      SAVDATE:
                        type: string
                        format: date
                        description: Date of a Database Backup
                      SAVTIME:
                        type: string
                        maxLength: 6
                        description: Time of a Database Backup
                      SAVTYPE:
                        type: string
                        maxLength: 20
                        description: Type of a Backup
                PARTIAL:
                  type: array
                  items:
                    type: object
                    properties:
                      TABNAME:
                        type: string
                        maxLength: 30
                        description: Table Name
                      SAVDATE:
                        type: string
                        format: date
                        description: Date of a Database Backup
                      SAVTIME:
                        type: string
                        maxLength: 6
                        description: Time of a Database Backup
                      BCKDATE:
                        type: string
                        format: date
                        description: Date of a Database Backup
                      BCKTIME:
                        type: string
                        maxLength: 6
                        description: Time of a Database Backup
                RCVDIR:
                  type: array
                  items:
                    type: object
                    properties:
                      RCV:
                        type: string
                        maxLength: 10
                        description: Receiver Name on iSeries
                      RCVNUM:
                        type: string
                        maxLength: 5
                        description: 'iSeries: Journal Receiver Number'
                      RCVATTDATE:
                        type: string
                        format: date
                        description: Attach Date of a Journal Receiver on iSeries
                      RCVSTAT:
                        type: string
                        maxLength: 8
                        description: Status of a Journal Receiver on iSeries
                      RCVSAVDATE:
                        type: string
                        format: date
                        description: Save Date of the Journal Receiver on iSeries
                      RCVSAVTIME:
                        type: string
                        maxLength: 6
                        description: Save Time of the Journal Receiver on iSeries
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ASPR3DATA:
                    type: integer
                    format: int32
                    description: Natural number
                  ASPR3JRN:
                    type: integer
                    format: int32
                    description: Natural number
                  ATTRCV:
                    type: string
                    maxLength: 10
                    description: Character field length = 10
                  ATTRCVLIB:
                    type: string
                    maxLength: 10
                    description: Character field length = 10
                  DELRCVOP:
                    type: string
                    maxLength: 4
                    description: Not More Closely Defined Area, Possibly Used for Patchlevels
                  MANRCVOP:
                    type: string
                    maxLength: 7
                    description: Character field, length 7
                  BACKUP:
                    type: array
                    items:
                      type: object
                      properties:
                        SAVDATE:
                          type: string
                          format: date
                          description: Date of a Database Backup
                        SAVTIME:
                          type: string
                          maxLength: 6
                          description: Time of a Database Backup
                        SAVTYPE:
                          type: string
                          maxLength: 20
                          description: Type of a Backup
                  PARTIAL:
                    type: array
                    items:
                      type: object
                      properties:
                        TABNAME:
                          type: string
                          maxLength: 30
                          description: Table Name
                        SAVDATE:
                          type: string
                          format: date
                          description: Date of a Database Backup
                        SAVTIME:
                          type: string
                          maxLength: 6
                          description: Time of a Database Backup
                        BCKDATE:
                          type: string
                          format: date
                          description: Date of a Database Backup
                        BCKTIME:
                          type: string
                          maxLength: 6
                          description: Time of a Database Backup
                  RCVDIR:
                    type: array
                    items:
                      type: object
                      properties:
                        RCV:
                          type: string
                          maxLength: 10
                          description: Receiver Name on iSeries
                        RCVNUM:
                          type: string
                          maxLength: 5
                          description: 'iSeries: Journal Receiver Number'
                        RCVATTDATE:
                          type: string
                          format: date
                          description: Attach Date of a Journal Receiver on iSeries
                        RCVSTAT:
                          type: string
                          maxLength: 8
                          description: Status of a Journal Receiver on iSeries
                        RCVSAVDATE:
                          type: string
                          format: date
                          description: Save Date of the Journal Receiver on iSeries
                        RCVSAVTIME:
                          type: string
                          maxLength: 6
                          description: Save Time of the Journal Receiver on iSeries
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
