openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CHECK_OFFLINE_STATE_SDB:
    post:
      tags:
      - SADB
      operationId: /rfc/CHECK_OFFLINE_STATE_SDB
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_CALL_MODE:
                  type: string
                  default: S
                  maxLength: 1
                  description: 'SAP DB: DBMRFC Call Mode'
                IV_CON_NAME:
                  type: string
                  maxLength: 30
                  description: Logical Name for a Database Connection
              required:
              - IV_CON_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EV_OFFLINE_VIA_SHUTDOWN:
                    type: object
                    properties:
                      FLAG:
                        type: string
                        maxLength: 1
                        description: 'General Flag  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                        enum:
                        - X
                        - ''
                  EV_RESTART_BEG:
                    type: object
                    properties:
                      DATE:
                        type: string
                        maxLength: 10
                        description: Month/Day of Log Entry
                      TIME:
                        type: string
                        maxLength: 8
                        description: Time of Log Entry
                      CMD_ID:
                        type: string
                        maxLength: 12
                        description: Command ID (unique; link cnhist <-> cnreprt)
                      LINENO:
                        type: string
                        maxLength: 4
                        description: Row number
                      FTYPE:
                        type: string
                        maxLength: 3
                        description: Functional Type
                      MESSAGE:
                        type: string
                        maxLength: 255
                        description: Log Message
                  EV_RESTART_END:
                    type: object
                    properties:
                      DATE:
                        type: string
                        maxLength: 10
                        description: Month/Day of Log Entry
                      TIME:
                        type: string
                        maxLength: 8
                        description: Time of Log Entry
                      CMD_ID:
                        type: string
                        maxLength: 12
                        description: Command ID (unique; link cnhist <-> cnreprt)
                      LINENO:
                        type: string
                        maxLength: 4
                        description: Row number
                      FTYPE:
                        type: string
                        maxLength: 3
                        description: Functional Type
                      MESSAGE:
                        type: string
                        maxLength: 255
                        description: Log Message
                  EV_SHUTDOWN_BEG:
                    type: object
                    properties:
                      DATE:
                        type: string
                        maxLength: 10
                        description: Month/Day of Log Entry
                      TIME:
                        type: string
                        maxLength: 8
                        description: Time of Log Entry
                      CMD_ID:
                        type: string
                        maxLength: 12
                        description: Command ID (unique; link cnhist <-> cnreprt)
                      LINENO:
                        type: string
                        maxLength: 4
                        description: Row number
                      FTYPE:
                        type: string
                        maxLength: 3
                        description: Functional Type
                      MESSAGE:
                        type: string
                        maxLength: 255
                        description: Log Message
                  EV_SHUTDOWN_END:
                    type: object
                    properties:
                      DATE:
                        type: string
                        maxLength: 10
                        description: Month/Day of Log Entry
                      TIME:
                        type: string
                        maxLength: 8
                        description: Time of Log Entry
                      CMD_ID:
                        type: string
                        maxLength: 12
                        description: Command ID (unique; link cnhist <-> cnreprt)
                      LINENO:
                        type: string
                        maxLength: 4
                        description: Row number
                      FTYPE:
                        type: string
                        maxLength: 3
                        description: Functional Type
                      MESSAGE:
                        type: string
                        maxLength: 255
                        description: Log Message
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
