openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SMSS_TEST_AUTH:
    post:
      tags:
      - SMSSCONNECT
      summary: 'MSSQL Multiconnect : retrieve S_DBCON authorizations'
      operationId: /rfc/SMSS_TEST_AUTH
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CURRCON:
                  type: object
                  properties:
                    RFCDEST:
                      type: string
                      maxLength: 32
                      description: Logical Destination (Specified in Function Call)
                    CON_NAME:
                      type: string
                      maxLength: 30
                      description: Logical name for a database connection
                    DBSCHEMA:
                      type: string
                      maxLength: 128
                      description: 'MSSQL Multiconnect : Object source schema'
                    HOSTNAME:
                      type: string
                      maxLength: 128
                      description: 'MSSQL Multiconnect : SQL Server name'
                    DBNAME:
                      type: string
                      maxLength: 128
                      description: Database name
                    DBUSER:
                      type: string
                      maxLength: 128
                      description: 'MSSQL Multiconnect : DB user'
                    RFC_OK:
                      type: string
                      maxLength: 1
                      description: RFC connection successful ('X' / ' ')
                    UNUSED1:
                      type: string
                      maxLength: 3
                      description: Fill bytes (RFC compatibility)
                    DBCON_OK:
                      type: string
                      maxLength: 1
                      description: DBCON connection successful ('X' / ' ')
                    UNUSED2:
                      type: string
                      maxLength: 3
                      description: Fill bytes (RFC compatibility)
                    DBO_OK:
                      type: string
                      maxLength: 1
                      description: Incarnated as dbo ('X' / ' ')
                    UNUSED3:
                      type: string
                      maxLength: 3
                      description: Fill bytes (RFC compatibility)
                    UNUSED4:
                      type: string
                      maxLength: 4
                      description: Fill bytes (RFC compatibility)
                    SCH_EXISTS:
                      type: string
                      maxLength: 1
                      description: Object source schema exists in database ('X' / ' ')
                    LOCALSYS:
                      type: string
                      maxLength: 1
                      description: Local SAP system or not ('X' / ' ')
                    IS_ABAP:
                      type: string
                      maxLength: 1
                      description: DB schema contains ABAP objects ('X' / ' ')
                    SAPRELEASE:
                      type: string
                      maxLength: 10
                      description: SAP Release
                    EXTRELEASE:
                      type: string
                      maxLength: 10
                      description: Support Package Level of a Software Component
                    SQLRELEASE:
                      type: string
                      maxLength: 16
                      description: 'MSSQL : SQL Server Release string  >> XX.YYY.ZZZZ <<'
                    DB_VERS:
                      type: string
                      maxLength: 16
                      description: 'MSSQL Multiconnect : Version of SAP TSQL layer'
                    ERRCODE:
                      type: integer
                      format: int32
                      description: Return Value of ABAP Statements
                    MSGTY:
                      type: string
                      maxLength: 1
                      description: Message Type
                    MSGID:
                      type: string
                      maxLength: 20
                      description: Message Class
                    MSGNO:
                      type: integer
                      format: int64
                      description: Message Number
                    MSGV1:
                      type: string
                      maxLength: 50
                      description: Message Variable
                    MSGV2:
                      type: string
                      maxLength: 50
                      description: Message Variable
                    MSGV3:
                      type: string
                      maxLength: 50
                      description: Message Variable
                    MSGV4:
                      type: string
                      maxLength: 50
                      description: Message Variable
                    USER_NAME:
                      type: string
                      maxLength: 30
                      description: Database User
                    RAT_EXISTS:
                      type: string
                      maxLength: 1
                      description: sap_tf_version exists in object source schema ('X' / ' ')
                    LOGIN_EXISTS:
                      type: string
                      maxLength: 1
                      description: Object source schema has an associated login ('X' / ' ')
                    RFC_VERSION:
                      type: string
                      maxLength: 10
                      description: Version of SMSS_TEST_CONNECTION / SAPLSMSSCONNECT
              required:
              - CURRCON
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  AUTHINFO:
                    type: object
                    properties:
                      RFCDEST:
                        type: string
                        maxLength: 32
                        description: Logical Destination (Specified in Function Call)
                      CON_NAME:
                        type: string
                        maxLength: 30
                        description: Logical name for a database connection
                      AUTH_03:
                        type: string
                        maxLength: 1
                        description: '"Display" authority (''X'' / '' '')'
                      AUTH_71:
                        type: string
                        maxLength: 1
                        description: '"Analyze" authority (''X'' / '' '')'
                      AUTH_23:
                        type: string
                        maxLength: 1
                        description: '"Maintain" authority (''X'' / '' '')'
                      AUTH_36:
                        type: string
                        maxLength: 1
                        description: '"Extended maintenance" authority (''X'' / '' '')'
                      RFC_VERSION:
                        type: string
                        maxLength: 10
                        description: Version of SMSS_TEST_CONNECTION / SAPLSMSSCONNECT
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
