openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SMSS_GET_DBCON:
    post:
      tags:
      - SMSSCONNECT
      summary: 'MSSQL : Retrieve the MSS DBCON entries via RFC'
      operationId: /rfc/SMSS_GET_DBCON
      requestBody:
        content:
          application/json:
            schema:
              properties:
                MSS_DBCON:
                  type: array
                  items:
                    type: object
                    properties:
                      CON_NAME:
                        type: string
                        maxLength: 30
                        description: Logical name for a database connection
                      DBMS:
                        type: string
                        maxLength: 3
                        description: 'Database system  enumValues: DB2=DB2 UDB for OS/390,MSS=Microsoft SQL Server,ADA=SAP DB (ADABAS/D),INF=Informix,ORA=Oracle,DB4=DB2 UDB for AS/400,DB6=DB2 UDB for Unix and Windows'
                        enum:
                        - DB2
                        - MSS
                        - ADA
                        - INF
                        - ORA
                        - DB4
                        - DB6
                      USER_NAME:
                        type: string
                        maxLength: 30
                        description: Database User
                      PASSWORD:
                        type: string
                        maxLength: 255
                        description: Password for setting up the connection to the database
                      CON_ENV:
                        type: string
                        maxLength: 255
                        description: Database-specific information for a database connection
                      DB_RECO:
                        type: string
                        maxLength: 1
                        description: 'Availability type for an open database connect  enumValues: ""=Not Selected,X=Selected'
                        enum:
                        - ''
                        - X
                      MAX_CONNECTIONS:
                        type: integer
                        format: int32
                        description: Maximum Number of Connections
                      OPT_CONNECTIONS:
                        type: integer
                        format: int32
                        description: Optimum Number of Connections
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  MSS_DBCON:
                    type: array
                    items:
                      type: object
                      properties:
                        CON_NAME:
                          type: string
                          maxLength: 30
                          description: Logical name for a database connection
                        DBMS:
                          type: string
                          maxLength: 3
                          description: 'Database system  enumValues: DB2=DB2 UDB for OS/390,MSS=Microsoft SQL Server,ADA=SAP DB (ADABAS/D),INF=Informix,ORA=Oracle,DB4=DB2 UDB for AS/400,DB6=DB2 UDB for Unix and Windows'
                          enum:
                          - DB2
                          - MSS
                          - ADA
                          - INF
                          - ORA
                          - DB4
                          - DB6
                        USER_NAME:
                          type: string
                          maxLength: 30
                          description: Database User
                        PASSWORD:
                          type: string
                          maxLength: 255
                          description: Password for setting up the connection to the database
                        CON_ENV:
                          type: string
                          maxLength: 255
                          description: Database-specific information for a database connection
                        DB_RECO:
                          type: string
                          maxLength: 1
                          description: 'Availability type for an open database connect  enumValues: ""=Not Selected,X=Selected'
                          enum:
                          - ''
                          - X
                        MAX_CONNECTIONS:
                          type: integer
                          format: int32
                          description: Maximum Number of Connections
                        OPT_CONNECTIONS:
                          type: integer
                          format: int32
                          description: Optimum Number of Connections
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
