openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/GET_DBAHIST_SDB:
    post:
      tags:
      - SADB
      operationId: /rfc/GET_DBAHIST_SDB
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CON_NAME:
                  type: string
                  maxLength: 30
                  description: Logical Name for a Database Connection
                DATE:
                  type: string
                  format: date
                LINE:
                  type: integer
                  format: int32
                TIME:
                  type: string
                  maxLength: 6
                USE_DBMRFC:
                  type: string
                  maxLength: 1
                  description: 'SAP DB: DBMRFC Call Mode'
                DBAHIST:
                  type: array
                  items:
                    type: object
                    properties:
                      BEG:
                        type: string
                        maxLength: 14
                        description: Start of the DBA action
                      FUNCT:
                        type: string
                        maxLength: 3
                        description: Function ID for DBA action
                      CON_NAME:
                        type: string
                        maxLength: 30
                        description: Logical name for a database connection
                      OBJ:
                        type: string
                        maxLength: 16
                        description: Object of DB operation
                      RC:
                        type: integer
                        format: int64
                        description: 'Return code for DBA action  enumValues: 0001=Warning,0002=General error,0000=Everything OK,0003=Detailed error'
                        enum:
                        - '0001'
                        - '0002'
                        - '0000'
                        - '0003'
                      ENDE:
                        type: string
                        maxLength: 14
                        description: End of database operation
                      LINE:
                        type: string
                        maxLength: 254
                        description: Text Line for DBA Logs
                RESULT:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 255
                        description: 'SAP DB: Response line from DBM command'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DBAHIST:
                    type: array
                    items:
                      type: object
                      properties:
                        BEG:
                          type: string
                          maxLength: 14
                          description: Start of the DBA action
                        FUNCT:
                          type: string
                          maxLength: 3
                          description: Function ID for DBA action
                        CON_NAME:
                          type: string
                          maxLength: 30
                          description: Logical name for a database connection
                        OBJ:
                          type: string
                          maxLength: 16
                          description: Object of DB operation
                        RC:
                          type: integer
                          format: int64
                          description: 'Return code for DBA action  enumValues: 0001=Warning,0002=General error,0000=Everything OK,0003=Detailed error'
                          enum:
                          - '0001'
                          - '0002'
                          - '0000'
                          - '0003'
                        ENDE:
                          type: string
                          maxLength: 14
                          description: End of database operation
                        LINE:
                          type: string
                          maxLength: 254
                          description: Text Line for DBA Logs
                  RESULT:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 255
                          description: 'SAP DB: Response line from DBM command'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
