openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_GET_DB_DEV_AND_USR_INFO:
    post:
      tags:
      - SFMSS_JOBS
      summary: To get dbs, devices and user info
      operationId: /rfc/MSS_GET_DB_DEV_AND_USR_INFO
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: Logical name for a database connection
                SCHEMA:
                  type: string
                  default: ''
                  maxLength: 128
                  description: Schema name
                ALLDATABASES:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 128
                        description: Database name
                      ACCESS:
                        type: string
                        maxLength: 3
                        description: 'YES/NO: access to DB permitted/denied'
                DEVLIST:
                  type: array
                  items:
                    type: object
                    properties:
                      DEVNAME:
                        type: string
                        maxLength: 128
                        description: MS SQL server backup device name
                      PHYSNAME:
                        type: string
                        maxLength: 520
                        description: Physical file name (full path) of the database file.
                      DEVTYPE:
                        type: integer
                        format: int32
                        description: MS SQL server - device controller type
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DBNAME:
                    type: string
                    maxLength: 128
                    description: Database name
                  MAINVERSION:
                    type: string
                    maxLength: 2
                    description: MS SQL Server database version (main number)
                  SQLVERSION:
                    type: string
                    maxLength: 50
                    description: MS SQL Server version
                  USERNAME:
                    type: string
                    maxLength: 128
                    description: Schema name
                  ALLDATABASES:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 128
                          description: Database name
                        ACCESS:
                          type: string
                          maxLength: 3
                          description: 'YES/NO: access to DB permitted/denied'
                  DEVLIST:
                    type: array
                    items:
                      type: object
                      properties:
                        DEVNAME:
                          type: string
                          maxLength: 128
                          description: MS SQL server backup device name
                        PHYSNAME:
                          type: string
                          maxLength: 520
                          description: Physical file name (full path) of the database file.
                        DEVTYPE:
                          type: integer
                          format: int32
                          description: MS SQL server - device controller type
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
